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
Use DayNight themes #1547
Use DayNight themes #1547
Conversation
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.
Section switch height is due to the Widget.MaterialComponents.CompoundButton.RadioButton
style having a android:minHeight
of 48dp set. We can/should override this in widgetlist_sectionswitchitem_button.xml
.
I'm still not really convinced that the accent color selection is a useful addition (for the same reasons as mentioned earlier, but it looks like it's important to you?
👍
It's possible to change the accent color with the current implementation and it's also possible to the Basic UI and many other UIs. Thus I don't want to remove this feature from the app. |
Yes, but only between a set of color schemes related to openHAB.
Where can one change the Basic UI color scheme? I've only ever seen such settings in some Android apps not affiliated to a certain project or company so far.
You want to add this feature; that's not the same thing as not removing it. One currently can't select arbitrary color schemes. |
I've misread a PR for theming Basic UI: eclipse-archived/smarthome#4137 |
Heh, I see Kai shared my concerns in https://github.com/eclipse/smarthome/pull/4137/files#r137015539 ;-)
Nice. Now we just need to restore the pink accent color in the blue theme to make it consistent to BasicUI and we're set, I think. |
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.
Found a few additional small things.
I also wonder whether we shouldn't go to minSdkVersion 21 ... doing so allows using color resources or attributes in vector drawables, which means we could drop all -night drawables.
mobile/src/androidTest/java/org/openhab/habdroid/ui/WidgetAdapterTest.kt
Outdated
Show resolved
Hide resolved
mobile/src/main/java/org/openhab/habdroid/core/UpdateBroadcastReceiver.kt
Outdated
Show resolved
Hide resolved
mobile/src/main/java/org/openhab/habdroid/core/UpdateBroadcastReceiver.kt
Outdated
Show resolved
Hide resolved
I'd like to keep this for now. |
mobile/src/main/java/org/openhab/habdroid/ui/preference/ItemUpdatingPreference.kt
Outdated
Show resolved
Hide resolved
a370da6
to
df379a8
Compare
Hmm, opening settings has a delay of at least half a second on a fairly fast device (OnePlus 6). This seems too much for my taste, and I don't think it's always been like that, right? Edit: Looks like this is unrelated -> #1563 |
mobile/src/main/java/org/openhab/habdroid/ui/AbstractBaseActivity.kt
Outdated
Show resolved
Hide resolved
Got 2 additional optimization commits to pull: https://github.com/maniac103/openhab.android/commits/dark-mode ... the 'avoid recreation' one was inspired by advice in https://medium.com/androiddevelopers/appcompat-v23-2-daynight-d10f90c83e94 |
c2f5334
to
939ef16
Compare
Fixes openhab#873 Fixes openhab#1058 Closes openhab#1431 Signed-off-by: mueller-ma <mueller-ma@users.noreply.github.com>
Signed-off-by: mueller-ma <mueller-ma@users.noreply.github.com>
Signed-off-by: mueller-ma <mueller-ma@users.noreply.github.com>
Signed-off-by: mueller-ma <mueller-ma@users.noreply.github.com>
Signed-off-by: mueller-ma <mueller-ma@users.noreply.github.com>
Signed-off-by: Danny Baumann <dannybaumann@web.de>
Signed-off-by: mueller-ma <mueller-ma@users.noreply.github.com>
Signed-off-by: mueller-ma <mueller-ma@users.noreply.github.com>
Signed-off-by: mueller-ma <mueller-ma@users.noreply.github.com>
Signed-off-by: mueller-ma <mueller-ma@users.noreply.github.com>
Signed-off-by: mueller-ma <mueller-ma@users.noreply.github.com>
Signed-off-by: Danny Baumann <dannybaumann@web.de>
In particular, avoid recreating activities if possible. Signed-off-by: Danny Baumann <dannybaumann@web.de>
The "Select" button in the accent color picker in a dark theme and grey as accent color is hardly visible. Signed-off-by: mueller-ma <mueller-ma@users.noreply.github.com>
Signed-off-by: mueller-ma <mueller-ma@users.noreply.github.com>
Fixes #873
Fixes #1058
Closes #1431
TODO: