Skip to content

Commit

Permalink
BUGfix: GTK3&4 - window close/minimise/maximise buttons backdrop colo…
Browse files Browse the repository at this point in the history
…r/shape
  • Loading branch information
thekomer committed Jan 17, 2022
1 parent 80f2b4c commit 0ec8f1a
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gtk-3.0/gtk-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -4771,6 +4771,8 @@ 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
2 changes: 2 additions & 0 deletions gtk-3.0/gtk.css
Original file line number Diff line number Diff line change
Expand Up @@ -4771,6 +4771,8 @@ 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
3 changes: 3 additions & 0 deletions gtk-3.0/widgets/_windows.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +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;
}
}
}

Expand Down
2 changes: 2 additions & 0 deletions gtk-4.0/gtk-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -4752,6 +4752,8 @@ windowcontrols button.minimize {
windowcontrols button:backdrop {
-gtk-icon-shadow: none;
background-image: -gtk-scaled(url("../assets/close_unfocused.png"), url("../assets/close_unfocused@2.png")); }
windowcontrols button:backdrop:hover, windowcontrols button:backdrop:active {
background-image: inherit; }

headerbar.selection-mode button.titlebutton,
.titlebar.selection-mode button.titlebutton {
Expand Down
2 changes: 2 additions & 0 deletions gtk-4.0/gtk.css
Original file line number Diff line number Diff line change
Expand Up @@ -4752,6 +4752,8 @@ windowcontrols button.minimize {
windowcontrols button:backdrop {
-gtk-icon-shadow: none;
background-image: -gtk-scaled(url("../assets/close_unfocused.png"), url("../assets/close_unfocused@2.png")); }
windowcontrols button:backdrop:hover, windowcontrols button:backdrop:active {
background-image: inherit; }

headerbar.selection-mode button.titlebutton,
.titlebar.selection-mode button.titlebutton {
Expand Down
3 changes: 3 additions & 0 deletions gtk-4.0/widgets/_windows.scss
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ windowcontrols {
&: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;
}
}
}
}
Expand Down

0 comments on commit 0ec8f1a

Please sign in to comment.