Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » U++ community news and announcements » DarkTheme function parameters changed
Re: DarkTheme function parameters changed [message #60895 is a reply to message #60845] Sun, 06 October 2024 14:46 Go to previous messageGo to previous message
Lance is currently offline  Lance
Messages: 656
Registered: March 2007
Contributor
Thanks to work of both of Mirek and Tom1, Dark Theme now works very naturally on gnome.

Here is a small feature request that may improve user experience on gnome or possible x11 as a whole. But if it's too complicated or unworthy, just ignore it.

On more recent gnome (or at least ubuntu version of gnome), we can quickly switch between darkstyle and normal style using the dropdown menu:

index.php?t=getfile&id=6971&private=0

Native applications respond to the changes immediately while, for theide, we have to restart it after theme changes. This makes theide and upp appliations stand out in a negative way.

I was told dconf command tool can monitor the changes. Indeed

$dconf watch /org/gnome/desktop/interface/color-scheme

will report the changes. Or underneath, gio, can be used somehow to access the settings or possibly even subscribe to certain changes, which I don't know how.

If upp can listen to the event and request all Ctrl to Refresh (hierachically) themselves, and all SColorXXX returns a reference (to a static variable who has application-long life time which will by updated by Upp at theme-changes), a upp application can behave more similar to a native gnome/x11 application.

However, all user programs alos need to change accordingly to use Color& instead of Color to store SColorXXXs that they use in their own chameleon style. But this won't break their programs catastrophically even if they don't: any part that they call SColorXXX on the site will be reflectly after first Refresh, while the part they stored a copy of SColorXXX, in, for example, a Chameleon style, will only be corrected after a restart.

More can be involved than just color, eg, icon,etc. But it could be a simple , albeit tedious, work for Mirek.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SetRect "MegaRect" support...
Next Topic: 2024rc
Goto Forum:
  


Current Time: Mon Jun 09 00:22:42 CEST 2025

Total time taken to generate the page: 0.04766 seconds