Skip to content

Commit

Permalink
fixed #44
Browse files Browse the repository at this point in the history
  • Loading branch information
vinceliuice committed Feb 13, 2022
1 parent bf1187c commit 3a081fb
Show file tree
Hide file tree
Showing 11 changed files with 107 additions and 89 deletions.
17 changes: 8 additions & 9 deletions src/main/gtk-3.0/gtk-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -2560,11 +2560,7 @@ searchbar > revealer > box {
}

.titlebar stackswitcher {
border-radius: 9999px;
}

.titlebar stackswitcher.linked:not(.vertical) > button:not(.suggested-action):not(.destructive-action).text-button {
border-radius: 9999px;
border: 2px solid #E0E0E0;
}

.titlebar stackswitcher.linked:not(.vertical) > button:not(.suggested-action):not(.destructive-action).text-button:active {
Expand All @@ -2574,7 +2570,7 @@ searchbar > revealer > box {

.titlebar stackswitcher.linked:not(.vertical) > button:not(.suggested-action):not(.destructive-action).text-button:checked {
background-color: #E0E0E0;
color: rgba(0, 0, 0, 0.87);
color: #2C2C2C;
}

.titlebar .path-bar button:not(.suggested-action):not(.destructive-action).text-button {
Expand Down Expand Up @@ -2734,7 +2730,7 @@ headerbar .entry-tag, headerbar .photos-entry-tag, headerbar .documents-entry-ta

headerbar.windowhandle viewswitcher button:not(.titlebutton):not(.suggested-action):not(.destructive-action) {
border-radius: 0 0 12px 12px;
margin: 0 1px;
margin: 0;
min-width: 120px;
padding: 0;
background-image: none;
Expand Down Expand Up @@ -5201,12 +5197,12 @@ button.titlebutton:not(.suggested-action):not(.destructive-action) {

button.titlebutton:not(.suggested-action):not(.destructive-action).close:hover {
background-color: #E0E0E0;
color: rgba(0, 0, 0, 0.87);
color: #2C2C2C;
}

button.titlebutton:not(.suggested-action):not(.destructive-action).close:active {
background-color: #c7c7c7;
color: rgba(0, 0, 0, 0.87);
color: #2C2C2C;
}

.monospace {
Expand Down Expand Up @@ -9000,6 +8996,9 @@ read if you used those and something break with a version upgrade you're on your
@define-color wm_highlight rgba(255, 255, 255, 0.1);
@define-color wm_bg #2C2C2C;
@define-color wm_unfocused_bg #2C2C2C;
@define-color wm_button_close_icon #2C2C2C;
@define-color wm_button_close_hover_bg #E0E0E0;
@define-color wm_button_close_active_bg #c7c7c7;
/*
FIXME this is really an API */
@define-color content_view_bg #2C2C2C;
Expand Down
17 changes: 8 additions & 9 deletions src/main/gtk-3.0/gtk-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -2560,11 +2560,7 @@ searchbar > revealer > box {
}

.titlebar stackswitcher {
border-radius: 9999px;
}

.titlebar stackswitcher.linked:not(.vertical) > button:not(.suggested-action):not(.destructive-action).text-button {
border-radius: 9999px;
border: 2px solid #333333;
}

.titlebar stackswitcher.linked:not(.vertical) > button:not(.suggested-action):not(.destructive-action).text-button:active {
Expand All @@ -2574,7 +2570,7 @@ searchbar > revealer > box {

.titlebar stackswitcher.linked:not(.vertical) > button:not(.suggested-action):not(.destructive-action).text-button:checked {
background-color: #333333;
color: white;
color: #FFFFFF;
}

.titlebar .path-bar button:not(.suggested-action):not(.destructive-action).text-button {
Expand Down Expand Up @@ -2734,7 +2730,7 @@ headerbar .entry-tag, headerbar .photos-entry-tag, headerbar .documents-entry-ta

headerbar.windowhandle viewswitcher button:not(.titlebutton):not(.suggested-action):not(.destructive-action) {
border-radius: 0 0 12px 12px;
margin: 0 1px;
margin: 0;
min-width: 120px;
padding: 0;
background-image: none;
Expand Down Expand Up @@ -5201,12 +5197,12 @@ button.titlebutton:not(.suggested-action):not(.destructive-action) {

button.titlebutton:not(.suggested-action):not(.destructive-action).close:hover {
background-color: #333333;
color: white;
color: #FFFFFF;
}

button.titlebutton:not(.suggested-action):not(.destructive-action).close:active {
background-color: #1a1a1a;
color: white;
color: #FFFFFF;
}

.monospace {
Expand Down Expand Up @@ -9000,6 +8996,9 @@ read if you used those and something break with a version upgrade you're on your
@define-color wm_highlight rgba(255, 255, 255, 0);
@define-color wm_bg #FFFFFF;
@define-color wm_unfocused_bg #FFFFFF;
@define-color wm_button_close_icon #FFFFFF;
@define-color wm_button_close_hover_bg #333333;
@define-color wm_button_close_active_bg #1a1a1a;
/*
FIXME this is really an API */
@define-color content_view_bg #FFFFFF;
Expand Down
39 changes: 19 additions & 20 deletions src/main/gtk-3.0/gtk.css
Original file line number Diff line number Diff line change
Expand Up @@ -2560,11 +2560,7 @@ searchbar > revealer > box {
}

.titlebar stackswitcher {
border-radius: 9999px;
}

.titlebar stackswitcher.linked:not(.vertical) > button:not(.suggested-action):not(.destructive-action).text-button {
border-radius: 9999px;
border: 2px solid #e0e0e0;
}

.titlebar stackswitcher.linked:not(.vertical) > button:not(.suggested-action):not(.destructive-action).text-button:active {
Expand All @@ -2573,8 +2569,8 @@ searchbar > revealer > box {
}

.titlebar stackswitcher.linked:not(.vertical) > button:not(.suggested-action):not(.destructive-action).text-button:checked {
background-color: #595959;
color: white;
background-color: #e0e0e0;
color: #2C2C2C;
}

.titlebar .path-bar button:not(.suggested-action):not(.destructive-action).text-button {
Expand Down Expand Up @@ -2733,8 +2729,8 @@ headerbar .entry-tag, headerbar .photos-entry-tag, headerbar .documents-entry-ta
}

headerbar.windowhandle viewswitcher button:not(.titlebutton):not(.suggested-action):not(.destructive-action) {
border-radius: 0 0 12px 12px;
margin: 0 1px;
border-radius: 6px;
margin: 2px 0;
min-width: 120px;
padding: 0;
background-image: none;
Expand All @@ -2751,8 +2747,8 @@ headerbar.windowhandle viewswitcher button:not(.titlebutton):not(.suggested-acti
}

headerbar.windowhandle viewswitcher button:not(.titlebutton):not(.suggested-action):not(.destructive-action):checked {
background-color: #595959;
color: white;
background-color: #e0e0e0;
color: rgba(0, 0, 0, 0.87);
}

headerbar.windowhandle viewswitcher button:not(.titlebutton):not(.suggested-action):not(.destructive-action):focus {
Expand Down Expand Up @@ -5200,13 +5196,13 @@ button.titlebutton:not(.suggested-action):not(.destructive-action) {
}

button.titlebutton:not(.suggested-action):not(.destructive-action).close:hover {
background-color: #333333;
color: white;
background-color: #e0e0e0;
color: #2C2C2C;
}

button.titlebutton:not(.suggested-action):not(.destructive-action).close:active {
background-color: #1a1a1a;
color: white;
background-color: #c7c7c7;
color: #2C2C2C;
}

.monospace {
Expand Down Expand Up @@ -5263,7 +5259,7 @@ stackswitcher {
padding: 2px;
margin: 6px 0;
background-color: transparent;
border: 2px solid #DDDDDD;
border: 2px solid #333333;
}

stackswitcher.linked:not(.vertical) > button:not(.suggested-action):not(.destructive-action) {
Expand All @@ -5283,13 +5279,13 @@ stackswitcher.linked:not(.vertical) > button:not(.suggested-action):not(.destruc
}

stackswitcher.linked:not(.vertical) > button:not(.suggested-action):not(.destructive-action):active {
box-shadow: inset 0 0 0 9999px alpha(#DDDDDD, 0.08);
background-image: radial-gradient(circle, alpha(#DDDDDD, 0.08) 10%, transparent 0%);
box-shadow: inset 0 0 0 9999px alpha(#333333, 0.08);
background-image: radial-gradient(circle, alpha(#333333, 0.08) 10%, transparent 0%);
}

stackswitcher.linked:not(.vertical) > button:not(.suggested-action):not(.destructive-action):checked {
background-color: #DDDDDD;
color: rgba(0, 0, 0, 0.87);
background-color: #333333;
color: white;
}

stackswitcher button.text-button {
Expand Down Expand Up @@ -9023,6 +9019,9 @@ read if you used those and something break with a version upgrade you're on your
@define-color wm_highlight rgba(255, 255, 255, 0.1);
@define-color wm_bg #2C2C2C;
@define-color wm_unfocused_bg #2C2C2C;
@define-color wm_button_close_icon #2C2C2C;
@define-color wm_button_close_hover_bg #e0e0e0;
@define-color wm_button_close_active_bg #c7c7c7;
/*
FIXME this is really an API */
@define-color content_view_bg #FFFFFF;
Expand Down
9 changes: 6 additions & 3 deletions src/main/gtk-4.0/gtk-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,7 @@ headerbar .entry-tag {
margin-bottom: 5px;
}

headerbar.windowhandle > viewswitcher > box > button:not(.titlebutton):not(.suggested-action):not(.destructive-action) {
headerbar.windowhandle > viewswitcher > box > button:not(.suggested-action):not(.destructive-action) {
border-radius: 0;
margin-top: 0;
margin-bottom: 0;
Expand Down Expand Up @@ -4021,12 +4021,12 @@ windowcontrols button:not(.suggested-action):not(.destructive-action) {

windowcontrols button:not(.suggested-action):not(.destructive-action).close:hover {
background-color: #E0E0E0;
color: rgba(0, 0, 0, 0.87);
color: #2C2C2C;
}

windowcontrols button:not(.suggested-action):not(.destructive-action).close:active {
background-color: #c7c7c7;
color: rgba(0, 0, 0, 0.87);
color: #2C2C2C;
}

gridview > child:selected, modelbutton.flat:selected, row:selected, calendar:selected, calendar > grid > label.day-number:selected {
Expand Down Expand Up @@ -4364,6 +4364,9 @@ read if you used those and something break with a version upgrade you're on your
@define-color wm_highlight rgba(255, 255, 255, 0.1);
@define-color wm_bg #2C2C2C;
@define-color wm_unfocused_bg #2C2C2C;
@define-color wm_button_close_icon #2C2C2C;
@define-color wm_button_close_hover_bg #E0E0E0;
@define-color wm_button_close_active_bg #c7c7c7;
/*
FIXME this is really an API */
@define-color content_view_bg #2C2C2C;
Expand Down
9 changes: 6 additions & 3 deletions src/main/gtk-4.0/gtk-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,7 @@ headerbar .entry-tag {
margin-bottom: 5px;
}

headerbar.windowhandle > viewswitcher > box > button:not(.titlebutton):not(.suggested-action):not(.destructive-action) {
headerbar.windowhandle > viewswitcher > box > button:not(.suggested-action):not(.destructive-action) {
border-radius: 0;
margin-top: 0;
margin-bottom: 0;
Expand Down Expand Up @@ -4021,12 +4021,12 @@ windowcontrols button:not(.suggested-action):not(.destructive-action) {

windowcontrols button:not(.suggested-action):not(.destructive-action).close:hover {
background-color: #333333;
color: white;
color: #FFFFFF;
}

windowcontrols button:not(.suggested-action):not(.destructive-action).close:active {
background-color: #1a1a1a;
color: white;
color: #FFFFFF;
}

gridview > child:selected, modelbutton.flat:selected, row:selected, calendar:selected, calendar > grid > label.day-number:selected {
Expand Down Expand Up @@ -4364,6 +4364,9 @@ read if you used those and something break with a version upgrade you're on your
@define-color wm_highlight rgba(255, 255, 255, 0);
@define-color wm_bg #FFFFFF;
@define-color wm_unfocused_bg #FFFFFF;
@define-color wm_button_close_icon #FFFFFF;
@define-color wm_button_close_hover_bg #333333;
@define-color wm_button_close_active_bg #1a1a1a;
/*
FIXME this is really an API */
@define-color content_view_bg #FFFFFF;
Expand Down
25 changes: 14 additions & 11 deletions src/main/gtk-4.0/gtk.css
Original file line number Diff line number Diff line change
Expand Up @@ -1385,8 +1385,8 @@ headerbar button:backdrop:checked:disabled:not(.suggested-action):not(.destructi
}

.titlebar stackswitcher.linked:not(.vertical) > button:not(.suggested-action):not(.destructive-action).text-button:checked {
background-color: #595959;
color: white;
background-color: #e0e0e0;
color: rgba(0, 0, 0, 0.87);
}

.titlebar.selection-mode {
Expand Down Expand Up @@ -1488,7 +1488,7 @@ headerbar .entry-tag {
margin-bottom: 5px;
}

headerbar.windowhandle > viewswitcher > box > button:not(.titlebutton):not(.suggested-action):not(.destructive-action) {
headerbar.windowhandle > viewswitcher > box > button:not(.suggested-action):not(.destructive-action) {
border-radius: 0;
margin-top: 0;
margin-bottom: 0;
Expand Down Expand Up @@ -4020,13 +4020,13 @@ windowcontrols button:not(.suggested-action):not(.destructive-action) {
}

windowcontrols button:not(.suggested-action):not(.destructive-action).close:hover {
background-color: #333333;
color: white;
background-color: #e0e0e0;
color: #2C2C2C;
}

windowcontrols button:not(.suggested-action):not(.destructive-action).close:active {
background-color: #1a1a1a;
color: white;
background-color: #c7c7c7;
color: #2C2C2C;
}

gridview > child:selected, modelbutton.flat:selected, row:selected, calendar:selected, calendar > grid > label.day-number:selected {
Expand Down Expand Up @@ -4098,7 +4098,7 @@ stackswitcher {
padding: 2px;
margin: 6px 0;
background-color: transparent;
border: 2px solid #DDDDDD;
border: 2px solid #333333;
}

stackswitcher.linked:not(.vertical) > button:not(.suggested-action):not(.destructive-action) {
Expand All @@ -4118,12 +4118,12 @@ stackswitcher.linked:not(.vertical) > button:not(.suggested-action):not(.destruc
}

stackswitcher.linked:not(.vertical) > button:not(.suggested-action):not(.destructive-action):active {
box-shadow: inset 0 0 0 9999px alpha(#DDDDDD, 0.16);
box-shadow: inset 0 0 0 9999px alpha(#333333, 0.16);
}

stackswitcher.linked:not(.vertical) > button:not(.suggested-action):not(.destructive-action):checked {
background-color: #DDDDDD;
color: rgba(0, 0, 0, 0.87);
background-color: #333333;
color: white;
}

stackswitcher button.text-button {
Expand Down Expand Up @@ -4364,6 +4364,9 @@ read if you used those and something break with a version upgrade you're on your
@define-color wm_highlight rgba(255, 255, 255, 0.1);
@define-color wm_bg #2C2C2C;
@define-color wm_unfocused_bg #2C2C2C;
@define-color wm_button_close_icon #2C2C2C;
@define-color wm_button_close_hover_bg #e0e0e0;
@define-color wm_button_close_active_bg #c7c7c7;
/*
FIXME this is really an API */
@define-color content_view_bg #FFFFFF;
Expand Down
Loading

0 comments on commit 3a081fb

Please sign in to comment.