-
-
Notifications
You must be signed in to change notification settings - Fork 134
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
feat(theming): Use nextcloud-common library for theming UI elements (#1648) #1680
Conversation
Signed-off-by: Stefan Niedermann <[email protected]>
Signed-off-by: Stefan Niedermann <[email protected]>
Signed-off-by: Stefan Niedermann <[email protected]>
... and rely on PlatformThemeUtil.isDarkMode in stead. Signed-off-by: Stefan Niedermann <[email protected]>
So I will stop here and give you some time to for a review - sorry, it already grew larger than I originally planned... |
The screenshots look good to me 👍 |
Fine by me. |
app/src/main/java/it/niedermann/owncloud/notes/branding/NotesViewThemeUtils.java
Outdated
Show resolved
Hide resolved
app/src/main/java/it/niedermann/owncloud/notes/main/MainActivity.java
Outdated
Show resolved
Hide resolved
* Only add the needed module rather than the entire lib * Use ColorRole where possible in favor of querying the wanted color from the Scheme directly * Use util for theming SwipeRefreshLayout Signed-off-by: Stefan Niedermann <[email protected]>
…vor of AndroidViewThemeUtils#highlightText Signed-off-by: Stefan Niedermann <[email protected]>
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.
Thank you very much @stefan-niedermann !
A bit too late, but I just noticed, that this will unresolve #769 - see also nextcloud/android-common#79 It is not a big deal yet, because the excerpts are quite small. I want to use the theming in the |
Follow-Up to #1680 Signed-off-by: Stefan Niedermann <[email protected]>
Follow-Up to #1680 Signed-off-by: Stefan Niedermann <[email protected]>
Fix navigation view background Follow-Up to #1680 Signed-off-by: Stefan Niedermann <[email protected]>
Follow-Up to #1680 Signed-off-by: Stefan Niedermann <[email protected]>
Follow-Up to #1680 Signed-off-by: Stefan Niedermann <[email protected]>
Follow-Up to #1680 Signed-off-by: Stefan Niedermann <[email protected]>
Fix navigation view background Follow-Up to #1680 Signed-off-by: Stefan Niedermann <[email protected]>
Follow-Up to #1680 Signed-off-by: Stefan Niedermann <[email protected]>
This is an intermediate step to an alignment with the Material Files and Talk app.
Most important class:
BrandingUtil
- is more or less what you know asViewThemeUtils
in the Files app.Something more you should know: I created also a class
NotesViewThemeUtils
as a place to put app specific styling stuff until they are available within theandroid-common
library. It will probably fail because of the "No more Java" GitHub action you put in place 😉 So either we need to convert it to Kotlin or you make an exception for intermediate steps 🤷♂️ .FloatingActionButton
s,EditText
s,SwitchPreference
s and so on) and is already done viaandroid-common
If you have own plans or think this goes into the wrong direction, please let me know.
👁️ Screenshots
Only made with base color
#0082C9
for time reasons, but the other colors look as expected and aligned with the Files app, too.