From c4d7438ab7db7d962256a71420f9c8fb2f46bca6 Mon Sep 17 00:00:00 2001 From: Rafael Mardojai CM Date: Sun, 9 Jul 2023 10:03:24 -0500 Subject: [PATCH] Add text selection themning Fixes #648 --- theme/colors/dark.css | 1 + theme/colors/light.css | 1 + theme/parts/toolbox.css | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/theme/colors/dark.css b/theme/colors/dark.css index 198ccfe..f2cee76 100644 --- a/theme/colors/dark.css +++ b/theme/colors/dark.css @@ -12,6 +12,7 @@ /* Accent */ --gnome-accent-bg: #3584e4; --gnome-accent: #78aeed; + --gnome-selection-bg: rgba(53, 132, 228, .25); /* Toolbars */ --gnome-toolbar-background: var(--gnome-headerbar-background); diff --git a/theme/colors/light.css b/theme/colors/light.css index 7a71609..f9c8e1c 100644 --- a/theme/colors/light.css +++ b/theme/colors/light.css @@ -11,6 +11,7 @@ /* Accent */ --gnome-accent-bg: #3584e4; --gnome-accent: #1c71d8; + --gnome-selection-bg: rgba(53, 132, 228, .45); /* Toolbars */ --gnome-toolbar-background: var(--gnome-headerbar-background); diff --git a/theme/parts/toolbox.css b/theme/parts/toolbox.css index 7965e34..4ac7cca 100644 --- a/theme/parts/toolbox.css +++ b/theme/parts/toolbox.css @@ -147,6 +147,11 @@ findbar:-moz-window-inactive description, color: var(--gnome-accent) !important; } +/* Selection*/ +*::-moz-selection { + background-color: var(--gnome-selection-bg) !important; +} + /* OPTIONAL: Hide WebRTC indicator */ @supports -moz-bool-pref("gnomeTheme.hideWebrtcIndicator") { #webrtcIndicator {