summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Mikhaylenko <alexm@gnome.org>2023-03-06 21:08:53 +0400
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2023-04-22 10:15:03 +0000
commit31bb78155aaba390119e97f5096b853466f5fb85 (patch)
treea3b6f55ca485495c2e87836010e4afd8ae6b1176
parente2e73059716f91167ba9ae96322eb50865f930af (diff)
downloadgnome-calendar-31bb78155aaba390119e97f5096b853466f5fb85.tar.gz
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
-rw-r--r--src/theme/style-hc.css5
-rw-r--r--src/theme/style.css12
-rw-r--r--src/theme/theme.gresource.xml1
3 files changed, 10 insertions, 8 deletions
diff --git a/src/theme/style-hc.css b/src/theme/style-hc.css
new file mode 100644
index 00000000..6b9d37ad
--- /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 82ae7026..f23f935b 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 ac5a0c64..98501201 100644
--- a/src/theme/theme.gresource.xml
+++ b/src/theme/theme.gresource.xml
@@ -3,5 +3,6 @@
<gresource prefix="/org/gnome/calendar">
<file>style.css</file>
<file>style-dark.css</file>
+ <file>style-hc.css</file>
</gresource>
</gresources>