Skip to content

Commit

Permalink
BUGfix: gtk-3 - theme parsing error ( =>chromium menu theming commented)
Browse files Browse the repository at this point in the history
  • Loading branch information
thekomer committed Aug 10, 2023
1 parent 88168fd commit e1c76ad
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 194 deletions.
136 changes: 68 additions & 68 deletions gtk-3.0/apps/_chromium.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,85 +2,85 @@
color: transparentize($fg_color, 0.2);
background-color: lighten(mix($bg_color, $base_color, 15%), 8%);
}
.menu.chromium {
background-color: lighten($headerbar_color, 2%);
border: 1px solid $borders_color; // adds borders in a non composited env
border-radius: 0.4em;// 5px;
// .menu.chromium {
// background-color: lighten($headerbar_color, 2%);
// border: 1px solid $borders_color; // adds borders in a non composited env
// border-radius: 0.4em;// 5px;

min-height: 17px;
min-width: 40px;
padding: 4px 6px;
margin-left: 2px;
margin-right: 2px;
text-shadow: none;
border-radius: 0.4em;
transition: $menu_transition;
// min-height: 17px;
// min-width: 40px;
// padding: 4px 6px;
// margin-left: 2px;
// margin-right: 2px;
// text-shadow: none;
// border-radius: 0.4em;
// transition: $menu_transition;

&:hover {
color: $selected_fg_color;
background-color: $selected_bg_color;
}
// &:hover {
// color: $selected_fg_color;
// background-color: $selected_bg_color;
// }

&:disabled {
color: $insensitive_fg_color;
&:backdrop { color: $backdrop_insensitive_color; }
}
// &:disabled {
// color: $insensitive_fg_color;
// &:backdrop { color: $backdrop_insensitive_color; }
// }

&:backdrop,
&:backdrop:hover {
color: $backdrop_fg_color;
background-color: transparent;
}
// &:backdrop,
// &:backdrop:hover {
// color: $backdrop_fg_color;
// background-color: transparent;
// }

// submenu indicators
arrow {
min-height: 16px;
min-width: 16px;
// // submenu indicators
// arrow {
// min-height: 16px;
// min-width: 16px;

&:dir(ltr) {
-gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
margin-left: 10px;
}
// &:dir(ltr) {
// -gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
// margin-left: 10px;
// }

&:dir(rtl) {
-gtk-icon-source:-gtk-icontheme('pan-end-symbolic-rtl');
margin-right: 10px;
}
}
// &:dir(rtl) {
// -gtk-icon-source:-gtk-icontheme('pan-end-symbolic-rtl');
// margin-right: 10px;
// }
// }

// avoids labels color being overridden, see
// https://bugzilla.gnome.org/show_bug.cgi?id=767058
label { &:dir(rtl), &:dir(ltr) { color: inherit; }}
// overflow arrows
> arrow {
@include button(undecorated);
// // avoids labels color being overridden, see
// // https://bugzilla.gnome.org/show_bug.cgi?id=767058
// label { &:dir(rtl), &:dir(ltr) { color: inherit; }}
// // overflow arrows
// > arrow {
// @include button(undecorated);

min-height: 16px;
min-width: 16px;
padding: 4px;
background-color: $menu_color;
border-radius: 0;
// min-height: 16px;
// min-width: 16px;
// padding: 4px;
// background-color: $menu_color;
// border-radius: 0;

&.top {
margin-top: -6px;
border-bottom: 1px solid mix($fg_color, $base_color, 10%);
-gtk-icon-source: -gtk-icontheme('pan-up-symbolic');
}
// &.top {
// margin-top: -6px;
// border-bottom: 1px solid mix($fg_color, $base_color, 10%);
// -gtk-icon-source: -gtk-icontheme('pan-up-symbolic');
// }

&.bottom {
margin-bottom: -6px;
border-top: 1px solid mix($fg_color, $base_color, 10%);
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
}
// &.bottom {
// margin-bottom: -6px;
// border-top: 1px solid mix($fg_color, $base_color, 10%);
// -gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
// }

&:hover { background-color: mix($fg_color, $base_color, 10%); }
// &:hover { background-color: mix($fg_color, $base_color, 10%); }

&:backdrop { background-color: $backdrop_menu_color; }
// &:backdrop { background-color: $backdrop_menu_color; }

&:disabled {
color: transparent;
background-color: transparent;
border-color: transparent ;
}
}
}
// &:disabled {
// color: transparent;
// background-color: transparent;
// border-color: transparent ;
// }
// }
// }
63 changes: 0 additions & 63 deletions gtk-3.0/gtk-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -6992,69 +6992,6 @@ SheetStyleDialog.unity-force-quit {
color: rgba(191, 195, 205, 0.8);
background-color: #1f2642; }

.menu.chromium {
background-color: #090c14;
border: 1px solid rgba(255, 255, 255, 0.05);
border-radius: 0.4em;
min-height: 17px;
min-width: 40px;
padding: 4px 6px;
margin-left: 2px;
margin-right: 2px;
text-shadow: none;
border-radius: 0.4em;
transition: all 100ms ease-in; }
.menu.chromium:hover {
color: #ffffff;
background-color: #ff6a00; }
.menu.chromium:disabled, label:disabled selection.chromium {
color: #676a75; }
.menu.chromium:disabled:backdrop {
color: #272f51; }
.menu.chromium:backdrop, label:backdrop selection.chromium, progressbar:backdrop trough.chromium, progressbar:backdrop progress.chromium, .menu.chromium:backdrop:hover {
color: #676a75;
background-color: transparent; }
.menu.chromium arrow {
min-height: 16px;
min-width: 16px; }
.menu.chromium arrow:dir(ltr) {
-gtk-icon-source: -gtk-icontheme("pan-end-symbolic");
margin-left: 10px; }
.menu.chromium arrow:dir(rtl) {
-gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl");
margin-right: 10px; }
.menu.chromium label:dir(rtl), .menu.chromium label:dir(ltr) {
color: inherit; }

> arrow {
background-color: transparent;
background-image: none;
border-color: transparent;
box-shadow: inset 0 1px rgba(255, 255, 255, 0);
text-shadow: none;
-gtk-icon-shadow: none;
min-height: 16px;
min-width: 16px;
padding: 4px;
background-color: #121625;
border-radius: 0; }
> arrow.top {
margin-top: -6px;
border-bottom: 1px solid #242838;
-gtk-icon-source: -gtk-icontheme("pan-up-symbolic"); }
> arrow.bottom {
margin-bottom: -6px;
border-top: 1px solid #242838;
-gtk-icon-source: -gtk-icontheme("pan-down-symbolic"); }
> arrow:hover {
background-color: #242838; }
> arrow:backdrop {
background-color: #15192b; }
> arrow:disabled {
color: transparent;
background-color: transparent;
border-color: transparent; }

/*********
* Geary *
*********/
Expand Down
63 changes: 0 additions & 63 deletions gtk-3.0/gtk.css
Original file line number Diff line number Diff line change
Expand Up @@ -6992,69 +6992,6 @@ SheetStyleDialog.unity-force-quit {
color: rgba(191, 195, 205, 0.8);
background-color: #1f2642; }

.menu.chromium {
background-color: #090c14;
border: 1px solid rgba(255, 255, 255, 0.05);
border-radius: 0.4em;
min-height: 17px;
min-width: 40px;
padding: 4px 6px;
margin-left: 2px;
margin-right: 2px;
text-shadow: none;
border-radius: 0.4em;
transition: all 100ms ease-in; }
.menu.chromium:hover {
color: #ffffff;
background-color: #ff6a00; }
.menu.chromium:disabled, label:disabled selection.chromium {
color: #676a75; }
.menu.chromium:disabled:backdrop {
color: #272f51; }
.menu.chromium:backdrop, label:backdrop selection.chromium, progressbar:backdrop trough.chromium, progressbar:backdrop progress.chromium, .menu.chromium:backdrop:hover {
color: #676a75;
background-color: transparent; }
.menu.chromium arrow {
min-height: 16px;
min-width: 16px; }
.menu.chromium arrow:dir(ltr) {
-gtk-icon-source: -gtk-icontheme("pan-end-symbolic");
margin-left: 10px; }
.menu.chromium arrow:dir(rtl) {
-gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl");
margin-right: 10px; }
.menu.chromium label:dir(rtl), .menu.chromium label:dir(ltr) {
color: inherit; }

> arrow {
background-color: transparent;
background-image: none;
border-color: transparent;
box-shadow: inset 0 1px rgba(255, 255, 255, 0);
text-shadow: none;
-gtk-icon-shadow: none;
min-height: 16px;
min-width: 16px;
padding: 4px;
background-color: #121625;
border-radius: 0; }
> arrow.top {
margin-top: -6px;
border-bottom: 1px solid #242838;
-gtk-icon-source: -gtk-icontheme("pan-up-symbolic"); }
> arrow.bottom {
margin-bottom: -6px;
border-top: 1px solid #242838;
-gtk-icon-source: -gtk-icontheme("pan-down-symbolic"); }
> arrow:hover {
background-color: #242838; }
> arrow:backdrop {
background-color: #15192b; }
> arrow:disabled {
color: transparent;
background-color: transparent;
border-color: transparent; }

/*********
* Geary *
*********/
Expand Down

0 comments on commit e1c76ad

Please sign in to comment.