-
-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue #1441 - Smaller radius for single note widget #1588
base: main
Are you sure you want to change the base?
Issue #1441 - Smaller radius for single note widget #1588
Conversation
@abdusalamApps could you add before/after screenshots for easier design review? Thank you! :) |
I am afraid that this only reduces the border radius ignoring that newer Android versions will hardly crop the border radius furth - leading to unoredictable states... |
@abdusalamApps could you also make sure to test on newer Android versions as @stefan-niedermann mentioned? Thanks! :) |
@jancborchardt I'll do that the first chance I get! |
@jancborchardt @stefan-niedermann Android 13.0 API 33, before and after Android 9.0 API 28, before and after |
So then considering @stefan-niedermann’s feedback I’m not sure we should merge this. It’s better if we just follow the guidelines as closely as possible. :\ |
@jancborchardt Could you elaborate on what guide lines to which you're referring? |
As linked in the issue: https://developer.android.com/about/versions/12/features/widgets |
e8689dd
to
bb74ff1
Compare
Rebased due to major technical updates in terms of libraries, especially AGP and SSO |
bb74ff1
to
c92cc53
Compare
@stefan-niedermann But the linked docs state that As you can see the the notes app uses a wider radius. This becomes especially clear when you try to move the widget and the boundaries are shown. (second notes-widget) The KDE one is also slightly wider than the boundary, but it is imperceptible except for "moving" it where a tiny gap is shown. The wikipedia-one is completely off the rails anyway, but it still uses the correct radius. I don't know if the proposed solution is the right one, but the current choosen radius is most certainly not the proper one. |
I just checked it:
This clearly violates the guideline set by google: "[...] the corner radius of the widget background, which is never larger than 28 dp." |
I agree, but |
Why not follow the suggestion by the docs? Use a default value (28dp like you suggested) for skd 30 and below, and
for sdk 31. This should always use the proper radius. If you like i can create a pr for it. |
Wait, sorry. It seems it is already using the proper constant. I need to investigate. |
Huh? This is weird. To me it seems that In sdk 30 and below, The KDE-Connect doesn't seem to have a radius at all. ( So the question is if we want to stick out, or ignore the guideline. And it also seems that 16dp is the correct value if we want to ignore the guideline. Either way, the overall behaviour of the corners are weird. Personally, i'd prefer the 16dp corner. |
This is a pull request for the change requested in issue 1441 in the original repo