[gtk+/gtk-3-22] HighContrast: don't select .titlebar when is an headerbar



commit b4371728deda7041ec309a517e221b0e68768a94
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Fri Sep 22 22:42:36 2017 +0800

    HighContrast: don't select .titlebar when is an headerbar
    
    https://bugzilla.gnome.org/show_bug.cgi?id=784562

 gtk/theme/HighContrast/_common.scss              |    2 +-
 gtk/theme/HighContrast/gtk-contained-inverse.css |   38 +++++++++++-----------
 gtk/theme/HighContrast/gtk-contained.css         |   38 +++++++++++-----------
 3 files changed, 39 insertions(+), 39 deletions(-)
---
diff --git a/gtk/theme/HighContrast/_common.scss b/gtk/theme/HighContrast/_common.scss
index de3d0fb..1c93a45 100644
--- a/gtk/theme/HighContrast/_common.scss
+++ b/gtk/theme/HighContrast/_common.scss
@@ -1195,7 +1195,7 @@ searchbar {
  * Header bars *
  ***************/
 
-.titlebar,
+.titlebar:not(headerbar),
 headerbar {
   border-width: 0 0 1px;
   border-style: solid;
diff --git a/gtk/theme/HighContrast/gtk-contained-inverse.css 
b/gtk/theme/HighContrast/gtk-contained-inverse.css
index 3751903..bf02a07 100644
--- a/gtk/theme/HighContrast/gtk-contained-inverse.css
+++ b/gtk/theme/HighContrast/gtk-contained-inverse.css
@@ -482,43 +482,43 @@ toolbar.inline-toolbar, searchbar.inline-toolbar { border-style: solid; border-c
 toolbar.inline-toolbar:backdrop, searchbar.inline-toolbar:backdrop { border-color: #737373; 
background-color: #282828; box-shadow: none; }
 
 /*************** Header bars * */
-.titlebar, headerbar { border-width: 0 0 1px; border-style: solid; border-color: gray; border-radius: 7px 
7px 0 0; background-color: transparent; background-image: linear-gradient(to bottom, #0a0a0a, #000); 
box-shadow: inset 0 -1px #262626, inset 0 1px #000; padding: 6px; }
+.titlebar:not(headerbar), headerbar { border-width: 0 0 1px; border-style: solid; border-color: gray; 
border-radius: 7px 7px 0 0; background-color: transparent; background-image: linear-gradient(to bottom, 
#0a0a0a, #000); box-shadow: inset 0 -1px #262626, inset 0 1px #000; padding: 6px; }
 
-.titlebar:backdrop, headerbar:backdrop { border-color: #737373; background-color: #000; background-image: 
none; box-shadow: none; }
+.titlebar:not(headerbar):backdrop, headerbar:backdrop { border-color: #737373; background-color: #000; 
background-image: none; box-shadow: none; }
 
-.titlebar .title, headerbar .title { font-weight: bold; padding: 0px 12px; }
+.titlebar:not(headerbar) .title, headerbar .title { font-weight: bold; padding: 0px 12px; }
 
-.titlebar .subtitle, headerbar .subtitle { font-size: 80%; padding: 0 12px; }
+.titlebar:not(headerbar) .subtitle, headerbar .subtitle { font-size: 80%; padding: 0 12px; }
 
-.titlebar.selection-mode, headerbar.selection-mode { color: #b7b7b7; text-shadow: 0 1px rgba(0, 0, 0, 0.5); 
background-image: linear-gradient(to bottom, #eaeaea, #e2e2e2); box-shadow: inset 0 -1px #262626, inset 0 1px 
#6f6f6f; }
+.titlebar:not(headerbar).selection-mode, headerbar.selection-mode { color: #b7b7b7; text-shadow: 0 1px 
rgba(0, 0, 0, 0.5); background-image: linear-gradient(to bottom, #eaeaea, #e2e2e2); box-shadow: inset 0 -1px 
#262626, inset 0 1px #6f6f6f; }
 
-.titlebar.selection-mode button, headerbar.selection-mode button { border-width: 2px; border-style: solid; 
color: #000; background-image: none; background-color: #ddd; border-color: #9d9d9d; }
+.titlebar:not(headerbar).selection-mode button, headerbar.selection-mode button { border-width: 2px; 
border-style: solid; color: #000; background-image: none; background-color: #ddd; border-color: #9d9d9d; }
 
-.titlebar.selection-mode button:hover, headerbar.selection-mode button:hover { border-width: 2px; 
border-style: solid; color: #000; background-color: #ddd; border-color: #9d9d9d; background-image: none; }
+.titlebar:not(headerbar).selection-mode button:hover, headerbar.selection-mode button:hover { border-width: 
2px; border-style: solid; color: #000; background-color: #ddd; border-color: #9d9d9d; background-image: none; 
}
 
-.titlebar.selection-mode button:active, headerbar.selection-mode button:active { border-width: 2px; 
border-style: solid; background-image: none; color: white; background-color: #222222; border-color: #9d9d9d; }
+.titlebar:not(headerbar).selection-mode button:active, headerbar.selection-mode button:active { 
border-width: 2px; border-style: solid; background-image: none; color: white; background-color: #222222; 
border-color: #9d9d9d; }
 
-.titlebar.selection-mode button:disabled, headerbar.selection-mode button:disabled { border-width: 2px; 
border-style: solid; color: gray; background-color: #070707; border-color: #494949; background-image: none; }
+.titlebar:not(headerbar).selection-mode button:disabled, headerbar.selection-mode button:disabled { 
border-width: 2px; border-style: solid; color: gray; background-color: #070707; border-color: #494949; 
background-image: none; }
 
-.titlebar.selection-mode button:backdrop, headerbar.selection-mode button:backdrop { border-width: 2px; 
border-style: solid; color: #000; background-color: #ddd; border-color: #ddd; background-image: none; 
border-color: #b7b7b7; }
+.titlebar:not(headerbar).selection-mode button:backdrop, headerbar.selection-mode button:backdrop { 
border-width: 2px; border-style: solid; color: #000; background-color: #ddd; border-color: #ddd; 
background-image: none; border-color: #b7b7b7; }
 
-.titlebar.selection-mode button:backdrop:disabled, headerbar.selection-mode button:backdrop:disabled { 
border-width: 2px; border-style: solid; color: gray; background-color: #070707; border-color: #494949; 
background-image: none; }
+.titlebar:not(headerbar).selection-mode button:backdrop:disabled, headerbar.selection-mode 
button:backdrop:disabled { border-width: 2px; border-style: solid; color: gray; background-color: #070707; 
border-color: #494949; background-image: none; }
 
-.titlebar.selection-mode button.suggested-action, headerbar.selection-mode button.suggested-action { 
border-width: 2px; border-style: solid; color: #fff; background-image: none; background-color: #000; 
border-color: gray; }
+.titlebar:not(headerbar).selection-mode button.suggested-action, headerbar.selection-mode 
button.suggested-action { border-width: 2px; border-style: solid; color: #fff; background-image: none; 
background-color: #000; border-color: gray; }
 
-.titlebar.selection-mode button.suggested-action:hover, headerbar.selection-mode 
button.suggested-action:hover { border-width: 2px; border-style: solid; color: #fff; background-color: #000; 
border-color: gray; background-image: none; }
+.titlebar:not(headerbar).selection-mode button.suggested-action:hover, headerbar.selection-mode 
button.suggested-action:hover { border-width: 2px; border-style: solid; color: #fff; background-color: #000; 
border-color: gray; background-image: none; }
 
-.titlebar.selection-mode button.suggested-action:active, headerbar.selection-mode 
button.suggested-action:active { border-width: 2px; border-style: solid; background-image: none; color: 
black; background-color: white; border-color: gray; }
+.titlebar:not(headerbar).selection-mode button.suggested-action:active, headerbar.selection-mode 
button.suggested-action:active { border-width: 2px; border-style: solid; background-image: none; color: 
black; background-color: white; border-color: gray; }
 
-.titlebar.selection-mode button.suggested-action:disabled, headerbar.selection-mode 
button.suggested-action:disabled { border-width: 2px; border-style: solid; color: gray; background-color: 
#070707; border-color: #494949; background-image: none; }
+.titlebar:not(headerbar).selection-mode button.suggested-action:disabled, headerbar.selection-mode 
button.suggested-action:disabled { border-width: 2px; border-style: solid; color: gray; background-color: 
#070707; border-color: #494949; background-image: none; }
 
-.titlebar.selection-mode button.suggested-action:backdrop, headerbar.selection-mode 
button.suggested-action:backdrop { border-width: 2px; border-style: solid; color: #fff; background-color: 
#000; border-color: #737373; background-image: none; }
+.titlebar:not(headerbar).selection-mode button.suggested-action:backdrop, headerbar.selection-mode 
button.suggested-action:backdrop { border-width: 2px; border-style: solid; color: #fff; background-color: 
#000; border-color: #737373; background-image: none; }
 
-.titlebar.selection-mode button.suggested-action:backdrop:disabled, headerbar.selection-mode 
button.suggested-action:backdrop:disabled { border-width: 2px; border-style: solid; color: gray; 
background-color: #070707; border-color: #494949; background-image: none; }
+.titlebar:not(headerbar).selection-mode button.suggested-action:backdrop:disabled, headerbar.selection-mode 
button.suggested-action:backdrop:disabled { border-width: 2px; border-style: solid; color: gray; 
background-color: #070707; border-color: #494949; background-image: none; }
 
-.titlebar.selection-mode .selection-menu, headerbar.selection-mode .selection-menu { border-width: 0; 
background-image: none; box-shadow: none; }
+.titlebar:not(headerbar).selection-mode .selection-menu, headerbar.selection-mode .selection-menu { 
border-width: 0; background-image: none; box-shadow: none; }
 
-.tiled .titlebar, .maximized .titlebar, .fullscreen .titlebar, .tiled headerbar, .maximized headerbar, 
.fullscreen headerbar { border-radius: 0; }
+.tiled .titlebar:not(headerbar), .maximized .titlebar:not(headerbar), .fullscreen .titlebar:not(headerbar), 
.tiled headerbar, .maximized headerbar, .fullscreen headerbar { border-radius: 0; }
 
 /************ Pathbars * */
 .path-bar button { padding: 5px 6px 6px; }
diff --git a/gtk/theme/HighContrast/gtk-contained.css b/gtk/theme/HighContrast/gtk-contained.css
index 1d982b2..ee70fde 100644
--- a/gtk/theme/HighContrast/gtk-contained.css
+++ b/gtk/theme/HighContrast/gtk-contained.css
@@ -486,43 +486,43 @@ toolbar.inline-toolbar, searchbar.inline-toolbar { border-style: solid; border-c
 toolbar.inline-toolbar:backdrop, searchbar.inline-toolbar:backdrop { border-color: #8d8d8d; 
background-color: #d7d7d7; box-shadow: none; }
 
 /*************** Header bars * */
-.titlebar, headerbar { border-width: 0 0 1px; border-style: solid; border-color: gray; border-radius: 7px 
7px 0 0; background-color: transparent; background-image: linear-gradient(to bottom, white, #fff); 
box-shadow: inset 0 -1px #d9d9d9, inset 0 1px #fff; padding: 6px; }
+.titlebar:not(headerbar), headerbar { border-width: 0 0 1px; border-style: solid; border-color: gray; 
border-radius: 7px 7px 0 0; background-color: transparent; background-image: linear-gradient(to bottom, 
white, #fff); box-shadow: inset 0 -1px #d9d9d9, inset 0 1px #fff; padding: 6px; }
 
-.titlebar:backdrop, headerbar:backdrop { border-color: #8d8d8d; background-color: #fff; background-image: 
none; box-shadow: none; }
+.titlebar:not(headerbar):backdrop, headerbar:backdrop { border-color: #8d8d8d; background-color: #fff; 
background-image: none; box-shadow: none; }
 
-.titlebar .title, headerbar .title { font-weight: bold; padding: 0px 12px; }
+.titlebar:not(headerbar) .title, headerbar .title { font-weight: bold; padding: 0px 12px; }
 
-.titlebar .subtitle, headerbar .subtitle { font-size: 80%; padding: 0 12px; }
+.titlebar:not(headerbar) .subtitle, headerbar .subtitle { font-size: 80%; padding: 0 12px; }
 
-.titlebar.selection-mode, headerbar.selection-mode { color: black; text-shadow: 0 1px rgba(0, 0, 0, 0.5); 
background-image: linear-gradient(to bottom, #0d0d0d, #050505); box-shadow: inset 0 -1px #d9d9d9, inset 0 1px 
gray; }
+.titlebar:not(headerbar).selection-mode, headerbar.selection-mode { color: black; text-shadow: 0 1px rgba(0, 
0, 0, 0.5); background-image: linear-gradient(to bottom, #0d0d0d, #050505); box-shadow: inset 0 -1px #d9d9d9, 
inset 0 1px gray; }
 
-.titlebar.selection-mode button, headerbar.selection-mode button { border-width: 2px; border-style: solid; 
color: #fff; background-image: none; background-color: #000; border-color: black; }
+.titlebar:not(headerbar).selection-mode button, headerbar.selection-mode button { border-width: 2px; 
border-style: solid; color: #fff; background-image: none; background-color: #000; border-color: black; }
 
-.titlebar.selection-mode button:hover, headerbar.selection-mode button:hover { border-width: 2px; 
border-style: solid; color: #fff; background-color: #000; border-color: black; background-image: none; }
+.titlebar:not(headerbar).selection-mode button:hover, headerbar.selection-mode button:hover { border-width: 
2px; border-style: solid; color: #fff; background-color: #000; border-color: black; background-image: none; }
 
-.titlebar.selection-mode button:active, headerbar.selection-mode button:active { border-width: 2px; 
border-style: solid; background-image: none; color: black; background-color: white; border-color: black; }
+.titlebar:not(headerbar).selection-mode button:active, headerbar.selection-mode button:active { 
border-width: 2px; border-style: solid; background-image: none; color: black; background-color: white; 
border-color: black; }
 
-.titlebar.selection-mode button:disabled, headerbar.selection-mode button:disabled { border-width: 2px; 
border-style: solid; color: gray; background-color: white; border-color: silver; background-image: none; }
+.titlebar:not(headerbar).selection-mode button:disabled, headerbar.selection-mode button:disabled { 
border-width: 2px; border-style: solid; color: gray; background-color: white; border-color: silver; 
background-image: none; }
 
-.titlebar.selection-mode button:backdrop, headerbar.selection-mode button:backdrop { border-width: 2px; 
border-style: solid; color: #fff; background-color: #000; border-color: #000; background-image: none; 
border-color: black; }
+.titlebar:not(headerbar).selection-mode button:backdrop, headerbar.selection-mode button:backdrop { 
border-width: 2px; border-style: solid; color: #fff; background-color: #000; border-color: #000; 
background-image: none; border-color: black; }
 
-.titlebar.selection-mode button:backdrop:disabled, headerbar.selection-mode button:backdrop:disabled { 
border-width: 2px; border-style: solid; color: gray; background-color: white; border-color: silver; 
background-image: none; }
+.titlebar:not(headerbar).selection-mode button:backdrop:disabled, headerbar.selection-mode 
button:backdrop:disabled { border-width: 2px; border-style: solid; color: gray; background-color: white; 
border-color: silver; background-image: none; }
 
-.titlebar.selection-mode button.suggested-action, headerbar.selection-mode button.suggested-action { 
border-width: 2px; border-style: solid; color: #000; background-image: none; background-color: #fff; 
border-color: gray; }
+.titlebar:not(headerbar).selection-mode button.suggested-action, headerbar.selection-mode 
button.suggested-action { border-width: 2px; border-style: solid; color: #000; background-image: none; 
background-color: #fff; border-color: gray; }
 
-.titlebar.selection-mode button.suggested-action:hover, headerbar.selection-mode 
button.suggested-action:hover { border-width: 2px; border-style: solid; color: #000; background-color: #fff; 
border-color: gray; background-image: none; }
+.titlebar:not(headerbar).selection-mode button.suggested-action:hover, headerbar.selection-mode 
button.suggested-action:hover { border-width: 2px; border-style: solid; color: #000; background-color: #fff; 
border-color: gray; background-image: none; }
 
-.titlebar.selection-mode button.suggested-action:active, headerbar.selection-mode 
button.suggested-action:active { border-width: 2px; border-style: solid; background-image: none; color: 
white; background-color: black; border-color: gray; }
+.titlebar:not(headerbar).selection-mode button.suggested-action:active, headerbar.selection-mode 
button.suggested-action:active { border-width: 2px; border-style: solid; background-image: none; color: 
white; background-color: black; border-color: gray; }
 
-.titlebar.selection-mode button.suggested-action:disabled, headerbar.selection-mode 
button.suggested-action:disabled { border-width: 2px; border-style: solid; color: gray; background-color: 
white; border-color: silver; background-image: none; }
+.titlebar:not(headerbar).selection-mode button.suggested-action:disabled, headerbar.selection-mode 
button.suggested-action:disabled { border-width: 2px; border-style: solid; color: gray; background-color: 
white; border-color: silver; background-image: none; }
 
-.titlebar.selection-mode button.suggested-action:backdrop, headerbar.selection-mode 
button.suggested-action:backdrop { border-width: 2px; border-style: solid; color: #000; background-color: 
#fff; border-color: #8d8d8d; background-image: none; }
+.titlebar:not(headerbar).selection-mode button.suggested-action:backdrop, headerbar.selection-mode 
button.suggested-action:backdrop { border-width: 2px; border-style: solid; color: #000; background-color: 
#fff; border-color: #8d8d8d; background-image: none; }
 
-.titlebar.selection-mode button.suggested-action:backdrop:disabled, headerbar.selection-mode 
button.suggested-action:backdrop:disabled { border-width: 2px; border-style: solid; color: gray; 
background-color: white; border-color: silver; background-image: none; }
+.titlebar:not(headerbar).selection-mode button.suggested-action:backdrop:disabled, headerbar.selection-mode 
button.suggested-action:backdrop:disabled { border-width: 2px; border-style: solid; color: gray; 
background-color: white; border-color: silver; background-image: none; }
 
-.titlebar.selection-mode .selection-menu, headerbar.selection-mode .selection-menu { border-width: 0; 
background-image: none; box-shadow: none; }
+.titlebar:not(headerbar).selection-mode .selection-menu, headerbar.selection-mode .selection-menu { 
border-width: 0; background-image: none; box-shadow: none; }
 
-.tiled .titlebar, .maximized .titlebar, .fullscreen .titlebar, .tiled headerbar, .maximized headerbar, 
.fullscreen headerbar { border-radius: 0; }
+.tiled .titlebar:not(headerbar), .maximized .titlebar:not(headerbar), .fullscreen .titlebar:not(headerbar), 
.tiled headerbar, .maximized headerbar, .fullscreen headerbar { border-radius: 0; }
 
 /************ Pathbars * */
 .path-bar button { padding: 5px 6px 6px; }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]