Skip to content

Add button hover effect and inactive bar color support - #599

Open
Bennch wants to merge 1 commit into
hyprwm:mainfrom
Bennch:main
Open

Add button hover effect and inactive bar color support#599
Bennch wants to merge 1 commit into
hyprwm:mainfrom
Bennch:main

Conversation

@Bennch

@Bennch Bennch commented Jan 16, 2026

Copy link
Copy Markdown

This commit adds two new features to hyprbars:

  1. Button hover background effect:

    • Added button_hover_bg_color config option for Windows 11-style hover effect
    • Hover rectangles are properly centered on button icons
    • Close button (rightmost) extends to window edge
    • All buttons include half padding on each side for even spacing
    • Hover effect scales with bar_button_padding setting
  2. Separate bar colors for active/inactive windows:

    • Added bar_color_inactive config option
    • Bar color now changes based on window focus state
    • Matches Hyprland's border behavior (active/inactive)
    • Smooth animated transition between colors
    • Falls back to bar_color if bar_color_inactive is not set

Config example:
plugin:hyprbars:button_hover_bg_color = rgba(ffffff22)
plugin:hyprbars:bar_color = rgba(33333388)
plugin:hyprbars:bar_color_inactive = rgba(2E2E32FF)

This commit adds two new features to hyprbars:

1. Button hover background effect:
   - Added `button_hover_bg_color` config option for Windows 11-style hover effect
   - Hover rectangles are properly centered on button icons
   - Close button (rightmost) extends to window edge
   - All buttons include half padding on each side for even spacing
   - Hover effect scales with bar_button_padding setting

2. Separate bar colors for active/inactive windows:
   - Added `bar_color_inactive` config option
   - Bar color now changes based on window focus state
   - Matches Hyprland's border behavior (active/inactive)
   - Smooth animated transition between colors
   - Falls back to `bar_color` if `bar_color_inactive` is not set

Config example:
  plugin:hyprbars:button_hover_bg_color = rgba(ffffff22)
  plugin:hyprbars:bar_color = rgba(33333388)
  plugin:hyprbars:bar_color_inactive = rgba(2E2E32FF)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants