Skip to content

Changing the Window theme dynamically #13744

Answered by m1ga
Dmytro27Ind asked this question in Q&A
Discussion options

You must be logged in to vote

You have to reopen the window. Check the docs: https://titaniumsdk.com/api/titanium/ui/window.html#properties_theme it says "creation only". Those properties only work one time when the window is created.

That said: you can switch between the system dark/light mode. Check the extended app sample in this comment (you have to toggle it). That way you would need to create a standard Android dark theme (same theme name in a values-dark folder)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Dmytro27Ind
Comment options

Answer selected by Dmytro27Ind
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants