Skip to content

Commit

Permalink
feat: window controls now respect opacity.controls config
Browse files Browse the repository at this point in the history
closes #949
  • Loading branch information
tomasklaen committed Aug 19, 2024
1 parent 8346db4 commit a0a608d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uosc/elements/TopBar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a0a608d

Please sign in to comment.