-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgtk-menu.css
131 lines (92 loc) · 2.88 KB
/
gtk-menu.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
/* Menu borders and colors */
.menu, menu {
padding: 2px;
border-top: 1px solid @bg_color;
border-bottom: 1px solid @borders;
border-left: 1px solid @bg_color;
border-right: 1px solid @borders;
box-shadow: inset 1px 1px @light_shadow, inset -1px -1px @dark_shadow;
background-color: @theme_bg_color;
color: @fg_color; }
combobox menu, combox .menu {
border: 1px solid @borders;
box-shadow: none;
background-color: @base_color;
padding: 0px; }
/* Force initial font instead of repsecting parent widget font */
.context-menu, popover.touch-selection,
.csd popover.touch-selection,
popover.background.touch-selection,
.csd popover.background.touch-selection {
font: initial; }
/* Adjust padding so selected itmes fit inside menu borders */
menu menuitem {
margin: 0;
margin-left: 2px;
margin-right: 2px;
padding: 4px; }
menu menuitem:first-child {
margin-top: 2px }
menu menuitem:last-child {
margin-bottom: 2px }
combobox menuitem,
combobox menuitem {
margin: 1px; }
/* Menu item states */
menuitem:active,
menuitem:hover {
background-color: @theme_selected_bg_color;
color: @theme_selected_fg_color; }
menuitem:disabled {
color: @disabled_fg_color;
text-shadow: 1px 1px @light_shadow; }
toolbar menubar {
-GtkToolbar-button-relief: normal; }
/* Style menubar to match toolbars */
menubar, .menubar {
-GtkWidget-window-dragging: true;
margin: 0;
padding: 1px;
padding-top: 0;
margin-bottom: 0;
background-color: @toolbar_bg_color;
border-top: 0px solid;
border-bottom: 0;
border-right: 0;
border-left: 0;
background-color: @menubar_bg_color;
color: @menubar_fg_color; }
menubar > menuitem, .menubar > menuitem {
margin: 0px;
padding: 4px 6px;
border: none;
color: @menubar_fg_color;
background-color: transparent; }
/* Make selected menubar items appear as toolbar buttons */
menubar > menuitem:hover, .menubar > menuitem:hover {
color: @menubar_fg_color;
border-color: @menubar_bg_color;
background-color: @button_bg_color;
background-image: none;
box-shadow: inset 1px 1px @dark_shadow, inset -1px -1px @light_shadow; }
/* Menubar item states */
menubar > menuitem:disabled, .menubar > menuitem:disabled {
text-shadow: 1px 1px @light_shadow;
color: @theme_disabled_fg_color;
background-color: transparent; }
menuitem accelerator {
color: alpha(currentColor, 0.55); }
menuitem accelerator:hover {
color: alpha(@theme_selected_fg_color, 0.8); }
menuitem accelerator:disabled {
color: @theme_disabled_fg_color; }
/* Hamburger menus */
popover, .csd popover {
border-radius: 0;
padding: 3px;
box-shadow: none;
border: 1px solid @borders;
border-left: 1px solid @light_shadow;
border-top: 1px solid @light_shadow;
box-shadow: -1px -1px @bg_color, -1px -1px @dark_shadow inset;
background-color: @bg_color; }