Skip to content

Commit

Permalink
BUGFix: Gnome 42 - issues with popovers
Browse files Browse the repository at this point in the history
  • Loading branch information
thekomer committed May 10, 2022
1 parent 97f7294 commit c75ab1b
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 28 deletions.
6 changes: 3 additions & 3 deletions gnome-shell/_drawing.scss
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
}

@mixin gradient($c1: $g1, $c2: $g2, $dir: horizontal) {
background-gradient-start: $c1;
background-gradient-end: $c2;
background-gradient-direction: $dir;
background-gradient-start: $c1 !important;
background-gradient-end: $c2 !important;
background-gradient-direction: $dir;
}
20 changes: 10 additions & 10 deletions gnome-shell/gnome-shell.css
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ StScrollBar {
spacing: 42px;
border: none; }
.end-session-dialog .modal-dialog-linked-button:last-child {
background-gradient-start: #ff3300;
background-gradient-end: #ffa100;
background-gradient-start: #ff3300 !important;
background-gradient-end: #ffa100 !important;
background-gradient-direction: horizontal;
color: #fff; }
.end-session-dialog .modal-dialog-linked-button:last-child:hover, .end-session-dialog .modal-dialog-linked-button:last-child:focus {
Expand Down Expand Up @@ -517,8 +517,8 @@ StScrollBar {
padding-right: 0;
padding-left: 1.75em; }
.popup-menu .popup-menu-item:checked {
background-gradient-start: #ff3300;
background-gradient-end: #ffa100;
background-gradient-start: #ff3300 !important;
background-gradient-end: #ffa100 !important;
background-gradient-direction: horizontal;
color: #ffffff;
box-shadow: inset 0 1px 0px #131727;
Expand Down Expand Up @@ -759,8 +759,8 @@ StScrollBar {
transition-duration: 200ms; }
#panel .panel-button:active, #panel .panel-button:overview, #panel .panel-button:focus, #panel .panel-button:checked {
box-shadow: none;
background-gradient-start: #ff3300;
background-gradient-end: #ffa100;
background-gradient-start: #ff3300 !important;
background-gradient-end: #ffa100 !important;
background-gradient-direction: horizontal;
color: #ffffff;
text-shadow: 0px 0px 2px rgba(92, 92, 92, 0.9);
Expand Down Expand Up @@ -940,8 +940,8 @@ StScrollBar {
.calendar-day-base:active, .calendar-day-base:selected {
color: #ffffff;
background-color: #ff6a00;
background-gradient-start: #ff3300;
background-gradient-end: #ffa100;
background-gradient-start: #ff3300 !important;
background-gradient-end: #ffa100 !important;
background-gradient-direction: horizontal;
border-color: black; }
.calendar-day-base.calendar-day-heading {
Expand Down Expand Up @@ -1411,8 +1411,8 @@ StScrollBar {
.app-view-control {
padding: 4px 32px; }
.app-view-control:checked {
background-gradient-start: #ff3300;
background-gradient-end: #ffa100;
background-gradient-start: #ff3300 !important;
background-gradient-end: #ffa100 !important;
background-gradient-direction: horizontal;
color: #fff; }
.app-view-control:hover {
Expand Down
11 changes: 9 additions & 2 deletions gnome-shell/v40/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -524,9 +524,16 @@ StScrollBar {
}

.popup-menu-content { padding: 15px 0; }
.popup-menu-content {
background: darken($bg_color, 1%);
border: none;
border-radius: 7px;
padding: 15px 0;
}
.popup-menu-item {
spacing: 5px;
padding: 5px;
border-radius: 0px;

&:ltr { padding-right: 1.75em; padding-left: 0; }
&:rtl { padding-right: 0; padding-left: 1.75em; }
Expand All @@ -542,8 +549,8 @@ StScrollBar {
color: $selected_fg_color;
}
}
&.selected { background-color: transparentize($fg_color,0.9); color: $fg_color; }
&:active { background-color: $selected_bg_color; color: $selected_fg_color; }
&.selected { background-color: transparentize($fg_color,0.9) !important; color: $fg_color; }
&:active { background-color: $selected_bg_color !important; color: $selected_fg_color; }
&:insensitive { color: transparentize($fg_color,.5); }
}

Expand Down
32 changes: 19 additions & 13 deletions gnome-shell/v40/gnome-shell.css
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ StScrollBar {
spacing: 42px;
border: none; }
.end-session-dialog .modal-dialog-linked-button:last-child {
background-gradient-start: #ff3300;
background-gradient-end: #ffa100;
background-gradient-start: #ff3300 !important;
background-gradient-end: #ffa100 !important;
background-gradient-direction: horizontal;
color: #fff; }
.end-session-dialog .modal-dialog-linked-button:last-child:hover, .end-session-dialog .modal-dialog-linked-button:last-child:focus {
Expand Down Expand Up @@ -506,18 +506,24 @@ StScrollBar {
box-shadow: 0 2px 4px 2px rgba(0, 0, 0, 0.2); }
.popup-menu .popup-menu-content {
padding: 15px 0; }
.popup-menu .popup-menu-content {
background: #0c0f1a;
border: none;
border-radius: 7px;
padding: 15px 0; }
.popup-menu .popup-menu-item {
spacing: 5px;
padding: 5px; }
padding: 5px;
border-radius: 0px; }
.popup-menu .popup-menu-item:ltr {
padding-right: 1.75em;
padding-left: 0; }
.popup-menu .popup-menu-item:rtl {
padding-right: 0;
padding-left: 1.75em; }
.popup-menu .popup-menu-item:checked {
background-gradient-start: #ff3300;
background-gradient-end: #ffa100;
background-gradient-start: #ff3300 !important;
background-gradient-end: #ffa100 !important;
background-gradient-direction: horizontal;
color: #ffffff;
box-shadow: inset 0 1px 0px #131727;
Expand All @@ -526,10 +532,10 @@ StScrollBar {
background-color: rgba(255, 106, 0, 0.9);
color: #ffffff; }
.popup-menu .popup-menu-item.selected {
background-color: rgba(191, 195, 205, 0.1);
background-color: rgba(191, 195, 205, 0.1) !important;
color: #bfc3cd; }
.popup-menu .popup-menu-item:active {
background-color: #ff6a00;
background-color: #ff6a00 !important;
color: #ffffff; }
.popup-menu .popup-menu-item:insensitive {
color: rgba(191, 195, 205, 0.5); }
Expand Down Expand Up @@ -753,8 +759,8 @@ StScrollBar {
transition-duration: 200ms; }
#panel .panel-button:active, #panel .panel-button:overview, #panel .panel-button:focus, #panel .panel-button:checked {
box-shadow: none;
background-gradient-start: #ff3300;
background-gradient-end: #ffa100;
background-gradient-start: #ff3300 !important;
background-gradient-end: #ffa100 !important;
background-gradient-direction: horizontal;
color: #ffffff;
text-shadow: 0px 0px 2px rgba(92, 92, 92, 0.9); }
Expand Down Expand Up @@ -923,8 +929,8 @@ StScrollBar {
.calendar-day-base:active, .calendar-day-base:selected {
color: #ffffff;
background-color: #ff6a00;
background-gradient-start: #ff3300;
background-gradient-end: #ffa100;
background-gradient-start: #ff3300 !important;
background-gradient-end: #ffa100 !important;
background-gradient-direction: horizontal;
border-color: black; }
.calendar-day-base.calendar-day-heading {
Expand Down Expand Up @@ -1365,8 +1371,8 @@ StScrollBar {
.app-view-control {
padding: 4px 32px; }
.app-view-control:checked {
background-gradient-start: #ff3300;
background-gradient-end: #ffa100;
background-gradient-start: #ff3300 !important;
background-gradient-end: #ffa100 !important;
background-gradient-direction: horizontal;
color: #fff; }
.app-view-control:hover {
Expand Down

0 comments on commit c75ab1b

Please sign in to comment.