Skip to content

Commit

Permalink
Gtk-3.20&3.22&4.0: [Budgie-desktop] Employ 'NavigationBar' styling fo…
Browse files Browse the repository at this point in the history
…r power-strip widget

Power-strip contains very core and powerful tools, so let's switch
to NavigationBar styling...
  • Loading branch information
tista500 committed Jul 27, 2017
1 parent 803c8b0 commit 1f35520
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 96 deletions.
46 changes: 14 additions & 32 deletions gtk/sass/3.20/_3rd-party.scss
Original file line number Diff line number Diff line change
Expand Up @@ -613,42 +613,24 @@ window.budgie-popover:not(.csd) {
}

.powerstrip {
background-color: $secondary_dark_color;
background-image: linear-gradient(to top,
mix($dark_color, $secondary_dark_color, 50%)
calc(50% - 4px),
mix(mix($dark_color, $secondary_dark_color, 50%),
$borders_color,
40%)
calc(50% - 1px),
$borders_color calc(50% - 1px),
$borders_color 50%,
transparent 50%);
background-color: $panel_bg_color;
box-shadow: none;

// = stackswitcher width in raven-header
$strip_width: rem(112px * 2, $sw: 1.0);

button.flat.image-button {
@extend %button_normal;
margin: rem(2px) rem(8px);
padding: rem(5.3px);
color: $secondary_selected_fg_color;
background-color: $suggested_color;
&:hover {
@extend %button_hover;
color: $selected_fg_color;
}
&:active {
@extend %button_active;
color: $selected_fg_color;
background-color: $selected_bg_color;
}
&:checked {
@extend %button_checked;
color: $inverted_fg_color;
background-color: mix($selected_fg_color, $suggested_color, 20%);
}
min-width: $strip_width / 3;
margin: -2px -8px;
padding: rem(6.7px, $sw: 1.0) 0;
color: $inverted_secondary_fg_color;
&:hover,
&:active,
&:checked { color: $inverted_fg_color; }
&:disabled {
@include button(flat-insensitive, $secondary_dark_color,
$insensitive_inverted_fg_color);
@include button(flat-insensitive,
transparent,
$insensitive_inverted_fg_color);
}
}
}
Expand Down
46 changes: 14 additions & 32 deletions gtk/sass/3.22/_3rd-party.scss
Original file line number Diff line number Diff line change
Expand Up @@ -623,42 +623,24 @@ window.budgie-popover:not(.csd) {
}

.powerstrip {
background-color: $secondary_dark_color;
background-image: linear-gradient(to top,
mix($dark_color, $secondary_dark_color, 50%)
calc(50% - 4px),
mix(mix($dark_color, $secondary_dark_color, 50%),
$borders_color,
40%)
calc(50% - 1px),
$borders_color calc(50% - 1px),
$borders_color 50%,
transparent 50%);
background-color: $panel_bg_color;
box-shadow: none;

// = stackswitcher width in raven-header
$strip_width: rem(112px * 2, $sw: 1.0);

button.flat.image-button {
@extend %button_normal;
margin: rem(2px) rem(8px);
padding: rem(5.3px);
color: $secondary_selected_fg_color;
background-color: $suggested_color;
&:hover {
@extend %button_hover;
color: $selected_fg_color;
}
&:active {
@extend %button_active;
color: $selected_fg_color;
background-color: $selected_bg_color;
}
&:checked {
@extend %button_checked;
color: $inverted_fg_color;
background-color: mix($selected_fg_color, $suggested_color, 20%);
}
min-width: $strip_width / 3;
margin: -2px -8px;
padding: rem(6.7px, $sw: 1.0) 0;
color: $inverted_secondary_fg_color;
&:hover,
&:active,
&:checked { color: $inverted_fg_color; }
&:disabled {
@include button(flat-insensitive, $secondary_dark_color,
$insensitive_inverted_fg_color);
@include button(flat-insensitive,
transparent,
$insensitive_inverted_fg_color);
}
}
}
Expand Down
46 changes: 14 additions & 32 deletions gtk/sass/4.0/_3rd-party.scss
Original file line number Diff line number Diff line change
Expand Up @@ -613,42 +613,24 @@ window.budgie-popover:not(.csd) {
}

.powerstrip {
background-color: $secondary_dark_color;
background-image: linear-gradient(to top,
mix($dark_color, $secondary_dark_color, 50%)
calc(50% - 4px),
mix(mix($dark_color, $secondary_dark_color, 50%),
$borders_color,
40%)
calc(50% - 1px),
$borders_color calc(50% - 1px),
$borders_color 50%,
transparent 50%);
background-color: $panel_bg_color;
box-shadow: none;

// = stackswitcher width in raven-header
$strip_width: rem(112px * 2, $sw: 1.0);

button.flat.image-button {
@extend %button_normal;
margin: rem(2px) rem(8px);
padding: rem(5.3px);
color: $secondary_selected_fg_color;
background-color: $suggested_color;
&:hover {
@extend %button_hover;
color: $selected_fg_color;
}
&:active {
@extend %button_active;
color: $selected_fg_color;
background-color: $selected_bg_color;
}
&:checked {
@extend %button_checked;
color: $inverted_fg_color;
background-color: mix($selected_fg_color, $suggested_color, 20%);
}
min-width: $strip_width / 3;
margin: -2px -8px;
padding: rem(6.7px, $sw: 1.0) 0;
color: $inverted_secondary_fg_color;
&:hover,
&:active,
&:checked { color: $inverted_fg_color; }
&:disabled {
@include button(flat-insensitive, $secondary_dark_color,
$insensitive_inverted_fg_color);
@include button(flat-insensitive,
transparent,
$insensitive_inverted_fg_color);
}
}
}
Expand Down

0 comments on commit 1f35520

Please sign in to comment.