Page 1 of 1

User/Theme Library

Posted: Fri Jun 21, 2024 12:50 pm
by spikey
In the same way that gadget functions like GadgetX() and GadgetWidth() are standardized to make cross-platform design easier, it would be useful to have some instructions which can query the user's theme preferences in a standardized way. To start with the following would be useful:

GetThemeStyle() - for an argument #PB_Theme_System or #PB_Theme_User would return either #PB_Theme_Light or #PB_Theme_Dark.

GetThemeColor() - for arguments similar to SetGadgetColor() would return an RGB value for the current theme colour.

Thank you :)