[libadwaita/wip/exalm/window-border: 2/2] stylesheet: Add a window outline
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/window-border: 2/2] stylesheet: Add a window outline
- Date: Mon, 19 Apr 2021 16:24:09 +0000 (UTC)
commit c8526147babfd7e999ff67d396de1d6a670c8227
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon Apr 19 21:23:33 2021 +0500
stylesheet: Add a window outline
Fixes https://gitlab.gnome.org/GNOME/libadwaita/-/issues/131
src/stylesheet/widgets/_window.scss | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/src/stylesheet/widgets/_window.scss b/src/stylesheet/widgets/_window.scss
index 5cf89d2..0fcbb84 100644
--- a/src/stylesheet/widgets/_window.scss
+++ b/src/stylesheet/widgets/_window.scss
@@ -12,6 +12,12 @@ window {
0 0 0 1px $_wm_border; //doing borders with box-shadow
margin: 0px;
border-radius: $window_radius;
+
+ @if $variant == 'dark' {
+ outline: 1px solid transparentize(white, .9);
+ outline-offset: -1px;
+ }
+
&:backdrop {
// the transparent shadow here is to enforce that the shadow extents don't
// change when we go to backdrop, to prevent jumping windows.
@@ -33,6 +39,7 @@ window {
padding: 0;
border: solid 1px $borders_color;
border-radius: 0;
+ outline: none;
box-shadow: inset 0 0 0 3px $headerbar_bg_color, inset 0 1px $top_hilight;
&:backdrop { box-shadow: inset 0 0 0 3px $backdrop_bg_color, inset 0 1px $top_hilight; }
@@ -42,6 +49,7 @@ window {
&.maximized,
&.fullscreen {
border-radius: 0;
+ outline: none;
box-shadow: none;
}
@@ -51,6 +59,7 @@ window {
&.tiled-right,
&.tiled-bottom {
border-radius: 0;
+ outline: none;
box-shadow: 0 0 0 1px $_wm_border_backdrop,
0 0 0 20px transparent; //transparent control workaround -- #3670
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]