diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2026-04-26 15:16:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-26 15:16:36 +0100 |
| commit | 5ba33f846129f3e6c0505b19f94634b24505e828 (patch) | |
| tree | aaacabe678006040c342935481a86607c66607fd /src/errorOverlay | |
| parent | 329b2b356dd92ac07f4e2aa69cbce82ee9ba9d19 (diff) | |
config/lua: init lua config manager, use lua if available (#13817)
Adds a new lua config manager, which will automatically be used if there is a lua config present.
Diffstat (limited to 'src/errorOverlay')
| -rw-r--r-- | src/errorOverlay/Overlay.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/errorOverlay/Overlay.cpp b/src/errorOverlay/Overlay.cpp index 928d7800..2fbdd497 100644 --- a/src/errorOverlay/Overlay.cpp +++ b/src/errorOverlay/Overlay.cpp @@ -108,9 +108,9 @@ void COverlay::createQueued() { const float SCALE = PMONITOR->m_scale; const int FONTSIZE = std::clamp(sc<int>(10.f * ((PMONITOR->m_pixelSize.x * SCALE) / 1920.f)), 8, 40); - static auto LINELIMIT = CConfigValue<Hyprlang::INT>("debug:error_limit"); - static auto BAR_POSITION = CConfigValue<Hyprlang::INT>("debug:error_position"); - static auto FONT_FAMILY = CConfigValue<std::string>("misc:font_family"); + static auto LINELIMIT = CConfigValue<Config::INTEGER>("debug:error_limit"); + static auto BAR_POSITION = CConfigValue<Config::INTEGER>("debug:error_position"); + static auto FONT_FAMILY = CConfigValue<Config::STRING>("misc:font_family"); const bool TOPBAR = *BAR_POSITION == 0; const std::string visibleText = buildVisibleText(m_queued, *LINELIMIT); @@ -199,7 +199,7 @@ void COverlay::draw() { if (!PMONITOR) return; - static auto BAR_POSITION = CConfigValue<Hyprlang::INT>("debug:error_position"); + static auto BAR_POSITION = CConfigValue<Config::INTEGER>("debug:error_position"); const bool TOPBAR = *BAR_POSITION == 0; const float barWidth = std::max<float>(1.F, sc<float>(PMONITOR->m_pixelSize.x) - m_outerPad * 2.F); |
