How to change SystemPalette globally in linux
-
in the following example, when I change my system theme in KDE plasma, the rectangle color changes since SystemPalette is changed (on runtime without restarting the application):
import QtQuick 2.15 import QtQuick.Window 2.15 Window { width: 640 height: 480 visible: true title: qsTr("Hello World") SystemPalette { id: palette colorGroup: SystemPalette.Active } Rectangle{ anchors.centerIn: parent width: 200 height: width color: palette.base } }it's not using any IPC mechanism, it's not watching any config files( like plasmarc or kdeglobals), and it's not using any KDE plugins or libraries, but still, it can understand changes in the color system.
how can I change SystemPalette globally so that it can be affected in all qt based applications without explicitly using the IPC mechanism or watching changes in settings files? (I'm familiar with XDG standards and tried to study KDE plasma source code, still can't understand how this can be done )
thanks.