Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
vinceliuice committed Feb 27, 2023
1 parent 7c17586 commit d1c4656
Show file tree
Hide file tree
Showing 6 changed files with 213 additions and 239 deletions.
4 changes: 2 additions & 2 deletions src/_sass/gtk/_common-3.0.scss
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ button {

separator { margin: 4px 1px; }

@at-root %flat_button, &.flat {
&.flat {
@include button(undecorated);
// to avoid adiacent buttons borders clashing when transitioning, the transition on the normal state is set
// to none, while it's added back in the hover state, so the button decoration will fade in on hover, but
Expand Down Expand Up @@ -3423,9 +3423,9 @@ placessidebar {
margin-top: 2px;
margin-bottom: 2px;
padding: 0;
@extend %flat_button;
border-radius: 100%;
-gtk-outline-radius: 100%;
@include button(undecorated);

&:not(:hover):not(:active) > image { opacity: 0.5 };
}
Expand Down
91 changes: 40 additions & 51 deletions src/_sass/gtk/apps/_budgie.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
&:checked, &:active { transition: $button_transition; }
}

%budgie_button {
%budgie_panel_button_flat {
color: $panel_fg;
background: none;

&:hover {
color: $selected_fg_color;
background-color: rgba(white, 0.05);
background-color: rgba(white, 0.15);
}

&:disabled {
Expand All @@ -24,48 +24,48 @@
}

&:active {
background-color: rgba(white, 0.15);
background-color: rgba(white, 0.3);
color: $selected_fg_color;
}

&:checked {
background-color: rgba(white, 0.08);
background-color: rgba(white, 0.2);
color: $selected_fg_color;
}

&:checked:disabled {
background-color: rgba(white, 0.05);
background-color: rgba(white, 0.1);
color: rgba($selected_fg_color, 0.65);
}
}

@at-root %budgie_button_flat, &.flat {
color: $panel_fg;
background: none;
%budgie_panel_button {
color: $panel_fg;
background: none;

&:hover {
color: $selected_fg_color;
background-color: rgba(white, 0.15);
}
&:hover {
color: $selected_fg_color;
background-color: rgba(white, 0.05);
}

&:disabled {
color: rgba($panel_fg, 0.5);
background: none;
}
&:disabled {
color: rgba($panel_fg, 0.5);
background: none;
}

&:active {
background-color: rgba(white, 0.3);
color: $selected_fg_color;
}
&:active {
background-color: rgba(white, 0.15);
color: $selected_fg_color;
}

&:checked {
background-color: rgba(white, 0.2);
color: $selected_fg_color;
}
&:checked {
background-color: rgba(white, 0.08);
color: $selected_fg_color;
}

&:checked:disabled {
background-color: rgba(white, 0.1);
color: rgba($selected_fg_color, 0.65);
}
&:checked:disabled {
background-color: rgba(white, 0.05);
color: rgba($selected_fg_color, 0.65);
}
}

Expand Down Expand Up @@ -412,7 +412,7 @@

// Menu Button
button.budgie-menu-launcher {
@extend %flat_button;
@include button(undecorated);
}
}

Expand Down Expand Up @@ -539,7 +539,7 @@ window.budgie-popover:not(.csd) {
padding: 0;
border-radius: 0;
border: none;
@extend %budgie_button;
@extend %budgie_panel_button;
}

&.horizontal button { padding: 0 4px; }
Expand Down Expand Up @@ -567,8 +567,8 @@ window.budgie-popover:not(.csd) {
#tasklist-button:not(.flat) {
padding: 0 4px;
@extend %underscores;
@extend %flat_button;
@extend %budgie_button;
@extend %budgie_panel_button;
@include button(undecorated);
box-shadow: none;
}

Expand All @@ -577,7 +577,7 @@ window.budgie-popover:not(.csd) {
// Icon Tasklist
button.flat.launcher {
padding: 0;
@extend %flat_button;
@include button(undecorated);

// for indicator colors
&:not(:checked) {
Expand Down Expand Up @@ -894,7 +894,7 @@ button.raven-trigger {
button.image-button {
padding: $cont_padding;
border: none;
@extend %budgie_button_flat;
@extend %budgie_panel_button_flat;
}
}

Expand Down Expand Up @@ -1055,27 +1055,20 @@ box.vertical > stack > box.vertical {
background-image: none;
border-radius: $bt_radius;

button {
@include button(header-normal);

&:hover { @include button(header-hover); }
&:active, &:checked { @include button(header-active); }
&:disabled { @include button(header-insensitive); }
}

button.image-button { // 'close'
button.image-button.close { // 'close'
@extend %circular_button;
}
background-clip: border-box;

.linked > button {
@extend %linked;
&:not(:hover):not(:active) {
@include button(undecorated);
}
}
}

.budgie-notification {
.notification-title { font-size: 120%; }

.notification-body {@extend .dim-label; }
.notification-body { @extend .dim-label; }
}

// On Screen Display in Budgie
Expand Down Expand Up @@ -1107,10 +1100,6 @@ box.vertical > stack > box.vertical {
box-shadow: 0 2px 5px 0 if($variant == 'light', rgba(black, 0.15), rgba(black, 0.12)),
0 4px 8px 0 if($variant == 'light', rgba(black, 0.15), rgba(black, 0.12)),
0 0 0 1px $borders_color;

button { @extend %budgie_button_transition; }

.linked > button { border-radius: $bt_radius; }
}

%budgie_dialog {
Expand Down
2 changes: 1 addition & 1 deletion src/_sass/gtk/apps/_mate.scss
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ PanelSeparator {

// 'hide' arrow buttons
PanelToplevel.mate-panel-menu-bar > grid.horizontal > button {
@extend %flat_button;
@include button(undecorated);
min-height: 4px;
min-width: 4px;
padding: 0;
Expand Down
Loading

0 comments on commit d1c4656

Please sign in to comment.