diff options
author | vaxerski <[email protected]> | 2022-12-31 16:23:56 +0100 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-12-31 16:23:56 +0100 |
commit | 7f595ed0cac2ffa154132e992c7e4902ca819a14 (patch) | |
tree | 192ea812d81aa8d2568d8dff70a5c697c1a2797b /src/config/ConfigManager.cpp | |
parent | a91d0a374a6e0637da8844d5c2f905c4d661adf1 (diff) | |
download | Hyprland-7f595ed0cac2ffa154132e992c7e4902ca819a14.tar.gz Hyprland-7f595ed0cac2ffa154132e992c7e4902ca819a14.zip |
support gradients in dwindle group colors
Diffstat (limited to 'src/config/ConfigManager.cpp')
-rw-r--r-- | src/config/ConfigManager.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 2ac24f6f..128ae9da 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -11,8 +11,10 @@ #include <iostream> CConfigManager::CConfigManager() { - configValues["general:col.active_border"].data = std::make_shared<CGradientValueData>(0xffffffff); - configValues["general:col.inactive_border"].data = std::make_shared<CGradientValueData>(0xff444444); + configValues["general:col.active_border"].data = std::make_shared<CGradientValueData>(0xffffffff); + configValues["general:col.inactive_border"].data = std::make_shared<CGradientValueData>(0xff444444); + configValues["dwindle:col.group_border"].data = std::make_shared<CGradientValueData>(0x66777700); + configValues["dwindle:col.group_border_active"].data = std::make_shared<CGradientValueData>(0x66ffff00); setDefaultVars(); setDefaultAnimationVars(); @@ -94,9 +96,9 @@ void CConfigManager::setDefaultVars() { configValues["decoration:dim_around"].floatValue = 0.4f; configValues["decoration:screen_shader"].strValue = STRVAL_EMPTY; + ((CGradientValueData*)configValues["dwindle:col.group_border"].data.get())->reset(0x66777700); + ((CGradientValueData*)configValues["dwindle:col.group_border_active"].data.get())->reset(0x66ffff00); configValues["dwindle:pseudotile"].intValue = 0; - configValues["dwindle:col.group_border"].intValue = 0x66777700; - configValues["dwindle:col.group_border_active"].intValue = 0x66ffff00; configValues["dwindle:force_split"].intValue = 0; configValues["dwindle:preserve_split"].intValue = 0; configValues["dwindle:special_scale_factor"].floatValue = 0.8f; |