Skip to content

Commit

Permalink
BUGfix: GTK3 - window border backdrpo background ?!
Browse files Browse the repository at this point in the history
  • Loading branch information
thekomer committed Jan 31, 2022
1 parent 089dfe9 commit dec281a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 22 deletions.
Binary file modified assets/close_unfocused.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 3 additions & 8 deletions gtk-3.0/gtk-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -4731,16 +4731,14 @@ decoration {
decoration:backdrop {
box-shadow: 0 4px 10px 2px rgba(255, 255, 255, 0);
transition: 200ms ease-out;
border: 2px solid #15161b;
background: #15161b; }
border: 2px solid #15161b; }
.maximized decoration,
.fullscreen decoration,
.tiled decoration {
border-radius: 0; }
.popup decoration {
box-shadow: none;
border: 0px solid #15161b;
background: #15161b; }
border: 0px solid #15161b; }
.ssd decoration {
box-shadow: none; }
.csd.popup decoration {
Expand All @@ -4750,8 +4748,7 @@ decoration {
tooltip.csd decoration {
border-radius: 5px;
box-shadow: none;
border: 0px solid #15161b;
background: #15161b; }
border: 0px solid #15161b; }
messagedialog.csd decoration {
border-radius: 7px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0); }
Expand Down Expand Up @@ -4783,8 +4780,6 @@ button.titlebutton {
button.titlebutton:backdrop {
-gtk-icon-shadow: none;
background-image: -gtk-scaled(url("../assets/close_unfocused.png"), url("../assets/close_unfocused@2.png")); }
button.titlebutton:backdrop:hover, button.titlebutton:backdrop:active {
background-image: inherit; }

headerbar.selection-mode button.titlebutton,
.titlebar.selection-mode button.titlebutton {
Expand Down
11 changes: 3 additions & 8 deletions gtk-3.0/gtk.css
Original file line number Diff line number Diff line change
Expand Up @@ -4731,16 +4731,14 @@ decoration {
decoration:backdrop {
box-shadow: 0 4px 10px 2px rgba(255, 255, 255, 0);
transition: 200ms ease-out;
border: 2px solid #15161b;
background: #15161b; }
border: 2px solid #15161b; }
.maximized decoration,
.fullscreen decoration,
.tiled decoration {
border-radius: 0; }
.popup decoration {
box-shadow: none;
border: 0px solid #15161b;
background: #15161b; }
border: 0px solid #15161b; }
.ssd decoration {
box-shadow: none; }
.csd.popup decoration {
Expand All @@ -4750,8 +4748,7 @@ decoration {
tooltip.csd decoration {
border-radius: 5px;
box-shadow: none;
border: 0px solid #15161b;
background: #15161b; }
border: 0px solid #15161b; }
messagedialog.csd decoration {
border-radius: 7px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0); }
Expand Down Expand Up @@ -4783,8 +4780,6 @@ button.titlebutton {
button.titlebutton:backdrop {
-gtk-icon-shadow: none;
background-image: -gtk-scaled(url("../assets/close_unfocused.png"), url("../assets/close_unfocused@2.png")); }
button.titlebutton:backdrop:hover, button.titlebutton:backdrop:active {
background-image: inherit; }

headerbar.selection-mode button.titlebutton,
.titlebar.selection-mode button.titlebutton {
Expand Down
12 changes: 6 additions & 6 deletions gtk-3.0/widgets/_windows.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ decoration {
transition: $backdrop_transition;
// added for accessibility (window borders)
border: 2px solid $window_border_backdrop_color;
background: $window_border_backdrop_color;
//background: $window_border_backdrop_color;
}

.maximized &,
Expand All @@ -45,7 +45,7 @@ decoration {
.popup & {
box-shadow: none;
border: 0px solid $window_border_backdrop_color;
background: $window_border_backdrop_color;
//background: $window_border_backdrop_color;
}

// server-side decorations as used by mutter
Expand All @@ -61,7 +61,7 @@ decoration {
border-radius: 5px;
box-shadow: none;
border: 0px solid $window_border_backdrop_color;
background: $window_border_backdrop_color;
//background: $window_border_backdrop_color;
}

messagedialog.csd & {
Expand Down Expand Up @@ -115,9 +115,9 @@ button.titlebutton {
&:backdrop {
-gtk-icon-shadow: none;
background-image: -gtk-scaled(url("../assets/close_unfocused.png"),url("../assets/close_unfocused@2.png"));
&:hover,&:active {
background-image: inherit;
}
//&:hover,&:active {
//background-image: none;
//}
}
}

Expand Down

0 comments on commit dec281a

Please sign in to comment.