From 6fa65e1172d633e61ed957a49e7cf96010432623 Mon Sep 17 00:00:00 2001 From: Maximilian Seidler <78690852+PaideiaDilemma@users.noreply.github.com> Date: Thu, 11 Apr 2024 20:57:46 +0200 Subject: [PATCH] input-field: increase default fade_timeout (#276) --- nix/hm-module.nix | 2 +- src/config/ConfigManager.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nix/hm-module.nix b/nix/hm-module.nix index bb3cdb0..b048eba 100644 --- a/nix/hm-module.nix +++ b/nix/hm-module.nix @@ -437,7 +437,7 @@ in { fade_timeout = mkOption { description = "Milliseconds before the input field should be faded (0 to fade immediately)"; type = int; - default = 1000; + default = 2000; }; placeholder_text = mkOption { diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 1de72a4..ffb8483 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -103,7 +103,7 @@ void CConfigManager::init() { m_config.addSpecialConfigValue("input-field", "dots_spacing", Hyprlang::FLOAT{0.2}); m_config.addSpecialConfigValue("input-field", "dots_rounding", Hyprlang::INT{-1}); m_config.addSpecialConfigValue("input-field", "fade_on_empty", Hyprlang::INT{1}); - m_config.addSpecialConfigValue("input-field", "fade_timeout", Hyprlang::INT{1000}); + m_config.addSpecialConfigValue("input-field", "fade_timeout", Hyprlang::INT{2000}); m_config.addSpecialConfigValue("input-field", "font_color", Hyprlang::INT{0xFF000000}); m_config.addSpecialConfigValue("input-field", "halign", Hyprlang::STRING{"center"}); m_config.addSpecialConfigValue("input-field", "valign", Hyprlang::STRING{"center"});