From f13d97e6d600a6f5acd3f6930553f74ddce8e7a1 Mon Sep 17 00:00:00 2001 From: Maximilian Seidler <78690852+PaideiaDilemma@users.noreply.github.com> Date: Fri, 25 Oct 2024 23:02:47 +0200 Subject: [PATCH] config: make the default widget position be 0,0 (#529) --- src/config/ConfigManager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 0d4f5ba..a2de4fe 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -74,7 +74,7 @@ void CConfigManager::init() { m_config.addSpecialConfigValue("shape", "border_size", Hyprlang::INT{0}); m_config.addSpecialConfigValue("shape", "border_color", Hyprlang::INT{0xFF00CFE6}); m_config.addSpecialConfigValue("shape", "color", Hyprlang::INT{0xFF111111}); - m_config.addSpecialConfigValue("shape", "position", Hyprlang::VEC2{0, 80}); + m_config.addSpecialConfigValue("shape", "position", Hyprlang::VEC2{0, 0}); m_config.addSpecialConfigValue("shape", "halign", Hyprlang::STRING{"center"}); m_config.addSpecialConfigValue("shape", "valign", Hyprlang::STRING{"center"}); m_config.addSpecialConfigValue("shape", "rotate", Hyprlang::FLOAT{0}); @@ -89,7 +89,7 @@ void CConfigManager::init() { m_config.addSpecialConfigValue("image", "rounding", Hyprlang::INT{-1}); m_config.addSpecialConfigValue("image", "border_size", Hyprlang::INT{4}); m_config.addSpecialConfigValue("image", "border_color", Hyprlang::INT{0xFFDDDDDD}); - m_config.addSpecialConfigValue("image", "position", Hyprlang::VEC2{0, 200}); + m_config.addSpecialConfigValue("image", "position", Hyprlang::VEC2{0, 0}); m_config.addSpecialConfigValue("image", "halign", Hyprlang::STRING{"center"}); m_config.addSpecialConfigValue("image", "valign", Hyprlang::STRING{"center"}); m_config.addSpecialConfigValue("image", "rotate", Hyprlang::FLOAT{0}); @@ -116,7 +116,7 @@ void CConfigManager::init() { m_config.addSpecialConfigValue("input-field", "font_family", Hyprlang::STRING{"Sans"}); m_config.addSpecialConfigValue("input-field", "halign", Hyprlang::STRING{"center"}); m_config.addSpecialConfigValue("input-field", "valign", Hyprlang::STRING{"center"}); - m_config.addSpecialConfigValue("input-field", "position", Hyprlang::VEC2{0, -20}); + m_config.addSpecialConfigValue("input-field", "position", Hyprlang::VEC2{0, 0}); m_config.addSpecialConfigValue("input-field", "placeholder_text", Hyprlang::STRING{"Input Password"}); m_config.addSpecialConfigValue("input-field", "hide_input", Hyprlang::INT{0}); m_config.addSpecialConfigValue("input-field", "rounding", Hyprlang::INT{-1}); @@ -135,7 +135,7 @@ void CConfigManager::init() { m_config.addSpecialCategory("label", Hyprlang::SSpecialCategoryOptions{.key = nullptr, .anonymousKeyBased = true}); m_config.addSpecialConfigValue("label", "monitor", Hyprlang::STRING{""}); - m_config.addSpecialConfigValue("label", "position", Hyprlang::VEC2{400, 90}); + m_config.addSpecialConfigValue("label", "position", Hyprlang::VEC2{0, 0}); m_config.addSpecialConfigValue("label", "color", Hyprlang::INT{0xFFFFFFFF}); m_config.addSpecialConfigValue("label", "font_size", Hyprlang::INT{16}); m_config.addSpecialConfigValue("label", "text", Hyprlang::STRING{"Sample Text"});