Skip to content

Commit

Permalink
Improvement: GTK3&4 - jusr some px to em
Browse files Browse the repository at this point in the history
  • Loading branch information
thekomer committed Jan 15, 2022
1 parent bc0e29d commit a9dbd2b
Show file tree
Hide file tree
Showing 10 changed files with 85 additions and 81 deletions.
12 changes: 8 additions & 4 deletions gtk-3.0/_drawing.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
@else { box-shadow: $shadow1; }
}

// entries
//////////////
// entries //
//////////////

@function entry_focus_border($fc:$selected_bg_color) {
@if $variant == 'light' { @return $fc; }
Expand Down Expand Up @@ -129,7 +131,9 @@
}
}

// buttons
/////////////
// buttons //
/////////////

@function _border_color ($c) { @return darken($c, 25%); }
// colored buttons want the border form the base color
Expand Down Expand Up @@ -254,7 +258,7 @@
//background: linear-gradient(to right, transparentize($theme-gradient-start, 0.4), transparentize($theme-gradient-end, 0.4));
border:none;
} @else if $t==active-header {
border-radius: 23px;
border-radius: 1em; // 23px;
background: linear-gradient(to right, $theme-gradient-start, $theme-gradient-end);
box-shadow: 0px 0px 5px transparentize($selected_bg_color, 0.02);
color: rgb(255, 255, 255);
Expand All @@ -268,7 +272,7 @@
text-shadow: none;
box-shadow: none;
} @else if $t==backdrop-active-header {
border-radius: 23px;
border-radius: 1em; // 23px;
color: if($tc==$text_color, transparentize($tc, 0.6), $tc);
background: $backdrop_selected_bg_color;
box-shadow: 0px 0px 0px transparentize($selected_bg_color, 0.02);
Expand Down
10 changes: 5 additions & 5 deletions gtk-3.0/apps/_xfce.scss
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,13 @@ wnck-pager {
color: $selected_bg_color;
background: transparent;
}
&:selected, &:active, &:checked {
@include button(active-header);
}
&:backdrop {
color: inherit;
background: inherit;
&:selected, &:active, &:checked {
background: transparent;
}
&:selected, &:active, &:checked {
@include button(active-header);
&:backdrop {
@include button(backdrop-active-header);
}
}
Expand Down
38 changes: 19 additions & 19 deletions gtk-3.0/gtk-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -494,12 +494,12 @@ button {
button.text-button {
padding-left: 3em;
padding-right: 3em;
border-radius: 0.2em; }
border-radius: 0.4em; }
notebook > header > tabs > arrow.text-button.image-button,
button.text-button.image-button {
padding-left: 8px;
padding-right: 8px;
border-radius: 0.2em; }
border-radius: 0.4em; }
notebook > header > tabs > arrow.text-button.image-button label,
button.text-button.image-button label {
padding-left: 8px;
Expand Down Expand Up @@ -1236,7 +1236,7 @@ calendar {
color: #BFC3CD;
border: 1px solid rgba(255, 255, 255, 0.05); }
calendar:selected {
border-radius: 23px;
border-radius: 1em;
background: linear-gradient(to right, #ff3300, #ffa100);
box-shadow: 0px 0px 5px rgba(255, 106, 0, 0.98);
color: white;
Expand Down Expand Up @@ -2638,7 +2638,7 @@ headerbar {
.titlebar headerbar .linked > button:backdrop,
headerbar .linked > button:hover,
headerbar .linked > button:backdrop {
border-radius: 23px;
border-radius: 1em;
border-right-style: none;
border: none;
box-shadow: none;
Expand All @@ -2657,7 +2657,7 @@ headerbar {
color: snow; }
.titlebar .linked > button:checked,
headerbar .linked > button:checked {
border-radius: 23px;
border-radius: 1em;
background: linear-gradient(to right, #ff3300, #ffa100);
box-shadow: 0px 0px 5px rgba(197, 14, 210, 0.98);
color: snow; }
Expand Down Expand Up @@ -5365,7 +5365,7 @@ button.raven-trigger {
min-height: 20px;
padding: 3px; }
.raven .raven-header button.text-button.radio:active, .raven .raven-header button.text-button.radio:checked {
border-radius: 23px;
border-radius: 1em;
background: linear-gradient(to right, #ff3300, #ffa100);
box-shadow: 0px 0px 5px rgba(255, 106, 0, 0.98);
color: white; }
Expand Down Expand Up @@ -5755,7 +5755,7 @@ window.background.budgie-settings-window.csd > box.horizontal > stack > scrolled
.nautilus-window .titlebar .path-bar-box widget > .text-button:last-child:active,
.nautilus-window .titlebar .path-bar-box widget > .text-button:last-child:checked,
.nautilus-window .titlebar .path-bar-box button:active, .nautilus-window .titlebar .path-bar-box button:checked {
border-radius: 23px;
border-radius: 1em;
background: linear-gradient(to right, #ff3300, #ffa100);
box-shadow: 0px 0px 5px rgba(255, 106, 0, 0.98);
color: white; }
Expand Down Expand Up @@ -5948,7 +5948,7 @@ wnck-pager {
box-shadow: none;
-gtk-icon-effect: highlight; }
#whiskermenu-window button:checked {
border-radius: 23px;
border-radius: 1em;
background: linear-gradient(to right, #ff3300, #ffa100);
box-shadow: 0px 0px 5px rgba(255, 106, 0, 0.98);
color: white;
Expand Down Expand Up @@ -5985,16 +5985,16 @@ wnck-pager {
.thunar toolbar button:hover {
color: #ff6a00;
background: transparent; }
.thunar toolbar button:backdrop {
color: inherit;
background: transparent; }
.thunar toolbar button:selected, .thunar toolbar button:active, .thunar toolbar button:checked {
border-radius: 23px;
border-radius: 1em;
background: linear-gradient(to right, #ff3300, #ffa100);
box-shadow: 0px 0px 5px rgba(255, 106, 0, 0.98);
color: white; }
.thunar toolbar button:backdrop {
color: inherit;
background: inherit; }
.thunar toolbar button:backdrop:selected, .thunar toolbar button:backdrop:active, .thunar toolbar button:backdrop:checked {
border-radius: 23px;
.thunar toolbar button:selected:backdrop, .thunar toolbar button:active:backdrop, .thunar toolbar button:checked:backdrop {
border-radius: 1em;
color: rgba(191, 195, 205, 0.4);
background: rgba(255, 106, 0, 0.6);
box-shadow: 0px 0px 0px rgba(255, 106, 0, 0.98); }
Expand All @@ -6012,7 +6012,7 @@ window.thunar toolbar#location-toolbar > toolitem > widget > widget.linked.path-
window.thunar toolbar#location-toolbar > toolitem > widget > widget.linked.path-bar > button.toggle.path-bar-button:hover {
color: #ff6a00; }
window.thunar toolbar#location-toolbar > toolitem > widget > widget.linked.path-bar > button.toggle.path-bar-button:checked {
border-radius: 23px;
border-radius: 1em;
background: linear-gradient(to right, #ff3300, #ffa100);
box-shadow: 0px 0px 5px rgba(255, 106, 0, 0.98);
color: white; }
Expand All @@ -6035,7 +6035,7 @@ window.thunar paned > scrolledwindow treeview.view {
border-radius: 0;
box-shadow: none; }
window.thunar paned > scrolledwindow treeview.view:selected, window.thunar paned > scrolledwindow treeview.view:active, window.thunar paned > scrolledwindow treeview.view:checked {
border-radius: 23px;
border-radius: 1em;
background: linear-gradient(to right, #ff3300, #ffa100);
box-shadow: 0px 0px 5px rgba(255, 106, 0, 0.98);
color: white;
Expand Down Expand Up @@ -6730,12 +6730,12 @@ ConversationListView {
color: inherit;
background: transparent; }
.nemo-window .sidebar button:selected, .nemo-window .sidebar button:active, .nemo-window .sidebar button:checked, .nemo-window statusbar button:selected, .nemo-window statusbar button:active, .nemo-window statusbar button:checked, .nemo-window box.toolbar button:selected, .nemo-window box.toolbar button:active, .nemo-window box.toolbar button:checked, .nemo-window toolbar.primary-toolbar button:selected, .nemo-window toolbar.primary-toolbar button:active, .nemo-window toolbar.primary-toolbar button:checked {
border-radius: 23px;
border-radius: 1em;
background: linear-gradient(to right, #ff3300, #ffa100);
box-shadow: 0px 0px 5px rgba(255, 106, 0, 0.98);
color: white; }
.nemo-window .sidebar button:selected:backdrop, .nemo-window .sidebar button:active:backdrop, .nemo-window .sidebar button:checked:backdrop, .nemo-window statusbar button:selected:backdrop, .nemo-window statusbar button:active:backdrop, .nemo-window statusbar button:checked:backdrop, .nemo-window box.toolbar button:selected:backdrop, .nemo-window box.toolbar button:active:backdrop, .nemo-window box.toolbar button:checked:backdrop, .nemo-window toolbar.primary-toolbar button:selected:backdrop, .nemo-window toolbar.primary-toolbar button:active:backdrop, .nemo-window toolbar.primary-toolbar button:checked:backdrop {
border-radius: 23px;
border-radius: 1em;
color: rgba(191, 195, 205, 0.4);
background: rgba(255, 106, 0, 0.6);
box-shadow: 0px 0px 0px rgba(255, 106, 0, 0.98); }
Expand Down Expand Up @@ -6849,7 +6849,7 @@ ConversationListView {
.caja-pathbar button:hover {
color: #ff6a00; }
.caja-pathbar button:checked {
border-radius: 23px;
border-radius: 1em;
background: linear-gradient(to right, #ff3300, #ffa100);
box-shadow: 0px 0px 5px rgba(255, 106, 0, 0.98);
color: white; }
Expand Down
38 changes: 19 additions & 19 deletions gtk-3.0/gtk.css
Original file line number Diff line number Diff line change
Expand Up @@ -494,12 +494,12 @@ button {
button.text-button {
padding-left: 3em;
padding-right: 3em;
border-radius: 0.2em; }
border-radius: 0.4em; }
notebook > header > tabs > arrow.text-button.image-button,
button.text-button.image-button {
padding-left: 8px;
padding-right: 8px;
border-radius: 0.2em; }
border-radius: 0.4em; }
notebook > header > tabs > arrow.text-button.image-button label,
button.text-button.image-button label {
padding-left: 8px;
Expand Down Expand Up @@ -1236,7 +1236,7 @@ calendar {
color: #BFC3CD;
border: 1px solid rgba(255, 255, 255, 0.05); }
calendar:selected {
border-radius: 23px;
border-radius: 1em;
background: linear-gradient(to right, #ff3300, #ffa100);
box-shadow: 0px 0px 5px rgba(255, 106, 0, 0.98);
color: white;
Expand Down Expand Up @@ -2638,7 +2638,7 @@ headerbar {
.titlebar headerbar .linked > button:backdrop,
headerbar .linked > button:hover,
headerbar .linked > button:backdrop {
border-radius: 23px;
border-radius: 1em;
border-right-style: none;
border: none;
box-shadow: none;
Expand All @@ -2657,7 +2657,7 @@ headerbar {
color: snow; }
.titlebar .linked > button:checked,
headerbar .linked > button:checked {
border-radius: 23px;
border-radius: 1em;
background: linear-gradient(to right, #ff3300, #ffa100);
box-shadow: 0px 0px 5px rgba(197, 14, 210, 0.98);
color: snow; }
Expand Down Expand Up @@ -5365,7 +5365,7 @@ button.raven-trigger {
min-height: 20px;
padding: 3px; }
.raven .raven-header button.text-button.radio:active, .raven .raven-header button.text-button.radio:checked {
border-radius: 23px;
border-radius: 1em;
background: linear-gradient(to right, #ff3300, #ffa100);
box-shadow: 0px 0px 5px rgba(255, 106, 0, 0.98);
color: white; }
Expand Down Expand Up @@ -5755,7 +5755,7 @@ window.background.budgie-settings-window.csd > box.horizontal > stack > scrolled
.nautilus-window .titlebar .path-bar-box widget > .text-button:last-child:active,
.nautilus-window .titlebar .path-bar-box widget > .text-button:last-child:checked,
.nautilus-window .titlebar .path-bar-box button:active, .nautilus-window .titlebar .path-bar-box button:checked {
border-radius: 23px;
border-radius: 1em;
background: linear-gradient(to right, #ff3300, #ffa100);
box-shadow: 0px 0px 5px rgba(255, 106, 0, 0.98);
color: white; }
Expand Down Expand Up @@ -5948,7 +5948,7 @@ wnck-pager {
box-shadow: none;
-gtk-icon-effect: highlight; }
#whiskermenu-window button:checked {
border-radius: 23px;
border-radius: 1em;
background: linear-gradient(to right, #ff3300, #ffa100);
box-shadow: 0px 0px 5px rgba(255, 106, 0, 0.98);
color: white;
Expand Down Expand Up @@ -5985,16 +5985,16 @@ wnck-pager {
.thunar toolbar button:hover {
color: #ff6a00;
background: transparent; }
.thunar toolbar button:backdrop {
color: inherit;
background: transparent; }
.thunar toolbar button:selected, .thunar toolbar button:active, .thunar toolbar button:checked {
border-radius: 23px;
border-radius: 1em;
background: linear-gradient(to right, #ff3300, #ffa100);
box-shadow: 0px 0px 5px rgba(255, 106, 0, 0.98);
color: white; }
.thunar toolbar button:backdrop {
color: inherit;
background: inherit; }
.thunar toolbar button:backdrop:selected, .thunar toolbar button:backdrop:active, .thunar toolbar button:backdrop:checked {
border-radius: 23px;
.thunar toolbar button:selected:backdrop, .thunar toolbar button:active:backdrop, .thunar toolbar button:checked:backdrop {
border-radius: 1em;
color: rgba(191, 195, 205, 0.4);
background: rgba(255, 106, 0, 0.6);
box-shadow: 0px 0px 0px rgba(255, 106, 0, 0.98); }
Expand All @@ -6012,7 +6012,7 @@ window.thunar toolbar#location-toolbar > toolitem > widget > widget.linked.path-
window.thunar toolbar#location-toolbar > toolitem > widget > widget.linked.path-bar > button.toggle.path-bar-button:hover {
color: #ff6a00; }
window.thunar toolbar#location-toolbar > toolitem > widget > widget.linked.path-bar > button.toggle.path-bar-button:checked {
border-radius: 23px;
border-radius: 1em;
background: linear-gradient(to right, #ff3300, #ffa100);
box-shadow: 0px 0px 5px rgba(255, 106, 0, 0.98);
color: white; }
Expand All @@ -6035,7 +6035,7 @@ window.thunar paned > scrolledwindow treeview.view {
border-radius: 0;
box-shadow: none; }
window.thunar paned > scrolledwindow treeview.view:selected, window.thunar paned > scrolledwindow treeview.view:active, window.thunar paned > scrolledwindow treeview.view:checked {
border-radius: 23px;
border-radius: 1em;
background: linear-gradient(to right, #ff3300, #ffa100);
box-shadow: 0px 0px 5px rgba(255, 106, 0, 0.98);
color: white;
Expand Down Expand Up @@ -6730,12 +6730,12 @@ ConversationListView {
color: inherit;
background: transparent; }
.nemo-window .sidebar button:selected, .nemo-window .sidebar button:active, .nemo-window .sidebar button:checked, .nemo-window statusbar button:selected, .nemo-window statusbar button:active, .nemo-window statusbar button:checked, .nemo-window box.toolbar button:selected, .nemo-window box.toolbar button:active, .nemo-window box.toolbar button:checked, .nemo-window toolbar.primary-toolbar button:selected, .nemo-window toolbar.primary-toolbar button:active, .nemo-window toolbar.primary-toolbar button:checked {
border-radius: 23px;
border-radius: 1em;
background: linear-gradient(to right, #ff3300, #ffa100);
box-shadow: 0px 0px 5px rgba(255, 106, 0, 0.98);
color: white; }
.nemo-window .sidebar button:selected:backdrop, .nemo-window .sidebar button:active:backdrop, .nemo-window .sidebar button:checked:backdrop, .nemo-window statusbar button:selected:backdrop, .nemo-window statusbar button:active:backdrop, .nemo-window statusbar button:checked:backdrop, .nemo-window box.toolbar button:selected:backdrop, .nemo-window box.toolbar button:active:backdrop, .nemo-window box.toolbar button:checked:backdrop, .nemo-window toolbar.primary-toolbar button:selected:backdrop, .nemo-window toolbar.primary-toolbar button:active:backdrop, .nemo-window toolbar.primary-toolbar button:checked:backdrop {
border-radius: 23px;
border-radius: 1em;
color: rgba(191, 195, 205, 0.4);
background: rgba(255, 106, 0, 0.6);
box-shadow: 0px 0px 0px rgba(255, 106, 0, 0.98); }
Expand Down Expand Up @@ -6849,7 +6849,7 @@ ConversationListView {
.caja-pathbar button:hover {
color: #ff6a00; }
.caja-pathbar button:checked {
border-radius: 23px;
border-radius: 1em;
background: linear-gradient(to right, #ff3300, #ffa100);
box-shadow: 0px 0px 5px rgba(255, 106, 0, 0.98);
color: white; }
Expand Down
4 changes: 2 additions & 2 deletions gtk-3.0/widgets/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,13 @@ button {
&.text-button {
padding-left: 3em; // 16px;
padding-right: 3em; // 16px;
border-radius: 0.2em; //border-radius: 2px;
border-radius: 0.4em; //border-radius: 2px;
}

&.text-button.image-button {
padding-left: 8px;
padding-right: 8px;
border-radius: 0.2em; //border-radius: 2px;
border-radius: 0.4em; //border-radius: 2px;
label {
padding-left: 8px;
padding-right: 8px;
Expand Down
4 changes: 2 additions & 2 deletions gtk-3.0/widgets/_header-bars.scss
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ headerbar {
}
}
%linked-header {
border-radius: 23px;
border-radius: 1em; // 23px;
border-right-style: none;
border: none;
box-shadow: none;
Expand Down Expand Up @@ -167,7 +167,7 @@ headerbar {
}
.linked > button:checked{
@extend %linked-header;
border-radius: 23px;
border-radius: 1em; // 23px;
background: linear-gradient(to right, $theme-gradient-start, $theme-gradient-end);
box-shadow: 0px 0px 5px transparentize(#c50ed2, 0.02);
color: rgb(255, 250, 250);
Expand Down
4 changes: 2 additions & 2 deletions gtk-4.0/_drawing.scss
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
//background: linear-gradient(to right, transparentize($theme-gradient-start, 0.4), transparentize($theme-gradient-end, 0.4));
border:none;
} @else if $t==active-header {
border-radius: 23px;
border-radius: 1em; // 23px;
background: linear-gradient(to right, $theme-gradient-start, $theme-gradient-end);
box-shadow: 0px 0px 5px transparentize($selected_bg_color, 0.02);
color: rgb(255, 255, 255);
Expand All @@ -268,7 +268,7 @@
text-shadow: none;
box-shadow: none;
} @else if $t==backdrop-active-header {
border-radius: 23px;
border-radius: 1em; // 23px;
color: if($tc==$text_color, transparentize($tc, 0.6), $tc);
background: $backdrop_selected_bg_color;
box-shadow: 0px 0px 0px transparentize($selected_bg_color, 0.02);
Expand Down
Loading

0 comments on commit a9dbd2b

Please sign in to comment.