fix(eww-touch): use nobattery bar's astal-menu launcher button

The touch bar's menu button used a bare icon-btn with no explicit
toggle side, unlike the nobattery bar's accent-coloured launcher.
Mirror the nobattery implementation (class + explicit "toggle top"
args + .menu-launcher styling) for visual and behavioral consistency
between bar variants.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TLz6HWsXCwzQ97LrLt2em6
main
Amir Alexander Abdelbaki 2026-07-09 08:34:41 +02:00
parent 5a0c671dea
commit 0541177974
2 changed files with 11 additions and 2 deletions

View File

@ -83,6 +83,15 @@ tooltip {
}
// astal-menu launcher button accent-coloured icon, highlight on hover
.menu-launcher {
color: #E40046;
font-size: 15pt;
}
.menu-launcher:hover {
color: #5018dd;
}
menuitem {
border: solid;
border-width: 3px;

View File

@ -26,7 +26,7 @@
(box :orientation "h" :space-evenly false :halign "start"
(osk)
(box :class "music" {"${battery}"})
(button :onclick "~/.config/scripts/menu-toggle.sh" :class "icon-btn" :valign "center" :width 26 :height 26 {""})
(button :class "music menu-launcher" :onclick "~/.config/scripts/menu-toggle.sh toggle top" {""})
(metric :label "󰓃 "
:value volume
:onchange "pactl set-sink-volume @DEFAULT_SINK@ {}%"