[gtk/wip/jimmac/adwaita-3-32: 34/38] Adwaita: selection mode labels
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/jimmac/adwaita-3-32: 34/38] Adwaita: selection mode labels
- Date: Mon, 28 Jan 2019 10:58:52 +0000 (UTC)
commit e7d7cb580e670d2526a3ad2f024b435f92dc87f9
Author: Jakub Steiner <jimmac gmail com>
Date: Tue Jan 22 12:15:47 2019 +0100
Adwaita: selection mode labels
- when not in focus, make sure labels are legible
but flat.
Fixes issue #1562
gtk/theme/Adwaita/_common.scss | 5 +++++
gtk/theme/Adwaita/gtk-contained-dark.css | 2 ++
gtk/theme/Adwaita/gtk-contained.css | 2 ++
3 files changed, 9 insertions(+)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 62d61bddd1..f7214f716d 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -1536,6 +1536,11 @@ headerbar {
background-color: $selected_bg_color;
background-image: none;
box-shadow: inset 0 1px mix($top_hilight, $selected_bg_color, 60%);
+
+ label {
+ text-shadow: none;
+ color: $selected_fg_color;
+ }
}
.subtitle:link { @extend *:link:selected; }
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index 5edc566106..252e85d97a 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -600,6 +600,8 @@ searchbar > revealer > box { margin: -6px; padding: 6px; }
.selection-mode .titlebar:backdrop:not(headerbar), .selection-mode.titlebar:backdrop:not(headerbar),
.selection-mode headerbar:backdrop, headerbar.selection-mode:backdrop { background-color: #15539e;
background-image: none; box-shadow: inset 0 1px rgba(32, 91, 162, 0.442); }
+.selection-mode .titlebar:backdrop:not(headerbar) label, .selection-mode.titlebar:backdrop:not(headerbar)
label, .selection-mode headerbar:backdrop label, headerbar.selection-mode:backdrop label { text-shadow: none;
color: #ffffff; }
+
.selection-mode .titlebar:not(headerbar) button, .selection-mode.titlebar:not(headerbar) button,
.selection-mode headerbar button, headerbar.selection-mode button { color: #ffffff; outline-color: rgba(255,
255, 255, 0.3); border-color: #0f3b71; border-bottom-color: #092444; background-image: linear-gradient(to
top, #155099 2px, #15539e); text-shadow: 0 -1px rgba(0, 0, 0, 0.719216); -gtk-icon-shadow: 0 -1px rgba(0, 0,
0, 0.719216); box-shadow: inset 0 1px rgba(255, 255, 255, 0.02), 0 1px 2px rgba(0, 0, 0, 0.07); }
.selection-mode .titlebar:not(headerbar) button.flat, .selection-mode.titlebar:not(headerbar) button.flat,
.selection-mode headerbar button.flat, headerbar.selection-mode button.flat { border-color: transparent;
background-color: transparent; background-image: none; box-shadow: inset 0 1px rgba(255, 255, 255, 0);
text-shadow: none; -gtk-icon-shadow: none; }
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index 314170cddd..93de81f114 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -608,6 +608,8 @@ searchbar > revealer > box { margin: -6px; padding: 6px; }
.selection-mode .titlebar:backdrop:not(headerbar), .selection-mode.titlebar:backdrop:not(headerbar),
.selection-mode headerbar:backdrop, headerbar.selection-mode:backdrop { background-color: #3584e4;
background-image: none; box-shadow: inset 0 1px rgba(154, 194, 242, 0.88); }
+.selection-mode .titlebar:backdrop:not(headerbar) label, .selection-mode.titlebar:backdrop:not(headerbar)
label, .selection-mode headerbar:backdrop label, headerbar.selection-mode:backdrop label { text-shadow: none;
color: #ffffff; }
+
.selection-mode .titlebar:not(headerbar) button, .selection-mode.titlebar:not(headerbar) button,
.selection-mode headerbar button, headerbar.selection-mode button { color: #ffffff; outline-color: rgba(255,
255, 255, 0.3); border-color: #1b6acb; border-bottom-color: #15539e; background-image: linear-gradient(to
top, #2379e2 2px, #3584e4); text-shadow: 0 -1px rgba(0, 0, 0, 0.559216); -gtk-icon-shadow: 0 -1px rgba(0, 0,
0, 0.559216); box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.07); }
.selection-mode .titlebar:not(headerbar) button.flat, .selection-mode.titlebar:not(headerbar) button.flat,
.selection-mode headerbar button.flat, headerbar.selection-mode button.flat { border-color: transparent;
background-color: transparent; background-image: none; box-shadow: inset 0 1px rgba(255, 255, 255, 0);
text-shadow: none; -gtk-icon-shadow: none; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]