summaryrefslogtreecommitdiffstats
path: root/kxkb/kxkbconfig.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <[email protected]>2024-11-13 13:06:24 +0200
committerMavridis Philippe <[email protected]>2025-01-15 15:22:02 +0200
commit4914f21dc0aa657a0fba4d2d57a32fb07d9fc861 (patch)
tree0f40b7eeb77adc7e85aa92d88ac382dc87af2f41 /kxkb/kxkbconfig.cpp
parent0b81a6456344b4e8b28145351ff90841c1394a01 (diff)
downloadtdebase-4914f21dc0aa657a0fba4d2d57a32fb07d9fc861.tar.gz
tdebase-4914f21dc0aa657a0fba4d2d57a32fb07d9fc861.zip
Kxkb: Add customization options "Stretch flag", "Dim flag", "Show indicator bevel"
Apart from the last one, these options expose existing functionality making it user-configurable. Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'kxkb/kxkbconfig.cpp')
-rw-r--r--kxkb/kxkbconfig.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/kxkb/kxkbconfig.cpp b/kxkb/kxkbconfig.cpp
index a10ad7177..89e96a0aa 100644
--- a/kxkb/kxkbconfig.cpp
+++ b/kxkb/kxkbconfig.cpp
@@ -84,6 +84,8 @@ bool KxkbConfig::load(int loadMode)
m_showSingle = config->readBoolEntry("ShowSingle", false);
m_showFlag = config->readBoolEntry("ShowFlag", true);
m_showLabel = config->readBoolEntry("ShowLabel", true);
+ m_fitToBox = config->readBoolEntry("FitFlagToBox", true);
+ m_dimFlag = config->readBoolEntry("DimFlag", true);
m_useThemeColors = config->readBoolEntry("UseThemeColors", false);
m_colorBackground = config->readColorEntry("ColorBackground", new TQColor(TQt::gray));
@@ -93,6 +95,8 @@ bool KxkbConfig::load(int loadMode)
m_labelShadow = config->readBoolEntry("LabelShadow", true);
m_colorShadow = config->readColorEntry("ColorShadow", new TQColor(TQt::black));
+ m_bevel = config->readBoolEntry("IndicatorBevel", false);
+
TQString layoutOwner = config->readEntry("SwitchMode", "Global");
if( layoutOwner == "WinClass" ) {
@@ -178,6 +182,8 @@ void KxkbConfig::save()
config->writeEntry("ShowFlag", m_showFlag);
config->writeEntry("ShowLabel", m_showLabel);
+ config->writeEntry("FitFlagToBox", m_fitToBox);
+ config->writeEntry("DimFlag", m_dimFlag);
config->writeEntry("UseThemeColors", m_useThemeColors);
config->writeEntry("ColorBackground", m_colorBackground);
@@ -187,6 +193,8 @@ void KxkbConfig::save()
config->writeEntry("LabelShadow", m_labelShadow);
config->writeEntry("ColorShadow", m_colorShadow);
+ config->writeEntry("IndicatorBevel", m_bevel);
+
config->writeEntry("SwitchMode", switchModes[m_switchingPolicy]);
config->writeEntry("StickySwitching", m_stickySwitching);
@@ -222,6 +230,10 @@ void KxkbConfig::setDefaults()
m_useKxkb = false;
m_showSingle = false;
m_showFlag = true;
+ m_fitToBox = true;
+ m_dimFlag = true;
+
+ m_bevel = false;
m_switchingPolicy = SWITCH_POLICY_GLOBAL;