From 31bb78155aaba390119e97f5096b853466f5fb85 Mon Sep 17 00:00:00 2001 From: Alexander Mikhaylenko Date: Mon, 6 Mar 2023 21:08:53 +0400 Subject: [PATCH] style: Fix source button styles - Port the style to GTK4 and remove obsolete styles - Fix double border in high contrast - Update for libadwaita toolbar margin changes --- src/theme/style-hc.css | 5 +++++ src/theme/style.css | 12 ++++-------- src/theme/theme.gresource.xml | 1 + 3 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 src/theme/style-hc.css diff --git a/src/theme/style-hc.css b/src/theme/style-hc.css new file mode 100644 index 000000000..6b9d37add --- /dev/null +++ b/src/theme/style-hc.css @@ -0,0 +1,5 @@ +.sources-button > button:hover, +.sources-button > button:active, +.sources-button > button:checked { + box-shadow: inset 1px 0 @borders, inset -1px 0 @borders; +} diff --git a/src/theme/style.css b/src/theme/style.css index 82ae7026d..f23f935bd 100644 --- a/src/theme/style.css +++ b/src/theme/style.css @@ -133,16 +133,12 @@ popover.event-popover > contents { /* Edit dialog's header button */ .sources-button { - margin-top: 0; - margin-bottom: 0; - border-radius: 0; - border-top-style: none; - border-bottom-style: none; + margin-top: -6px; + margin-bottom: -6px; } -.sources-button:hover:not(:backdrop) { - background-image: none; - text-shadow: none; +.sources-button > button { + border-radius: 0; } /* defeats the ugly hover effect of the calendar color dot on buttons */ diff --git a/src/theme/theme.gresource.xml b/src/theme/theme.gresource.xml index ac5a0c641..985012012 100644 --- a/src/theme/theme.gresource.xml +++ b/src/theme/theme.gresource.xml @@ -3,5 +3,6 @@ style.css style-dark.css + style-hc.css -- GitLab