User/Theme Library

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
spikey
Enthusiast
Enthusiast
Posts: 750
Joined: Wed Sep 22, 2010 1:17 pm
Location: United Kingdom

User/Theme Library

Post 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 :)