-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Dark theme (& Material You theming) for widget #8719
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
Conversation
most recent commit should fix the style build issues @wmontwe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I apologize for the delay in getting back to you. This change is indeed very positive and represents a good starting point, though it still requires additional work. Instead of replacing the existing widget, I suggest that the changes be implemented in a separate module. Maybe guarded with a feature flag or integration in debug and daily only while beta and release disable that widget.
This approach will allow us to enhance the new version while keeping the original widget available.
Ideas/Improvements:
- The Glance Theme should align with our app theme and be compatible with K-9 and TfA. A new common module for widgets could serve this purpose.
- This common module could also house UI elements that can be reused in future widgets.
- The widget currently displays the unified folder but does not yet use account colors to differentiate messages.
- Naming should adhere to the existing scheme.
- It's important to test how the widget performs across both applications.
Please let me know which aspects you would like to address personally. Some of these improvements can be broken down into follow-up tasks to complete the widget development.
...et/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/ListWidgetReciever.kt
Outdated
Show resolved
Hide resolved
...et/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/ListWidgetReciever.kt
Outdated
Show resolved
Hide resolved
feature/widget/message-list/src/main/res/layout/message_list_widget_loading.xml
Outdated
Show resolved
Hide resolved
...et/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/ListWidgetReciever.kt
Outdated
Show resolved
Hide resolved
feature/widget/message-list/src/main/res/xml/message_list_widget_info.xml
Outdated
Show resolved
Hide resolved
feature/widget/message-list/src/main/res/xml/message_list_widget_info.xml
Outdated
Show resolved
Hide resolved
...et/message-list/src/main/kotlin/app/k9mail/feature/widget/message/list/ListWidgetReciever.kt
Outdated
Show resolved
Hide resolved
Ok I think that makes sense. I'll start by moving this moving this into its own module and restoring the old widget |
@vayun-mathur have you had a chance to get back to this? We'd love to see this merged and much appreciate the effort you are putting into it and would love to enable the new widget on beta once it's ready. |
old widget has been added back and new widget has been moved into own module and naming has been made more consistent |
64fa0ca
to
7659f69
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
8000 @vayun-mathur Hi, sorry for taking so long, I went over the widget and fixed a couple of issues, joined all the changes into one commit and enabled the widget for K-9 debug and TfA debug and daily. I also added a preview to better review the widget UI.
I think it needs further work, but is now in a state that is a good foundation so we could merge this and do remaining work in follow-up pull-requests.
Open:
- UI needs a design review
- There are some glitches updating the widget, sometimes it just shows the loading screen.
feature/widget/message-list/src/main/res/values-en-rGB/strings.xml
Outdated
Show resolved
Hide resolved
...-list/src/main/kotlin/app/k9mail/feature/widget/message/list/MessageListRemoteViewFactory.kt
Outdated
Show resolved
Hide resolved
feature/widget/message-list-glance/src/main/AndroidManifest.xml
Outdated
Show resolved
Hide resolved
Thanks for your contribution! Your pull request has been merged and will be part of Thunderbird 11. We appreciate the time and effort you put into improving Thunderbird. If you haven’t already, you’re welcome to join our Matrix chat for contributors. It’s where we discuss development and help each other out. https://matrix.to/#/#tb-android-dev:mozilla.org |
Completes #3728
Rebuilt the message list widget using Jetpack Glance and incorporated dark mode and material you theming for the color scheme
This is what the widget looks like now when dark mode is enabled: