Commit 54d36f0a authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko

theme: Move window corners to Adwaita

The fact window corners are applied everywhere causes problems for
elementary. At the same time we can't lower priority because it's needed to
override the corners in Adwaita.

Hence move the corners to Adwaita and accept glitchy bottom corners in
random themes. They can override them if needed, not like they don't have
other glitches.

Fixes #273
parent 0e19baf3
......@@ -63,8 +63,6 @@ avatar.contrasted { color: #fff; }
window.csd.unified:not(.solid-csd), window.csd.unified:not(.solid-csd) headerbar { border-radius: 0; }
window.csd.unified:not(.solid-csd):not(.tiled):not(.tiled-top):not(.tiled-bottom):not(.tiled-left):not(.tiled-right):not(.maximized):not(.fullscreen):not(.solid-csd) > decoration, window.csd.unified:not(.solid-csd):not(.tiled):not(.tiled-top):not(.tiled-bottom):not(.tiled-left):not(.tiled-right):not(.maximized):not(.fullscreen):not(.solid-csd) > decoration-overlay { border-radius: 8px; }
.windowhandle, .windowhandle * { -GtkWidget-window-dragging: true; }
popover.combo { padding: 0px; }
......@@ -174,3 +172,5 @@ button.list-button:not(:active):not(:checked):not(:hover) { background: none; bo
window.csd.unified:not(.solid-csd):not(.fullscreen) headerbar { box-shadow: none; }
window.csd.unified:not(.solid-csd):not(.fullscreen) > decoration-overlay { box-shadow: inset 0 1px rgba(255, 255, 255, 0.065); }
window.csd.unified:not(.solid-csd):not(.fullscreen):not(.tiled):not(.tiled-top):not(.tiled-bottom):not(.tiled-left):not(.tiled-right):not(.maximized) > decoration, window.csd.unified:not(.solid-csd):not(.fullscreen):not(.tiled):not(.tiled-top):not(.tiled-bottom):not(.tiled-left):not(.tiled-right):not(.maximized) > decoration-overlay { border-radius: 8px; }
......@@ -63,8 +63,6 @@ avatar.contrasted { color: #fff; }
window.csd.unified:not(.solid-csd), window.csd.unified:not(.solid-csd) headerbar { border-radius: 0; }
window.csd.unified:not(.solid-csd):not(.tiled):not(.tiled-top):not(.tiled-bottom):not(.tiled-left):not(.tiled-right):not(.maximized):not(.fullscreen):not(.solid-csd) > decoration, window.csd.unified:not(.solid-csd):not(.tiled):not(.tiled-top):not(.tiled-bottom):not(.tiled-left):not(.tiled-right):not(.maximized):not(.fullscreen):not(.solid-csd) > decoration-overlay { border-radius: 8px; }
.windowhandle, .windowhandle * { -GtkWidget-window-dragging: true; }
popover.combo { padding: 0px; }
......@@ -174,3 +172,5 @@ button.list-button:not(:active):not(:checked):not(:hover) { background: none; bo
window.csd.unified:not(.solid-csd):not(.fullscreen) headerbar { box-shadow: none; }
window.csd.unified:not(.solid-csd):not(.fullscreen) > decoration-overlay { box-shadow: inset 0 1px rgba(255, 255, 255, 0.8); }
window.csd.unified:not(.solid-csd):not(.fullscreen):not(.tiled):not(.tiled-top):not(.tiled-bottom):not(.tiled-left):not(.tiled-right):not(.maximized) > decoration, window.csd.unified:not(.solid-csd):not(.fullscreen):not(.tiled):not(.tiled-top):not(.tiled-bottom):not(.tiled-left):not(.tiled-right):not(.maximized) > decoration-overlay { border-radius: 8px; }
......@@ -316,4 +316,11 @@ window.csd.unified:not(.solid-csd):not(.fullscreen) {
// for any content and not just headerbar background
box-shadow: inset 0 1px rgba(255, 255, 255, if($variant == 'light', 0.8, 0.065));
}
&:not(.tiled):not(.tiled-top):not(.tiled-bottom):not(.tiled-left):not(.tiled-right):not(.maximized) {
> decoration,
> decoration-overlay {
border-radius: 8px;
}
}
}
......@@ -143,13 +143,6 @@ window.csd.unified:not(.solid-csd) {
&, headerbar {
border-radius: 0;
}
&:not(.tiled):not(.tiled-top):not(.tiled-bottom):not(.tiled-left):not(.tiled-right):not(.maximized):not(.fullscreen):not(.solid-csd) {
> decoration,
> decoration-overlay {
border-radius: 8px;
}
}
}
.windowhandle {
......
......@@ -63,6 +63,4 @@ avatar.contrasted { color: #fff; }
window.csd.unified:not(.solid-csd), window.csd.unified:not(.solid-csd) headerbar { border-radius: 0; }
window.csd.unified:not(.solid-csd):not(.tiled):not(.tiled-top):not(.tiled-bottom):not(.tiled-left):not(.tiled-right):not(.maximized):not(.fullscreen):not(.solid-csd) > decoration, window.csd.unified:not(.solid-csd):not(.tiled):not(.tiled-top):not(.tiled-bottom):not(.tiled-left):not(.tiled-right):not(.maximized):not(.fullscreen):not(.solid-csd) > decoration-overlay { border-radius: 8px; }
.windowhandle, .windowhandle * { -GtkWidget-window-dragging: true; }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment