mirror of
https://github.com/mumble-voip/mumble.git
synced 2025-10-26 11:19:16 +00:00
Qt allows setting custom QPROPERTY values from QSS themes. As we cannot style QPalettes this class has a property for each color group and color role in a palette and acts as a stand-in for QApplication::palette in the theme. When setting a qproperty-<group>-<role> on it in QSS the brush will be set on the application palette. The ApplicationPalette is derived from QWidget but never visible. It listens to style changes on itself as those indicate the application palette should be updated again. Variables not set in the QSS will not be touched in the palette. There might be some interactions with system style or theme changes that have not yet been explored. Those are edge cases though and can be fixed later. ApplicationPalette.h is generated from ApplicationPaletteTemplate.h using the generate-ApplicationPalette-class.py script. While it isn't expected that this file has to change a lot in the future auto-generation is much easier than writing all that boilerplate from hand. Fixes #1438 |
||
|---|---|---|
| .. | ||
| development | ||
| server | ||
| gen-mumble_app-qt-def.py | ||
| generate-ApplicationPalette-class.py | ||
| git2cl.pl | ||
| mkflags.pl | ||
| mkini-win32.bat | ||
| mkini.sh | ||
| mklic.pl | ||
| mkwrapper.pl | ||
| mumble-overlay | ||
| mumble.desktop | ||
| mumble.protocol | ||
| murmur-user-wrapper | ||
| murmur.conf | ||
| murmur.ini | ||
| murmur.init | ||
| murmur.logrotate | ||
| php.ini | ||
| qt.conf | ||
| release.pl | ||
| scripts.pro | ||
| transtate.py | ||
| ts2html.pl | ||
| updatetranslations.sh | ||