Skip to content

Commit

Permalink
Improvement: GTK3&4 - notebook tab close button color
Browse files Browse the repository at this point in the history
  • Loading branch information
thekomer committed Mar 16, 2022
1 parent f30a97e commit 8fde8fb
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 21 deletions.
6 changes: 3 additions & 3 deletions gtk-3.0/apps/_chromium.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.background.chromium {
color: $fg_color;
background-color: lighten($bg_color, 6%);
}
color: transparentize($fg_color, 0.2);
background-color: mix($selected_bg_color, $headerbar_color, 50%);//ighten($bg_color, 8%);
}
4 changes: 4 additions & 0 deletions gtk-3.0/apps/_chromium.scss~
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.background.chromium {
color: $fg_color;
background-color: darken($theme_color, 20%); //lighten($bg_color, 6%);
}
11 changes: 7 additions & 4 deletions gtk-3.0/gtk-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -3360,6 +3360,7 @@ notebook > header {
border-color: rgba(59, 62, 71, 0.145);
background-color: #15192b; }
notebook > header tab button.flat {
color: rgba(191, 195, 205, 0.85);
padding: 0;
margin-top: 4px;
margin-bottom: 4px;
Expand All @@ -3368,8 +3369,10 @@ notebook > header {
notebook > header tab button.flat:hover {
background: transparent;
box-shadow: none;
color: #FF0000; }
notebook > header tab button.flat, notebook > header tab button.flat:backdrop {
color: #ffffff; }
notebook > header tab button.flat:active {
color: #ff6a00; }
notebook > header tab button.flat:backdrop {
color: alpha(currentColor,0.3); }
notebook > header.top tabs, notebook > header.bottom tabs {
padding-left: 0px;
Expand Down Expand Up @@ -6779,8 +6782,8 @@ SheetStyleDialog.unity-force-quit {
* App-Specific Styles *
***********************/
.background.chromium {
color: #BFC3CD;
background-color: #181d32; }
color: rgba(191, 195, 205, 0.8);
background-color: #833906; }

/*********
* Geary *
Expand Down
11 changes: 7 additions & 4 deletions gtk-3.0/gtk.css
Original file line number Diff line number Diff line change
Expand Up @@ -3360,6 +3360,7 @@ notebook > header {
border-color: rgba(59, 62, 71, 0.145);
background-color: #15192b; }
notebook > header tab button.flat {
color: rgba(191, 195, 205, 0.85);
padding: 0;
margin-top: 4px;
margin-bottom: 4px;
Expand All @@ -3368,8 +3369,10 @@ notebook > header {
notebook > header tab button.flat:hover {
background: transparent;
box-shadow: none;
color: #FF0000; }
notebook > header tab button.flat, notebook > header tab button.flat:backdrop {
color: #ffffff; }
notebook > header tab button.flat:active {
color: #ff6a00; }
notebook > header tab button.flat:backdrop {
color: alpha(currentColor,0.3); }
notebook > header.top tabs, notebook > header.bottom tabs {
padding-left: 0px;
Expand Down Expand Up @@ -6779,8 +6782,8 @@ SheetStyleDialog.unity-force-quit {
* App-Specific Styles *
***********************/
.background.chromium {
color: #BFC3CD;
background-color: #181d32; }
color: rgba(191, 195, 205, 0.8);
background-color: #833906; }

/*********
* Geary *
Expand Down
9 changes: 6 additions & 3 deletions gtk-3.0/widgets/_notebooks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,16 @@ notebook {

// colors the button like the label, overridden otherwise
button.flat {
color: transparentize($fg_color, 0.15);
&:hover {
background: transparent;
box-shadow: none;
color: $red;
color: $selected_fg_color;
}

&, &:backdrop { color: gtkalpha(currentColor, 0.3); }
&:active {
color: $theme_color;
}
&:backdrop { color: gtkalpha(currentColor, 0.3); }

padding: 0;
margin-top: 4px;
Expand Down
7 changes: 5 additions & 2 deletions gtk-4.0/gtk-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -3332,6 +3332,7 @@ notebook > header {
border-color: rgba(59, 62, 71, 0.145);
background-color: #15192b; }
notebook > header tab button.flat {
color: rgba(191, 195, 205, 0.85);
padding: 0;
margin-top: 4px;
margin-bottom: 4px;
Expand All @@ -3340,8 +3341,10 @@ notebook > header {
notebook > header tab button.flat:hover {
background: transparent;
box-shadow: none;
color: #FF0000; }
notebook > header tab button.flat, notebook > header tab button.flat:backdrop {
color: #ffffff; }
notebook > header tab button.flat:active {
color: #ff6a00; }
notebook > header tab button.flat:backdrop {
color: alpha(currentColor,0.3); }
notebook > header.top tabs, notebook > header.bottom tabs {
padding-left: 0px;
Expand Down
7 changes: 5 additions & 2 deletions gtk-4.0/gtk.css
Original file line number Diff line number Diff line change
Expand Up @@ -3332,6 +3332,7 @@ notebook > header {
border-color: rgba(59, 62, 71, 0.145);
background-color: #15192b; }
notebook > header tab button.flat {
color: rgba(191, 195, 205, 0.85);
padding: 0;
margin-top: 4px;
margin-bottom: 4px;
Expand All @@ -3340,8 +3341,10 @@ notebook > header {
notebook > header tab button.flat:hover {
background: transparent;
box-shadow: none;
color: #FF0000; }
notebook > header tab button.flat, notebook > header tab button.flat:backdrop {
color: #ffffff; }
notebook > header tab button.flat:active {
color: #ff6a00; }
notebook > header tab button.flat:backdrop {
color: alpha(currentColor,0.3); }
notebook > header.top tabs, notebook > header.bottom tabs {
padding-left: 0px;
Expand Down
9 changes: 6 additions & 3 deletions gtk-4.0/widgets/_notebooks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,16 @@ notebook {

// colors the button like the label, overridden otherwise
button.flat {
color: transparentize($fg_color, 0.15);
&:hover {
background: transparent;
box-shadow: none;
color: $red;
color: $selected_fg_color;
}

&, &:backdrop { color: gtkalpha(currentColor, 0.3); }
&:active {
color: $theme_color;
}
&:backdrop { color: gtkalpha(currentColor, 0.3); }

padding: 0;
margin-top: 4px;
Expand Down

0 comments on commit 8fde8fb

Please sign in to comment.