Jump to content

Improvements to theme loading.


reepblue
 Share

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.

image.thumb.png.ee80a30892f7157bac5e17030839a5d4.png

 

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

Cyclone - Ultra Game System - Component PreprocessorTex2TGA - Darkness Awaits Template (Leadwerks)

If you like my work, consider supporting me on Patreon!

Link to comment
Share on other sites

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

Untitled.thumb.png.08adc95c93c7e91a1e65e2d28c450448.png

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

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
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.

Cyclone - Ultra Game System - Component PreprocessorTex2TGA - Darkness Awaits Template (Leadwerks)

If you like my work, consider supporting me on Patreon!

Link to comment
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.

Guest
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.

 Share

×
×
  • Create New...