Skip to content

Commit

Permalink
BUGfix: GTK3&4 - titlebar linked buttons bg_color stays unchanged whi…
Browse files Browse the repository at this point in the history
…le window not in focus
  • Loading branch information
thekomer committed Jan 20, 2022
1 parent 0336d04 commit edca09e
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion gtk-3.0/gtk-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -2668,6 +2668,7 @@ headerbar {
color: snow; }
.titlebar .linked > button:checked:backdrop,
headerbar .linked > button:checked:backdrop {
background: rgba(255, 106, 0, 0.6);
color: #ffe6e6; }
.titlebar .linked > button:checked:backdrop label,
headerbar .linked > button:checked:backdrop label {
Expand Down Expand Up @@ -4499,7 +4500,7 @@ toolbar, .primary-toolbar, .inline-toolbar, searchbar,
toolbar, .primary-toolbar {
padding: 4px 3px 3px 4px; }
.osd toolbar, .osd .primary-toolbar {
background-color: transparent; }
background-color: rgba(20, 23, 26, 0.8); }
toolbar.osd, .primary-toolbar.osd {
padding: 13px;
border: none;
Expand Down
3 changes: 2 additions & 1 deletion gtk-3.0/gtk.css
Original file line number Diff line number Diff line change
Expand Up @@ -2668,6 +2668,7 @@ headerbar {
color: snow; }
.titlebar .linked > button:checked:backdrop,
headerbar .linked > button:checked:backdrop {
background: rgba(255, 106, 0, 0.6);
color: #ffe6e6; }
.titlebar .linked > button:checked:backdrop label,
headerbar .linked > button:checked:backdrop label {
Expand Down Expand Up @@ -4499,7 +4500,7 @@ toolbar, .primary-toolbar, .inline-toolbar, searchbar,
toolbar, .primary-toolbar {
padding: 4px 3px 3px 4px; }
.osd toolbar, .osd .primary-toolbar {
background-color: transparent; }
background-color: rgba(20, 23, 26, 0.8); }
toolbar.osd, .primary-toolbar.osd {
padding: 13px;
border: none;
Expand Down
1 change: 1 addition & 0 deletions gtk-3.0/widgets/_header-bars.scss
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ headerbar {
box-shadow: 0px 0px 5px transparentize(#c50ed2, 0.02);
color: rgb(255, 250, 250);
&:backdrop{
background: $backdrop_selected_bg_color;
color: darken(rgb(255, 250, 250), 4%);
label{
color: darken(rgb(255, 250, 250), 4%);;
Expand Down
2 changes: 1 addition & 1 deletion gtk-3.0/widgets/_toolbars.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ toolbar, .primary-toolbar {
padding: 4px 3px 3px 4px;

// on OSD
.osd & { background-color: transparent; }
.osd & { background-color: $osd_bg_color; } // transparent; }

// stand-alone OSD toolbars
&.osd {
Expand Down
1 change: 1 addition & 0 deletions gtk-4.0/gtk-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -2644,6 +2644,7 @@ headerbar {
color: snow; }
.titlebar .linked > button:checked:backdrop,
headerbar .linked > button:checked:backdrop {
background: rgba(255, 106, 0, 0.6);
color: #ffe6e6; }
.titlebar .linked > button:checked:backdrop label,
headerbar .linked > button:checked:backdrop label {
Expand Down
1 change: 1 addition & 0 deletions gtk-4.0/gtk.css
Original file line number Diff line number Diff line change
Expand Up @@ -2644,6 +2644,7 @@ headerbar {
color: snow; }
.titlebar .linked > button:checked:backdrop,
headerbar .linked > button:checked:backdrop {
background: rgba(255, 106, 0, 0.6);
color: #ffe6e6; }
.titlebar .linked > button:checked:backdrop label,
headerbar .linked > button:checked:backdrop label {
Expand Down
1 change: 1 addition & 0 deletions gtk-4.0/widgets/_header-bars.scss
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ headerbar {
box-shadow: 0px 0px 5px transparentize(#c50ed2, 0.02);
color: rgb(255, 250, 250);
&:backdrop{
background: $backdrop_selected_bg_color;
color: darken(rgb(255, 250, 250), 4%);
label{
color: darken(rgb(255, 250, 250), 4%);;
Expand Down

0 comments on commit edca09e

Please sign in to comment.