[libadwaita/wip/exalm/menu-split-buttons: 12/19] stylesheet: Make GtkWindowControls buttons filled
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/menu-split-buttons: 12/19] stylesheet: Make GtkWindowControls buttons filled
- Date: Fri, 10 Sep 2021 14:25:45 +0000 (UTC)
commit 3504fcafee84e20ff73139c2cc066dfb948b9b54
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Sun Jul 4 19:13:34 2021 +0500
stylesheet: Make GtkWindowControls buttons filled
Since header bar buttons are flat now, invert it and don't make window
controls flat anymore.
src/stylesheet/widgets/_header-bar.scss | 38 +++++++++++++++++++--------------
1 file changed, 22 insertions(+), 16 deletions(-)
---
diff --git a/src/stylesheet/widgets/_header-bar.scss b/src/stylesheet/widgets/_header-bar.scss
index cf6a7c6b..81eeea36 100644
--- a/src/stylesheet/widgets/_header-bar.scss
+++ b/src/stylesheet/widgets/_header-bar.scss
@@ -44,15 +44,7 @@ headerbar {
}
windowcontrols {
- button,
- menubutton {
- min-height: 28px;
- min-width: 28px;
- margin: 0;
- padding: 0;
- }
-
- menubutton button {
+ button {
min-height: 22px;
min-width: 22px;
margin: 0;
@@ -97,16 +89,30 @@ headerbar {
*********************/
windowcontrols {
- border-spacing: 6px;
+ border-spacing: 3px;
button {
- @extend %button_basic_flat;
+ min-width: 24px;
+ padding: 5px;
+ margin: 0;
+ box-shadow: none;
+
+ > image {
+ background-color: $button_color;
+ border-radius: 100%;
+ padding: 2px;
+ transition: $button_transition;
+ @if $contrast == 'high' {
+ box-shadow: inset 0 0 0 1px $borders_color;
+ }
+ }
+
+ &, &:hover, &:active {
+ background: none;
+ }
- border-radius: 9999px;
- padding: 7px;
- margin: 0 2px;
- min-width: 0;
- min-height: 0;
+ &:hover > image { background-color: $button_hover_color; }
+ &:hover:active > image { background-color: $button_active_color; }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]