Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28563] Android: Overriding user interface style does not work properly

GitHub Issuen/a
TypeBug
PriorityHigh
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterHans Knöchel
AssigneeUnknown
Created2021-10-20T08:25:23.000+0000
Updated2021-11-09T13:24:00.000+0000

Description

We recently added the ability to override the user interface style via a app-wide setting (which seems to be a very frequently asked feature) using the 10.0.1+ property Ti.UI.overrideUserInterfaceStyle. While this works fine on iOS, it has some odd glitches on Android: - Some system colors like the action bar title are correctly changed - Some other colors (semantic colors set via semantic.colors.json) are not changed - The dark mode check ( Ti.UI.userInterfaceStyle === Ti.UI.USER_INTERFACE_STYLE_DARK ) fails This can be reproduced in our branch / internal pull request. I hope I also find the time to have an isolated test case, but it seems to be a combintion between custom themes and semantic colors which is a bit hard to combine for a simple case.

Comments

  1. Hans Knöchel 2021-11-02

    We tried to workaround it without any luck so far. Wondering if others experience this as well.

JSON Source