Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Improvements to theme loading.

Recommended Posts

I feel that all other widgets should use the theme set by the root Interface. I pulled the code from here and inserted the LoadColorScheme function and got the result below. I really don't want to go in and set the color scheme for all widgets! 

Colors should be pulled from the interface widget through it's gui pointer to the interface upon a new widget creation.



Also it would be nice to check what system theme the user is using on their Windows/Mac system along with an event when it changes. (macOS has support to shift themes based on time which I use.) You shouldn't have this automatically on your end, but a way to implement dynamic changing of themes would be appreciated! 

  • Thanks 1
Link to post
Share on other sites

If you load the color scheme right before the main loop it looks correct:


I made some changes to the way colors are initialized, and in the next build the colors will get copied from the interface colors when any new widget is created, so you can load the color scheme once and then create widget after that, and they will use the loaded colors.

  • Thanks 1
Link to post
Share on other sites

Neat. Is it possible to change the theme during runtime? Again it would be nice to have the theme of the app match the theme of the OS although there is probably no way to check this with a Linux desktop. An  event(s) for theme changing would also be nice.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...