Warning, /plasma/breeze-gtk/src/gtk2/widgets/menu is written in an unsupported language. File is not indexed.
0001 style "menubar" 0002 { 0003 #bg[SELECTED] = @selected_fg_color 0004 0005 fg[NORMAL] = @fg_color 0006 fg[SELECTED] = @selected_fg_color 0007 0008 text[PRELIGHT] = @fg_color 0009 0010 xthickness = 0 0011 ythickness = 0 0012 0013 engine "pixmap" 0014 { 0015 image 0016 { 0017 function = BOX 0018 recolorable = TRUE 0019 state = PRELIGHT 0020 file = "../assets/menubar-button.png" 0021 0022 border = { 4, 4, 4, 4 } 0023 stretch = TRUE 0024 } 0025 } 0026 } 0027 0028 style "menu" 0029 { 0030 xthickness = 0 0031 ythickness = 0 0032 0033 #GtkMenuItem::arrow-scaling = 0.4 0034 0035 engine "pixmap" { # For menus that use horizontal lines rather than gtkseparator 0036 0037 image { 0038 function = HLINE 0039 file = "../assets/line-h.png" 0040 border = { 1, 1, 1, 1 } 0041 stretch = TRUE 0042 } 0043 } 0044 } 0045 0046 style "menu_item" 0047 { 0048 xthickness = 2 0049 ythickness = 4 0050 0051 bg[PRELIGHT] = @button_active 0052 fg[PRELIGHT] = @selected_fg_color 0053 text[PRELIGHT] = @selected_fg_color 0054 0055 GtkMenuItem::toggle-spacing = 10 0056 GtkMenuItem::arrow-spacing = 10 0057 0058 engine "pixmap" 0059 { 0060 0061 # Check Buttons 0062 0063 image 0064 { 0065 function = CHECK 0066 recolorable = TRUE 0067 state = NORMAL 0068 shadow = OUT 0069 overlay_file = "../assets/check-unchecked.png" 0070 overlay_stretch = TRUE #needed for LibreOffice 0071 } 0072 image 0073 { 0074 function = CHECK 0075 recolorable = TRUE 0076 state = PRELIGHT 0077 shadow = OUT 0078 overlay_file = "../assets/check-unchecked.png" 0079 overlay_stretch = TRUE 0080 } 0081 image 0082 { 0083 function = CHECK 0084 recolorable = TRUE 0085 state = ACTIVE 0086 shadow = OUT 0087 overlay_file = "../assets/check-checked-active.png" 0088 overlay_stretch = TRUE 0089 } 0090 image 0091 { 0092 function = CHECK 0093 recolorable = TRUE 0094 state = INSENSITIVE 0095 shadow = OUT 0096 overlay_file = "../assets/check-unchecked-insensitive.png" 0097 overlay_stretch = TRUE 0098 } 0099 image 0100 { 0101 function = CHECK 0102 recolorable = TRUE 0103 state = NORMAL 0104 shadow = IN 0105 overlay_file = "../assets/check-checked-active.png" 0106 overlay_stretch = TRUE 0107 } 0108 image 0109 { 0110 function = CHECK 0111 recolorable = TRUE 0112 state = PRELIGHT 0113 shadow = IN 0114 overlay_file = "../assets/check-checked-active.png" 0115 overlay_stretch = TRUE 0116 } 0117 image 0118 { 0119 function = CHECK 0120 recolorable = TRUE 0121 state = ACTIVE 0122 shadow = IN 0123 overlay_file = "../assets/check-checked-active.png" 0124 overlay_stretch = TRUE 0125 } 0126 image 0127 { 0128 function = CHECK 0129 recolorable = TRUE 0130 state = INSENSITIVE 0131 shadow = IN 0132 overlay_file = "../assets/check-checked-insensitive.png" 0133 overlay_stretch = TRUE 0134 } 0135 0136 # Radio Buttons 0137 0138 image 0139 { 0140 function = OPTION 0141 state = NORMAL 0142 shadow = OUT 0143 overlay_file = "../assets/radio-unchecked.png" 0144 overlay_stretch = TRUE 0145 } 0146 image 0147 { 0148 function = OPTION 0149 state = PRELIGHT 0150 shadow = OUT 0151 overlay_file = "../assets/radio-unchecked.png" 0152 overlay_stretch = TRUE 0153 } 0154 image 0155 { 0156 function = OPTION 0157 state = ACTIVE 0158 shadow = OUT 0159 overlay_file = "../assets/radio-checked-active.png" 0160 overlay_stretch = TRUE 0161 } 0162 image 0163 { 0164 function = OPTION 0165 state = INSENSITIVE 0166 shadow = OUT 0167 overlay_file = "../assets/radio-unchecked-insensitive.png" 0168 overlay_stretch = FALSE 0169 } 0170 image 0171 { 0172 function = OPTION 0173 state = NORMAL 0174 shadow = IN 0175 overlay_file = "../assets/radio-checked-active.png" 0176 overlay_stretch = TRUE 0177 } 0178 image 0179 { 0180 function = OPTION 0181 state = PRELIGHT 0182 shadow = IN 0183 overlay_file = "../assets/radio-checked-active.png" 0184 overlay_stretch = TRUE 0185 } 0186 image 0187 { 0188 function = OPTION 0189 state = ACTIVE 0190 shadow = IN 0191 overlay_file = "../assets/radio-checked-active.png" 0192 overlay_stretch = TRUE 0193 } 0194 image 0195 { 0196 function = OPTION 0197 state = INSENSITIVE 0198 shadow = IN 0199 overlay_file = "../assets/radio-checked-insensitive.png" 0200 overlay_stretch = TRUE 0201 } 0202 image 0203 { 0204 function = SHADOW # This fixes boxy Qt menu items 0205 file = "../assets/null.png" 0206 border = { 10, 10, 10, 10 } 0207 stretch = TRUE 0208 } 0209 0210 # Arrow Buttons 0211 0212 image 0213 { 0214 function = ARROW 0215 state = NORMAL 0216 overlay_file = "../assets/menu-arrow.png" 0217 overlay_border = { 0, 0, 0, 0 } 0218 overlay_stretch = FALSE 0219 arrow_direction = RIGHT 0220 } 0221 image 0222 { 0223 function = ARROW 0224 state = PRELIGHT 0225 overlay_file = "../assets/menu-arrow-selected.png" 0226 overlay_border = { 0, 0, 0, 0 } 0227 overlay_stretch = FALSE 0228 arrow_direction = RIGHT 0229 } 0230 image 0231 { 0232 function = ARROW 0233 state = INSENSITIVE 0234 overlay_file = "../assets/menu-arrow-insensitive.png" 0235 overlay_border = { 0, 0, 0, 0 } 0236 overlay_stretch = FALSE 0237 arrow_direction = RIGHT 0238 } 0239 } 0240 } 0241 0242 style "menubar_item" 0243 { 0244 xthickness = 2 0245 ythickness = 2 0246 bg[PRELIGHT] = @selected_fg_color 0247 fg[PRELIGHT] = @selected_fg_color 0248 } 0249 0250 style "menu_framed_box" #this is not needed in Gnome 0251 { 0252 engine "pixmap" 0253 { 0254 image 0255 { 0256 function = BOX 0257 detail = "menu" 0258 file = "../assets/frame.png" 0259 border = { 3, 3, 3, 3 } 0260 stretch = TRUE 0261 } 0262 } 0263 } 0264 0265 style "separator_menu_item" 0266 { 0267 engine "pixmap" 0268 { 0269 image 0270 { 0271 function = BOX 0272 file = "../assets/line-h.png" 0273 border = { 0, 0, 0, 0 } 0274 stretch = TRUE 0275 } 0276 } 0277 }