From a0a608d451646f989665b521704df13101aad17a Mon Sep 17 00:00:00 2001 From: tomasklaen Date: Mon, 19 Aug 2024 09:48:34 +0200 Subject: [PATCH] feat: window controls now respect `opacity.controls` config closes #949 --- src/uosc/elements/TopBar.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uosc/elements/TopBar.lua b/src/uosc/elements/TopBar.lua index bac2c122..54389ac6 100644 --- a/src/uosc/elements/TopBar.lua +++ b/src/uosc/elements/TopBar.lua @@ -145,7 +145,7 @@ function TopBar:render() for _, button in ipairs(self.buttons) do local rect = {ax = button_ax, ay = self.ay, bx = button_ax + self.size, by = self.by} local is_hover = get_point_to_rectangle_proximity(cursor, rect) == 0 - local opacity = is_hover and 1 or 0.5 + local opacity = is_hover and 1 or config.opacity.controls local button_fg = is_hover and (button.hover_fg or bg) or fg local button_bg = is_hover and (button.hover_bg or fg) or bg