[gtk/wip/jimmac/push-my-buttons-too: 8/9] Adwaita: special case listbox buttons
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/jimmac/push-my-buttons-too: 8/9] Adwaita: special case listbox buttons
- Date: Thu, 18 Oct 2018 13:54:31 +0000 (UTC)
commit 5592be9572672bf3b48d876c269391c1cdef2267
Author: Jakub Steiner <jimmac gmail com>
Date: Tue Oct 2 11:46:27 2018 +0200
Adwaita: special case listbox buttons
gtk/theme/Adwaita/_common.scss | 8 ++++++++
gtk/theme/Adwaita/gtk-contained-dark.css | 6 +++++-
gtk/theme/Adwaita/gtk-contained.css | 6 +++++-
3 files changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index cc72cbf5a1..53e20b90ac 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -995,6 +995,7 @@ toolbar.inline-toolbar toolbutton:backdrop {
0 1px transparentize(white, 1);
text-shadow: none;
-gtk-icon-shadow: none;
+ &:hover { border-color: $borders_color; }
}
/* menu buttons */
@@ -3644,6 +3645,13 @@ row {
}
}
+ button {
+ @extend %undecorated_button;
+ /* do draw a border though: */
+ border: 1px solid transparentize($borders_color, 0.5);
+ }
+
+
&:selected { @extend %selected_items; }
}
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index c5fc4ddd92..558d76e760 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -448,7 +448,9 @@ toolbar.inline-toolbar toolbutton > button.flat, toolbar.inline-toolbar toolbutt
.linked.vertical > spinbutton:only-child:not(.vertical), .linked.vertical > entry:only-child,
.linked.vertical > button:only-child, .linked.vertical > combobox:only-child > box > button.combo {
border-radius: 3px; border-style: solid; }
-modelbutton.flat, .menuitem.button.flat, modelbutton.flat:backdrop, modelbutton.flat:backdrop:hover,
.menuitem.button.flat:backdrop, .menuitem.button.flat:backdrop:hover, button:link, button:visited,
button:link:hover, button:link:active, button:link:checked, button:visited:hover, button:visited:active,
button:visited:checked, calendar.button, .scale-popup button:hover, .scale-popup button:backdrop:hover,
.scale-popup button:backdrop:disabled, .scale-popup button:backdrop { background-color: transparent;
background-image: none; border-color: transparent; box-shadow: inset 0 1px rgba(255, 255, 255, 0), 0 1px
rgba(255, 255, 255, 0); text-shadow: none; -gtk-icon-shadow: none; }
+modelbutton.flat, .menuitem.button.flat, modelbutton.flat:backdrop, modelbutton.flat:backdrop:hover,
.menuitem.button.flat:backdrop, .menuitem.button.flat:backdrop:hover, button:link, button:visited,
button:link:hover, button:link:active, button:link:checked, button:visited:hover, button:visited:active,
button:visited:checked, row button, calendar.button, .scale-popup button:hover, .scale-popup
button:backdrop:hover, .scale-popup button:backdrop:disabled, .scale-popup button:backdrop {
background-color: transparent; background-image: none; border-color: transparent; box-shadow: inset 0 1px
rgba(255, 255, 255, 0), 0 1px rgba(255, 255, 255, 0); text-shadow: none; -gtk-icon-shadow: none; }
+
+modelbutton.flat:hover, .menuitem.button.flat:hover, button:hover:link, button:hover:visited, row
button:hover, calendar.button:hover, .scale-popup button:hover, .scale-popup button:hover:backdrop {
border-color: #1b1f20; }
/* menu buttons */
modelbutton.flat, .menuitem.button.flat { min-height: 26px; padding-left: 5px; padding-right: 5px;
border-radius: 3px; outline-offset: -2px; }
@@ -1596,6 +1598,8 @@ row.activatable:selected.has-open-popup, row.activatable:selected:hover { backgr
row.activatable:selected:backdrop { background-color: #215d9c; }
+row button { /* do draw a border though: */ border: 1px solid rgba(27, 31, 32, 0.5); }
+
/********************* App Notifications * */
.app-notification, .app-notification.frame { padding: 10px; border-radius: 0 0 5px 5px; background-color:
rgba(28, 31, 32, 0.7); background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent 2px);
background-clip: padding-box; }
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index 1df24149fb..23d981f3a1 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -450,7 +450,9 @@ toolbar.inline-toolbar toolbutton > button.flat, toolbar.inline-toolbar toolbutt
.linked.vertical > spinbutton:only-child:not(.vertical), .linked.vertical > entry:only-child,
.linked.vertical > button:only-child, .linked.vertical > combobox:only-child > box > button.combo {
border-radius: 3px; border-style: solid; }
-modelbutton.flat, .menuitem.button.flat, modelbutton.flat:backdrop, modelbutton.flat:backdrop:hover,
.menuitem.button.flat:backdrop, .menuitem.button.flat:backdrop:hover, button:link, button:visited,
button:link:hover, button:link:active, button:link:checked, button:visited:hover, button:visited:active,
button:visited:checked, calendar.button, .scale-popup button:hover, .scale-popup button:backdrop:hover,
.scale-popup button:backdrop:disabled, .scale-popup button:backdrop { background-color: transparent;
background-image: none; border-color: transparent; box-shadow: inset 0 1px rgba(255, 255, 255, 0), 0 1px
rgba(255, 255, 255, 0); text-shadow: none; -gtk-icon-shadow: none; }
+modelbutton.flat, .menuitem.button.flat, modelbutton.flat:backdrop, modelbutton.flat:backdrop:hover,
.menuitem.button.flat:backdrop, .menuitem.button.flat:backdrop:hover, button:link, button:visited,
button:link:hover, button:link:active, button:link:checked, button:visited:hover, button:visited:active,
button:visited:checked, row button, calendar.button, .scale-popup button:hover, .scale-popup
button:backdrop:hover, .scale-popup button:backdrop:disabled, .scale-popup button:backdrop {
background-color: transparent; background-image: none; border-color: transparent; box-shadow: inset 0 1px
rgba(255, 255, 255, 0), 0 1px rgba(255, 255, 255, 0); text-shadow: none; -gtk-icon-shadow: none; }
+
+modelbutton.flat:hover, .menuitem.button.flat:hover, button:hover:link, button:hover:visited, row
button:hover, calendar.button:hover, .scale-popup button:hover, .scale-popup button:hover:backdrop {
border-color: #b6b6b3; }
/* menu buttons */
modelbutton.flat, .menuitem.button.flat { min-height: 26px; padding-left: 5px; padding-right: 5px;
border-radius: 3px; outline-offset: -2px; }
@@ -1616,6 +1618,8 @@ row.activatable:selected.has-open-popup, row.activatable:selected:hover { backgr
row.activatable:selected:backdrop { background-color: #4a90d9; }
+row button { /* do draw a border though: */ border: 1px solid rgba(182, 182, 179, 0.5); }
+
/********************* App Notifications * */
.app-notification, .app-notification.frame { padding: 10px; border-radius: 0 0 5px 5px; background-color:
rgba(28, 31, 32, 0.7); background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent 2px);
background-clip: padding-box; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]