From fbc99ecd74f77b92f36ad346d510b8117d87d3dd Mon Sep 17 00:00:00 2001 From: Grant Likely Date: Sat, 14 Jun 2025 08:37:51 +0100 Subject: [PATCH] frontend: Add theming for checked QToolButtons The Yami theme provides colours for checked QPushButtons, but does not do the same for checked QToolButton. This commit adds colors for the QToolButton:checked: state that match the QPushButton:checked: colors --- frontend/data/themes/Yami.obt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/frontend/data/themes/Yami.obt b/frontend/data/themes/Yami.obt index bf5012cd9..557b35a4f 100644 --- a/frontend/data/themes/Yami.obt +++ b/frontend/data/themes/Yami.obt @@ -1498,6 +1498,19 @@ QToolButton:focus, background-color: var(--button_bg_hover); } +QToolButton:checked, +.btn-tool:checked { + background-color: var(--primary); + border-color: var(--primary_light); +} + +QToolButton:checked:hover, +QToolButton:checked:focus, +.btn-tool:checked:hover, +.btn-tool:checked:focus { + border-color: var(--primary_lighter); +} + QToolButton:pressed, QToolButton:pressed:hover, .btn-tool:pressed,