summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorDaniel Boles <dboles@src.gnome.org>2017-05-31 08:16:51 +0100
committerDaniel Boles <dboles@src.gnome.org>2017-05-31 08:16:51 +0100
commit796f9b5bfb0f356b06515d25203e3bcd00c80687 (patch)
tree9f549266acf50f6671adcdd02ecdb50523666fca /gtk
parentfc96fce4624b7a50a395fb17831126350754c783 (diff)
downloadgtk+-796f9b5bfb0f356b06515d25203e3bcd00c80687.tar.gz
themes: Square corners on fullscreen win headerbar
Totem uses a fullscreen window with a headerbar at the top, and without this change, that headerbar has rounded corners, which look different from a maximised window and let video content show through beneath. https://bugzilla.gnome.org/show_bug.cgi?id=770513
Diffstat (limited to 'gtk')
-rw-r--r--gtk/theme/Adwaita/_common.scss8
-rw-r--r--gtk/theme/Adwaita/gtk-contained-dark.css2
-rw-r--r--gtk/theme/Adwaita/gtk-contained.css2
-rw-r--r--gtk/theme/HighContrast/_common.scss8
-rw-r--r--gtk/theme/HighContrast/gtk-contained-inverse.css3
-rw-r--r--gtk/theme/HighContrast/gtk-contained.css3
6 files changed, 19 insertions, 7 deletions
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 5d235b9735..30dbf9386a 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -1568,8 +1568,14 @@ headerbar {
}
}
+ // squared corners when the window is maximized, tiled, or fullscreen
.tiled &,
- .maximized & { &:backdrop, & { border-radius: 0; }} // squared corners when the window is maximized or tiled
+ .maximized &,
+ .fullscreen & {
+ &:backdrop, & {
+ border-radius: 0;
+ }
+ }
&.default-decoration {
min-height: 28px;
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index ce4f6c099a..5f06325a0d 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -648,7 +648,7 @@ searchbar, .location-bar { border-width: 0 0 1px; padding: 3px; }
.selection-mode.titlebar:not(headerbar) .selection-menu:backdrop .arrow, .selection-mode.titlebar:not(headerbar) .selection-menu .arrow, headerbar.selection-mode .selection-menu:backdrop .arrow, headerbar.selection-mode .selection-menu .arrow { -gtk-icon-source: -gtk-icontheme("pan-down-symbolic"); color: rgba(255, 255, 255, 0.5); -gtk-icon-shadow: none; }
-.tiled .titlebar:backdrop:not(headerbar), .tiled .titlebar:not(headerbar), .maximized .titlebar:backdrop:not(headerbar), .maximized .titlebar:not(headerbar), .tiled headerbar:backdrop, .tiled headerbar, .maximized headerbar:backdrop, .maximized headerbar { border-radius: 0; }
+.tiled .titlebar:backdrop:not(headerbar), .tiled .titlebar:not(headerbar), .maximized .titlebar:backdrop:not(headerbar), .maximized .titlebar:not(headerbar), .fullscreen .titlebar:backdrop:not(headerbar), .fullscreen .titlebar:not(headerbar), .tiled headerbar:backdrop, .tiled headerbar, .maximized headerbar:backdrop, .maximized headerbar, .fullscreen headerbar:backdrop, .fullscreen headerbar { border-radius: 0; }
.default-decoration.titlebar:not(headerbar), headerbar.default-decoration { min-height: 28px; padding: 4px; }
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index 307f698b75..ac03d4b884 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -656,7 +656,7 @@ searchbar, .location-bar { border-width: 0 0 1px; padding: 3px; }
.selection-mode.titlebar:not(headerbar) .selection-menu:backdrop .arrow, .selection-mode.titlebar:not(headerbar) .selection-menu .arrow, headerbar.selection-mode .selection-menu:backdrop .arrow, headerbar.selection-mode .selection-menu .arrow { -gtk-icon-source: -gtk-icontheme("pan-down-symbolic"); color: rgba(255, 255, 255, 0.5); -gtk-icon-shadow: none; }
-.tiled .titlebar:backdrop:not(headerbar), .tiled .titlebar:not(headerbar), .maximized .titlebar:backdrop:not(headerbar), .maximized .titlebar:not(headerbar), .tiled headerbar:backdrop, .tiled headerbar, .maximized headerbar:backdrop, .maximized headerbar { border-radius: 0; }
+.tiled .titlebar:backdrop:not(headerbar), .tiled .titlebar:not(headerbar), .maximized .titlebar:backdrop:not(headerbar), .maximized .titlebar:not(headerbar), .fullscreen .titlebar:backdrop:not(headerbar), .fullscreen .titlebar:not(headerbar), .tiled headerbar:backdrop, .tiled headerbar, .maximized headerbar:backdrop, .maximized headerbar, .fullscreen headerbar:backdrop, .fullscreen headerbar { border-radius: 0; }
.default-decoration.titlebar:not(headerbar), headerbar.default-decoration { min-height: 28px; padding: 4px; }
diff --git a/gtk/theme/HighContrast/_common.scss b/gtk/theme/HighContrast/_common.scss
index 4e7d2365cd..dc7c7f8970 100644
--- a/gtk/theme/HighContrast/_common.scss
+++ b/gtk/theme/HighContrast/_common.scss
@@ -1247,8 +1247,12 @@ headerbar {
box-shadow: none;
}
}
- .tiled &, .maximized & {
- border-radius: 0; // squared corners when the window is max'd or tiled
+
+ // squared corners when the window is maximized, tiled, or fullscreen
+ .tiled &,
+ .maximized &,
+ .fullscreen & {
+ border-radius: 0;
}
}
diff --git a/gtk/theme/HighContrast/gtk-contained-inverse.css b/gtk/theme/HighContrast/gtk-contained-inverse.css
index b291b77a25..f30598cd2b 100644
--- a/gtk/theme/HighContrast/gtk-contained-inverse.css
+++ b/gtk/theme/HighContrast/gtk-contained-inverse.css
@@ -1408,8 +1408,9 @@ headerbar {
border-width: 0;
background-image: none;
box-shadow: none; }
- .tiled .titlebar, .maximized .titlebar, .tiled
+ .tiled .titlebar, .maximized .titlebar, .fullscreen .titlebar, .tiled
headerbar, .maximized
+ headerbar, .fullscreen
headerbar {
border-radius: 0; }
diff --git a/gtk/theme/HighContrast/gtk-contained.css b/gtk/theme/HighContrast/gtk-contained.css
index 1196800dda..b1d536961d 100644
--- a/gtk/theme/HighContrast/gtk-contained.css
+++ b/gtk/theme/HighContrast/gtk-contained.css
@@ -1412,8 +1412,9 @@ headerbar {
border-width: 0;
background-image: none;
box-shadow: none; }
- .tiled .titlebar, .maximized .titlebar, .tiled
+ .tiled .titlebar, .maximized .titlebar, .fullscreen .titlebar, .tiled
headerbar, .maximized
+ headerbar, .fullscreen
headerbar {
border-radius: 0; }