Debian Codegraph @

src/gtk4/widgets/_menus.scss

raw
1 @charset "UTF-8";
2
3 /*********
4 * Menus *
5 *********/
6
7 accelerator {
8 opacity: 0.5;
9 margin-left: 2.5mm;
10 }
11
12 menubar,
13 .menubar {
14 padding: 0px;
15 box-shadow: none;
16 border-style: none;
17 background-color: gtk("@theme_header_background");
18
19 &:backdrop {
20 background-color: gtk("@theme_header_background_backdrop");
21 }
22
23 > item {
24 min-height: 4.5mm;
25 padding: 1.25mm 2.5mm;
26 @if $new-highlight {
27 border-bottom: 3px solid transparent;
28 }
29
30 &:hover {
31 //Seems like it :hover even with keyboard focus
32 @if $new-highlight {
33 background-color: gtkalpha(
34 gtk("@theme_button_decoration_focus"),
35 0.3
36 );
37 color: gtk("@theme_button_foreground_active");
38 border-bottom: 3px
39 solid
40 gtk("@theme_button_decoration_focus");
41 } @else {
42 background-color: gtk(
43 "@theme_button_decoration_focus"
44 );
45 color: gtk("@theme_button_foreground_active");
46 }
47 }
48
49 &:disabled {
50 color: gtk("@insensitive_fg_color");
51 box-shadow: none;
52
53 &:backdrop {
54 background-color: gtk("@theme_unfocused_bg_color");
55 color: gtk("@insensitive_unfocused_fg_color");
56 }
57 }
58
59 &:backdrop {
60 background-color: gtk("@theme_unfocused_bg_color");
61 color: gtk("@theme_unfocused_fg_color");
62 }
63 }
64 }
65
66 popover, popover.background {
67 background-color: transparent;
68
69 contents, > arrow {
70 padding: 4px; // Use px to avoid overflow when using fractional scaling
71 background-color: gtkmix(gtk("@theme_bg_color"), gtk("@theme_base_color"), 0.3);
72 border: 1px solid gtk("@borders");
73 border-radius: $r;
74 }
75
76 // axes borders in a composited env
77 separator {
78 color: gtk("@borders");
79 margin: 0.75mm 0;
80 }
81
82 modelbutton {
83 text-shadow: none;
84 min-height: 4.5mm;
85 min-width: 10mm;
86 padding: 0.75mm 2mm;
87 border: 1px solid transparent;
88
89 @if $new-highlight {
90 border: 1px solid transparent;
91 margin: 1mm;
92 }
93
94 accelerator {
95 color: gtkalpha(currentColor, 0.55);
96 }
97 check,
98 radio {
99 &:dir(ltr) {
100 margin-right: 1.5mm;
101 }
102 &:dir(rtl) {
103 margin-left: 1.5mm;
104 }
105 }
106
107 arrow.left {
108 -gtk-icon-source: -gtk-icontheme($arrow_left);
109 }
110
111 arrow.right {
112 -gtk-icon-source: -gtk-icontheme($arrow_right);
113 }
114
115 &:hover {
116 background-color: gtkalpha(gtk("@theme_selected_bg_color"), 0.3);
117 border: 1px solid gtk("@theme_button_decoration_focus"); // Use px to avoid strange thickness when fractional scaling is used
118 border-radius: $r;
119 }
120
121 &:disabled {
122 color: gtk("@insensitive_fg_color");
123
124 &:backdrop {
125 color: gtk("@insensitive_unfocused_fg_color");
126 }
127 }
128
129 &:backdrop,
130 &:backdrop:hover {
131 color: gtk("@theme_unfocused_fg_color");
132 background-color: gtk("@theme_unfocused_bg_color");
133 }
134 }
135 }
136
137 GtkVolumeButton.button {
138 padding: 1.25mm;
139 }