Skip to content

Commit

Permalink
Fixed issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vinceliuice committed Sep 19, 2021
1 parent 62a3fa0 commit 2875838
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 5 deletions.
26 changes: 25 additions & 1 deletion src/main/gtk-3.0/gtk-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ entry selection, label selection, textview text selection:focus, textview text s
}

.view, window#gnome-system-monitor.background.csd > box.vertical > stack > box.vertical > scrolledwindow treeview.view:not(.progressbar):not(.trough), filechooser stack.view scrolledwindow treeview.view {
background-color: #2C2C2C;
color: white;
}

Expand Down Expand Up @@ -2817,6 +2818,10 @@ treeview.view, window#gnome-system-monitor.background.csd > box.vertical > stack
-GtkTreeView-expander-size: 16;
}

.csd treeview.view:not(:selected):not(:hover):not(.progressbar):not(.expander):not(.trough):not(.separator), window#gnome-system-monitor.background.csd > box.vertical > stack > box.vertical > scrolledwindow treeview.view:not(:selected):not(:hover):not(.progressbar):not(.expander):not(.trough):not(.separator), .csd filechooser stack.view scrolledwindow treeview.view:not(:selected):not(:hover):not(.progressbar):not(.expander):not(.trough):not(.separator), filechooser stack.view scrolledwindow .csd treeview.view:not(:selected):not(:hover):not(.progressbar):not(.expander):not(.trough):not(.separator) {
background-color: transparent;
}

treeview.view:selected, window#gnome-system-monitor.background.csd > box.vertical > stack > box.vertical > scrolledwindow treeview.view:selected:not(.progressbar):not(.trough), filechooser stack.view scrolledwindow treeview.view:selected {
background-image: image(alpha(currentColor, 0.1));
}
Expand Down Expand Up @@ -2984,10 +2989,14 @@ menu,
padding: 6px;
background-color: #3C3C3C;
background-clip: border-box;
border: none;
border: 2px solid #E0E0E0;
border-radius: 12px;
}

.csd menu, .csd .menu, .csd .context-menu {
border: none;
}

menu menuitem,
.menu menuitem,
.context-menu menuitem {
Expand Down Expand Up @@ -7147,6 +7156,14 @@ window.background.chromium treeview.view button, window.background.chromium file
background-color: #2C2C2C;
}

window.background.chromium menu {
border-color: #555555;
}

window.background.chromium menu menuitem {
border-radius: 0;
}

tooltip.background.chromium {
background-color: #191919;
}
Expand Down Expand Up @@ -7345,6 +7362,13 @@ scrolledwindow#DialogNotebook > viewport.frame > notebook.frame button.close-but
/***********
* Synapse *
***********/
/***************
* Libreoffice *
***************/
window.background > grid > widget > widget > scrolledwindow > viewport > grid > box > box > frame > box {
background-color: #2C2C2C;
}

/*********
* Pamac *
*********/
Expand Down
26 changes: 25 additions & 1 deletion src/main/gtk-3.0/gtk-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ entry selection, label selection, textview text selection:focus, textview text s
}

.view, window#gnome-system-monitor.background.csd > box.vertical > stack > box.vertical > scrolledwindow treeview.view:not(.progressbar):not(.trough), filechooser stack.view scrolledwindow treeview.view {
background-color: #FFFFFF;
color: rgba(0, 0, 0, 0.87);
}

Expand Down Expand Up @@ -2817,6 +2818,10 @@ treeview.view, window#gnome-system-monitor.background.csd > box.vertical > stack
-GtkTreeView-expander-size: 16;
}

.csd treeview.view:not(:selected):not(:hover):not(.progressbar):not(.expander):not(.trough):not(.separator), window#gnome-system-monitor.background.csd > box.vertical > stack > box.vertical > scrolledwindow treeview.view:not(:selected):not(:hover):not(.progressbar):not(.expander):not(.trough):not(.separator), .csd filechooser stack.view scrolledwindow treeview.view:not(:selected):not(:hover):not(.progressbar):not(.expander):not(.trough):not(.separator), filechooser stack.view scrolledwindow .csd treeview.view:not(:selected):not(:hover):not(.progressbar):not(.expander):not(.trough):not(.separator) {
background-color: transparent;
}

treeview.view:selected, window#gnome-system-monitor.background.csd > box.vertical > stack > box.vertical > scrolledwindow treeview.view:selected:not(.progressbar):not(.trough), filechooser stack.view scrolledwindow treeview.view:selected {
background-image: image(alpha(currentColor, 0.1));
}
Expand Down Expand Up @@ -2984,10 +2989,14 @@ menu,
padding: 6px;
background-color: #FFFFFF;
background-clip: border-box;
border: none;
border: 2px solid #333333;
border-radius: 12px;
}

.csd menu, .csd .menu, .csd .context-menu {
border: none;
}

menu menuitem,
.menu menuitem,
.context-menu menuitem {
Expand Down Expand Up @@ -7147,6 +7156,14 @@ window.background.chromium treeview.view button, window.background.chromium file
background-color: #FFFFFF;
}

window.background.chromium menu {
border-color: #cccccc;
}

window.background.chromium menu menuitem {
border-radius: 0;
}

