fixed a gtk button issue on linux

This commit is contained in:
Martin Dvořák 2026-09-07 09:38:10 +02:00
commit 3d25fd5747

View file

@ -935,6 +935,7 @@ static char *build_theme_css(const ThemePalette *p) {
" transition: border-color 150ms ease, box-shadow 150ms ease;" " transition: border-color 150ms ease, box-shadow 150ms ease;"
"}" "}"
".ex-bubble:hover {" ".ex-bubble:hover {"
" background-image: none;"
" border-color: @accent;" " border-color: @accent;"
" box-shadow: 0 6px 20px alpha(@accent, 0.35);" " box-shadow: 0 6px 20px alpha(@accent, 0.35);"
"}" "}"
@ -1027,6 +1028,7 @@ static char *build_theme_css(const ThemePalette *p) {
" padding: 4px 10px;" " padding: 4px 10px;"
"}" "}"
"combobox button:hover {" "combobox button:hover {"
" background-image: none;"
" border-color: @accent;" " border-color: @accent;"
"}" "}"
"combobox.answer-ok button {" "combobox.answer-ok button {"
@ -1038,6 +1040,7 @@ static char *build_theme_css(const ThemePalette *p) {
" background-color: alpha(@error, 0.12);" " background-color: alpha(@error, 0.12);"
"}" "}"
".pill {" ".pill {"
" background-image: none;"
" background-color: @node_bg;" " background-color: @node_bg;"
" color: @fg_text;" " color: @fg_text;"
" border: 2px solid @locked_border;" " border: 2px solid @locked_border;"
@ -1047,7 +1050,15 @@ static char *build_theme_css(const ThemePalette *p) {
" transition: border-color 150ms ease, box-shadow 150ms ease;" " transition: border-color 150ms ease, box-shadow 150ms ease;"
"}" "}"
".pill:hover {" ".pill:hover {"
" background-image: none;"
" background-color: @node_bg;"
" border-color: @accent;" " border-color: @accent;"
" box-shadow: none;"
"}"
".pill:active {"
" background-image: none;"
" background-color: @bg_surface1;"
" box-shadow: none;"
"}" "}"
".pill:checked {" ".pill:checked {"
" background-image: linear-gradient(135deg, @accent 0%%, @accent2 100%%);" " background-image: linear-gradient(135deg, @accent 0%%, @accent2 100%%);"
@ -1064,6 +1075,7 @@ static char *build_theme_css(const ThemePalette *p) {
" box-shadow: 0 0 0 2px alpha(@error, 0.4);" " box-shadow: 0 0 0 2px alpha(@error, 0.4);"
"}" "}"
".chip {" ".chip {"
" background-image: none;"
" background-color: @bg_surface0;" " background-color: @bg_surface0;"
" color: @fg_text;" " color: @fg_text;"
" border: 1px solid @bg_surface1;" " border: 1px solid @bg_surface1;"
@ -1074,13 +1086,21 @@ static char *build_theme_css(const ThemePalette *p) {
" transition: background-color 150ms ease, border-color 150ms ease;" " transition: background-color 150ms ease, border-color 150ms ease;"
"}" "}"
".chip:hover {" ".chip:hover {"
" background-image: none;"
" background-color: @bg_surface1;" " background-color: @bg_surface1;"
" border-color: @accent;" " border-color: @accent;"
" box-shadow: none;"
"}"
".chip:active {"
" background-image: none;"
" background-color: @bg_surface2;"
" box-shadow: none;"
"}" "}"
".chip.ghost-host {" ".chip.ghost-host {"
" opacity: 0;" " opacity: 0;"
"}" "}"
".group-btn {" ".group-btn {"
" background-image: none;"
" background-color: @node_bg;" " background-color: @node_bg;"
" color: @fg_text;" " color: @fg_text;"
" border: 2px solid @locked_border;" " border: 2px solid @locked_border;"
@ -1091,7 +1111,15 @@ static char *build_theme_css(const ThemePalette *p) {
" transition: border-color 150ms ease, box-shadow 150ms ease;" " transition: border-color 150ms ease, box-shadow 150ms ease;"
"}" "}"
".group-btn:hover {" ".group-btn:hover {"
" background-image: none;"
" background-color: @node_bg;"
" border-color: @accent;" " border-color: @accent;"
" box-shadow: none;"
"}"
".group-btn:active {"
" background-image: none;"
" background-color: @bg_surface1;"
" box-shadow: none;"
"}" "}"
".group-btn:checked {" ".group-btn:checked {"
" background-image: linear-gradient(135deg, @accent3 0%%, @success2 100%%);" " background-image: linear-gradient(135deg, @accent3 0%%, @success2 100%%);"