fix(ui): restore toolbar icon hover feedback (#2990)

Toolbar and tool window icon buttons (IconButton) paint --bg-toolbar-hover across their hit target again, so hovering shows the clickable area. Disabled buttons stay transparent; pressed, selected, focus ring and icon colours are unchanged. The hover colours match the toolbar tokens already used for the pressed state in Islands Light and Dark.

Co-authored-by: Mr0Bread <55754540+Mr0Bread@users.noreply.github.com>
This commit is contained in:
Mr0Bread
2026-11-15 17:23:13 +08:00
committed by GitHub
parent f9af0e7bff
commit cf71a61cdf
4 changed files with 97 additions and 1 deletions
+2 -1
View File
@@ -72,7 +72,7 @@
color: var(--fg-faint);
}
/* Toolbar / action buttons: transparent on hover, filled when pressed or selected. */
/* Toolbar / action buttons share the toolbar hover, pressed and selected tokens. */
.iconButton {
flex: none;
display: inline-flex;
@@ -89,6 +89,7 @@
outline-offset: -2px;
}
.iconButton:not(:disabled):hover {
background: var(--bg-toolbar-hover);
color: var(--fg-strong);
}
.iconButton:not(:disabled):active {