tooltip.background.chromium {
background-color: #343434;
}
Expand Down Expand Up @@ -7345,6 +7362,13 @@ scrolledwindow#DialogNotebook > viewport.frame > notebook.frame button.close-but
/***********
* Synapse *
***********/
/***************
* Libreoffice *
***************/
window.background > grid > widget > widget > scrolledwindow > viewport > grid > box > box > frame > box {
background-color: #FFFFFF;
}

/*********
* Pamac *
*********/
Expand Down
26 changes: 25 additions & 1 deletion src/main/gtk-3.0/gtk.css
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ entry selection, label selection, textview text selection:focus, textview text s
}

.view, window#gnome-system-monitor.background.csd > box.vertical > stack > box.vertical > scrolledwindow treeview.view:not(.progressbar):not(.trough), filechooser stack.view scrolledwindow treeview.view {
background-color: #FFFFFF;
color: rgba(0, 0, 0, 0.87);
}

Expand Down Expand Up @@ -2817,6 +2818,10 @@ treeview.view, window#gnome-system-monitor.background.csd > box.vertical > stack
-GtkTreeView-expander-size: 16;
}

.csd treeview.view:not(:selected):not(:hover):not(.progressbar):not(.expander):not(.trough):not(.separator), window#gnome-system-monitor.background.csd > box.vertical > stack > box.vertical > scrolledwindow treeview.view:not(:selected):not(:hover):not(.progressbar):not(.expander):not(.trough):not(.separator), .csd filechooser stack.view scrolledwindow treeview.view:not(:selected):not(:hover):not(.progressbar):not(.expander):not(.trough):not(.separator), filechooser stack.view scrolledwindow .csd treeview.view:not(:selected):not(:hover):not(.progressbar):not(.expander):not(.trough):not(.separator) {
background-color: transparent;
}

treeview.view:selected, window#gnome-system-monitor.background.csd > box.vertical > stack > box.vertical > scrolledwindow treeview.view:selected:not(.progressbar):not(.trough), filechooser stack.view scrolledwindow treeview.view:selected {
background-image: image(alpha(currentColor, 0.1));
}
Expand Down Expand Up @@ -2984,10 +2989,14 @@ menu,
padding: 6px;
background-color: #FFFFFF;
background-clip: border-box;
border: none;
border: 2px solid #333333;
border-radius: 12px;
}

.csd menu, .csd .menu, .csd .context-menu {
border: none;
}

menu menuitem,
.menu menuitem,
.context-menu menuitem {
Expand Down Expand Up @@ -7148,6 +7157,14 @@ window.background.chromium treeview.view button, window.background.chromium file
background-color: #FFFFFF;
}

window.background.chromium menu {
border-color: #cccccc;
}

window.background.chromium menu menuitem {
border-radius: 0;
}

tooltip.background.chromium {
background-color: #343434;
}
Expand Down Expand Up @@ -7346,6 +7363,13 @@ scrolledwindow#DialogNotebook > viewport.frame > notebook.frame button.close-but
/***********
* Synapse *
***********/
/***************
* Libreoffice *
***************/
window.background > grid > widget > widget > scrolledwindow > viewport > grid > box > box > frame > box {
background-color: #FFFFFF;
}

/*********
* Pamac *
*********/
Expand Down
8 changes: 6 additions & 2 deletions src/sass/gtk/_common-3.0.scss
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
}

.view {
// background-color: $base;
background-color: $base;
color: $text;

&:hover { box-shadow: inset 0 0 0 9999px $overlay-hover; }
Expand Down Expand Up @@ -1462,6 +1462,8 @@ treeview.view {
border-top-color: $divider; // while this is the grid lines color, better then nothing
padding: $space-size / 2;

.csd &:not(:selected):not(:hover):not(.progressbar):not(.expander):not(.trough):not(.separator) { background-color: transparent; }

// FIXME: Avoid transparency background-color being slightly darker
&:selected {
@extend %selected_items;
Expand Down Expand Up @@ -1603,9 +1605,11 @@ menu,
padding: $space-size;
background-color: $surface;
background-clip: border-box;
border: none; // adds borders in a non composited env
border: 2px solid $primary; // adds borders in a non composited env
border-radius: $menu-radius;

.csd & { border: none; }

menuitem {
transition: background-color $duration $ease-out;
min-height: 20px;
Expand Down
17 changes: 17 additions & 0 deletions src/sass/gtk/apps/_misc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ window.background.chromium {
background-color: $base; // FIXME: This should not be necessary
// color: $text-secondary;
}

menu {
border-color: if($variant == 'light', darken($background, 20%), lighten($background, 16%));

menuitem { border-radius: 0; }
}
}

tooltip.background.chromium { background-color: rgba($tooltip, 1); }
Expand Down Expand Up @@ -307,6 +313,17 @@ scrolledwindow#DialogNotebook {
***********/
box.vertical > widget > widget:selected { @extend %selected_items; }


/***************
* Libreoffice *
***************/
window.background {
> grid > widget > widget > scrolledwindow > viewport > grid > box > box > frame > box {
background-color: $base;
}
}


/*********
* Pamac *
*********/
Expand Down

0 comments on commit 2875838

Please sign in to comment.