feat: WidgetSmall redesign with material you dynamic color#17654
feat: WidgetSmall redesign with material you dynamic color#17654mikehardy merged 9 commits intoankidroid:mainfrom
Conversation
|
First PR! 🚀 We sincerely appreciate that you have taken the time to propose a change to AnkiDroid! Please have patience with us as we are all volunteers - we will get to this as soon as possible. |
There was a problem hiding this comment.
Interesting - looks like most of the work is in the icon specification?
Is there some way to preserve the visible difference between dev build and prod build like we have now with the red icon color vs the blue icon color?
Obviously the point of the change is to have the colors match theming - perhaps there is a way to badge the icon by layering a dev "sash" over it, similar to the badging plugin used by fastlane (underlying implementation here: https://github.com/HazAT/badge - perhaps it could be run during debug builds as a gradle step? Perhaps the generated badge could be in the debug src/res tree ? I'm not sure what is best)
AnkiDroid/src/test/java/com/ichi2/testutils/EmptyApplication.kt
Outdated
Show resolved
Hide resolved
|
@mikehardy just to note: the red isn't a beta feature, it's an indicator of "you have pending reviews". |
Ah interesting - that means that for the widgets at least there is currently no way to differentiate between "widgets built for the That whole sentence reads like an assertion but the question mark is key - I'm not sure |
|
I don't believe there is a difference for the widgets between beta and stable. I am concerned that we lose the distinction between 'done' and 'not done' with this PR. Some users love it:
https://www.reddit.com/r/Anki/comments/1h81z48/comment/m0rcsuq/?context=1 |
The distinction is still implemented, as you can see in screenshot in 1 and 2. when there are no reviews the widget will have a darker version of the dynamic color. |
This comment was marked as off-topic.
This comment was marked as off-topic.
|
@Rdkang We (I) want a color which is pleasant to look at when the user has finished the reviews. Going from a [really nicely done] blue to a grey doesn't fill me with joy. You have better design taste than me, whatever you feel works given the above guidance! |
I agree with the color not bringing joy :)
Which one do you prefer @david-allison? |
|
Truthfully, I can't see a huge difference between option 1 and 2, slightly prefer option 1. I would consider making the 'pending cards' state /slightly/ less 'fun' But... tell me when YOU feel you're happy and ready for review 😄 |
Signed-off-by: Rdkang <68774237+Rdkang@users.noreply.github.com>
I've made the pending card state a more colorful and fun look to draw your attention to the outstanding reviews. This helps you quickly see when reviews pending. This is my thought process 😄, Let me know if this approach aligns with what you had in mind. |
AnkiDroid/src/main/java/com/ichi2/widget/AnkiDroidWidgetSmall.kt
Outdated
Show resolved
Hide resolved
david-allison
left a comment
There was a problem hiding this comment.
Gong through a period of very low activity, sorry this sat!
mikehardy
left a comment
There was a problem hiding this comment.
Visually, looks great - thank you!
|
Note Invoice already submitted, no action needed, posting this for documentation purposes Hi there @Rdkang! This is the OpenCollective Notice for PRs merged from 2025-01-01 through 2025-01-31 |









Purpose / Description
The current small widget doesn't fit the style of the application or current versions of android material you theme
Fixes
Approach
Redesigned the widget and uses material you colors to fit
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration (SDK version(s), emulator or physical, etc)
Virtual pixel 3 on SDK 28 and pixel 7 on SDK 35
Learning (optional, can help others)
Describe the research stage
Links to blog posts, patterns, libraries or addons used to solve this problem
Checklist
Please, go through these checks before submitting the PR.
Screenshots
Improvements
Any feedback on the designs of the notification bubbles would be greatly appreciated :)