| 1 |
style "menubar" |
| 2 |
{ |
| 3 |
#bg[SELECTED] = @selected_fg_color |
| 4 |
|
| 5 |
fg[NORMAL] = @fg_color |
| 6 |
fg[SELECTED] = @selected_fg_color |
| 7 |
|
| 8 |
text[PRELIGHT] = @fg_color |
| 9 |
|
| 10 |
xthickness = 0 |
| 11 |
ythickness = 0 |
| 12 |
|
| 13 |
engine "pixmap" |
| 14 |
{ |
| 15 |
image |
| 16 |
{ |
| 17 |
function = BOX |
| 18 |
recolorable = TRUE |
| 19 |
state = PRELIGHT |
| 20 |
file = "../assets/menubar-button.png" |
| 21 |
|
| 22 |
border = { 4, 4, 4, 4 } |
| 23 |
stretch = TRUE |
| 24 |
} |
| 25 |
} |
| 26 |
} |
| 27 |
|
| 28 |
style "menu" |
| 29 |
{ |
| 30 |
xthickness = 0 |
| 31 |
ythickness = 0 |
| 32 |
|
| 33 |
#GtkMenuItem::arrow-scaling = 0.4 |
| 34 |
|
| 35 |
engine "pixmap" { # For menus that use horizontal lines rather than gtkseparator |
| 36 |
|
| 37 |
image { |
| 38 |
function = HLINE |
| 39 |
file = "../assets/line-h.png" |
| 40 |
border = { 1, 1, 1, 1 } |
| 41 |
stretch = TRUE |
| 42 |
} |
| 43 |
} |
| 44 |
} |
| 45 |
|
| 46 |
style "menu_item" |
| 47 |
{ |
| 48 |
xthickness = 2 |
| 49 |
ythickness = 4 |
| 50 |
|
| 51 |
bg[PRELIGHT] = @button_active |
| 52 |
fg[PRELIGHT] = @selected_fg_color |
| 53 |
text[PRELIGHT] = @selected_fg_color |
| 54 |
|
| 55 |
GtkMenuItem::toggle-spacing = 10 |
| 56 |
GtkMenuItem::arrow-spacing = 10 |
| 57 |
|
| 58 |
engine "pixmap" |
| 59 |
{ |
| 60 |
|
| 61 |
# Check Buttons |
| 62 |
|
| 63 |
image |
| 64 |
{ |
| 65 |
function = CHECK |
| 66 |
recolorable = TRUE |
| 67 |
state = NORMAL |
| 68 |
shadow = OUT |
| 69 |
overlay_file = "../assets/check-unchecked.png" |
| 70 |
overlay_stretch = TRUE #needed for LibreOffice |
| 71 |
} |
| 72 |
image |
| 73 |
{ |
| 74 |
function = CHECK |
| 75 |
recolorable = TRUE |
| 76 |
state = PRELIGHT |
| 77 |
shadow = OUT |
| 78 |
overlay_file = "../assets/check-unchecked.png" |
| 79 |
overlay_stretch = TRUE |
| 80 |
} |
| 81 |
image |
| 82 |
{ |
| 83 |
function = CHECK |
| 84 |
recolorable = TRUE |
| 85 |
state = ACTIVE |
| 86 |
shadow = OUT |
| 87 |
overlay_file = "../assets/check-checked-active.png" |
| 88 |
overlay_stretch = TRUE |
| 89 |
} |
| 90 |
image |
| 91 |
{ |
| 92 |
function = CHECK |
| 93 |
recolorable = TRUE |
| 94 |
state = INSENSITIVE |
| 95 |
shadow = OUT |
| 96 |
overlay_file = "../assets/check-unchecked-insensitive.png" |
| 97 |
overlay_stretch = TRUE |
| 98 |
} |
| 99 |
image |
| 100 |
{ |
| 101 |
function = CHECK |
| 102 |
recolorable = TRUE |
| 103 |
state = NORMAL |
| 104 |
shadow = IN |
| 105 |
overlay_file = "../assets/check-checked-active.png" |
| 106 |
overlay_stretch = TRUE |
| 107 |
} |
| 108 |
image |
| 109 |
{ |
| 110 |
function = CHECK |
| 111 |
recolorable = TRUE |
| 112 |
state = PRELIGHT |
| 113 |
shadow = IN |
| 114 |
overlay_file = "../assets/check-checked-active.png" |
| 115 |
overlay_stretch = TRUE |
| 116 |
} |
| 117 |
image |
| 118 |
{ |
| 119 |
function = CHECK |
| 120 |
recolorable = TRUE |
| 121 |
state = ACTIVE |
| 122 |
shadow = IN |
| 123 |
overlay_file = "../assets/check-checked-active.png" |
| 124 |
overlay_stretch = TRUE |
| 125 |
} |
| 126 |
image |
| 127 |
{ |
| 128 |
function = CHECK |
| 129 |
recolorable = TRUE |
| 130 |
state = INSENSITIVE |
| 131 |
shadow = IN |
| 132 |
overlay_file = "../assets/check-checked-insensitive.png" |
| 133 |
overlay_stretch = TRUE |
| 134 |
} |
| 135 |
|
| 136 |
# Radio Buttons |
| 137 |
|
| 138 |
image |
| 139 |
{ |
| 140 |
function = OPTION |
| 141 |
state = NORMAL |
| 142 |
shadow = OUT |
| 143 |
overlay_file = "../assets/radio-unchecked.png" |
| 144 |
overlay_stretch = TRUE |
| 145 |
} |
| 146 |
image |
| 147 |
{ |
| 148 |
function = OPTION |
| 149 |
state = PRELIGHT |
| 150 |
shadow = OUT |
| 151 |
overlay_file = "../assets/radio-unchecked.png" |
| 152 |
overlay_stretch = TRUE |
| 153 |
} |
| 154 |
image |
| 155 |
{ |
| 156 |
function = OPTION |
| 157 |
state = ACTIVE |
| 158 |
shadow = OUT |
| 159 |
overlay_file = "../assets/radio-checked-active.png" |
| 160 |
overlay_stretch = TRUE |
| 161 |
} |
| 162 |
image |
| 163 |
{ |
| 164 |
function = OPTION |
| 165 |
state = INSENSITIVE |
| 166 |
shadow = OUT |
| 167 |
overlay_file = "../assets/radio-unchecked-insensitive.png" |
| 168 |
overlay_stretch = FALSE |
| 169 |
} |
| 170 |
image |
| 171 |
{ |
| 172 |
function = OPTION |
| 173 |
state = NORMAL |
| 174 |
shadow = IN |
| 175 |
overlay_file = "../assets/radio-checked-active.png" |
| 176 |
overlay_stretch = TRUE |
| 177 |
} |
| 178 |
image |
| 179 |
{ |
| 180 |
function = OPTION |
| 181 |
state = PRELIGHT |
| 182 |
shadow = IN |
| 183 |
overlay_file = "../assets/radio-checked-active.png" |
| 184 |
overlay_stretch = TRUE |
| 185 |
} |
| 186 |
image |
| 187 |
{ |
| 188 |
function = OPTION |
| 189 |
state = ACTIVE |
| 190 |
shadow = IN |
| 191 |
overlay_file = "../assets/radio-checked-active.png" |
| 192 |
overlay_stretch = TRUE |
| 193 |
} |
| 194 |
image |
| 195 |
{ |
| 196 |
function = OPTION |
| 197 |
state = INSENSITIVE |
| 198 |
shadow = IN |
| 199 |
overlay_file = "../assets/radio-checked-insensitive.png" |
| 200 |
overlay_stretch = TRUE |
| 201 |
} |
| 202 |
image |
| 203 |
{ |
| 204 |
function = SHADOW # This fixes boxy Qt menu items |
| 205 |
file = "../assets/null.png" |
| 206 |
border = { 10, 10, 10, 10 } |
| 207 |
stretch = TRUE |
| 208 |
} |
| 209 |
|
| 210 |
# Arrow Buttons |
| 211 |
|
| 212 |
image |
| 213 |
{ |
| 214 |
function = ARROW |
| 215 |
state = NORMAL |
| 216 |
overlay_file = "../assets/menu-arrow.png" |
| 217 |
overlay_border = { 0, 0, 0, 0 } |
| 218 |
overlay_stretch = FALSE |
| 219 |
arrow_direction = RIGHT |
| 220 |
} |
| 221 |
image |
| 222 |
{ |
| 223 |
function = ARROW |
| 224 |
state = PRELIGHT |
| 225 |
overlay_file = "../assets/menu-arrow-selected.png" |
| 226 |
overlay_border = { 0, 0, 0, 0 } |
| 227 |
overlay_stretch = FALSE |
| 228 |
arrow_direction = RIGHT |
| 229 |
} |
| 230 |
image |
| 231 |
{ |
| 232 |
function = ARROW |
| 233 |
state = INSENSITIVE |
| 234 |
overlay_file = "../assets/menu-arrow-insensitive.png" |
| 235 |
overlay_border = { 0, 0, 0, 0 } |
| 236 |
overlay_stretch = FALSE |
| 237 |
arrow_direction = RIGHT |
| 238 |
} |
| 239 |
} |
| 240 |
} |
| 241 |
|
| 242 |
style "menubar_item" |
| 243 |
{ |
| 244 |
xthickness = 2 |
| 245 |
ythickness = 2 |
| 246 |
bg[PRELIGHT] = @selected_fg_color |
| 247 |
fg[PRELIGHT] = @selected_fg_color |
| 248 |
} |
| 249 |
|
| 250 |
style "menu_framed_box" #this is not needed in Gnome |
| 251 |
{ |
| 252 |
engine "pixmap" |
| 253 |
{ |
| 254 |
image |
| 255 |
{ |
| 256 |
function = BOX |
| 257 |
detail = "menu" |
| 258 |
file = "../assets/frame.png" |
| 259 |
border = { 3, 3, 3, 3 } |
| 260 |
stretch = TRUE |
| 261 |
} |
| 262 |
} |
| 263 |
} |
| 264 |
|
| 265 |
style "separator_menu_item" |
| 266 |
{ |
| 267 |
engine "pixmap" |
| 268 |
{ |
| 269 |
image |
| 270 |
{ |
| 271 |
function = BOX |
| 272 |
file = "../assets/line-h.png" |
| 273 |
border = { 0, 0, 0, 0 } |
| 274 |
stretch = TRUE |
| 275 |
} |
| 276 |
} |
| 277 |
} |