Warning, /plasma/breeze-gtk/src/gtk2/widgets/buttons is written in an unsupported language. File is not indexed.

0001 style "button"
0002 {
0003   xthickness  = 4
0004   ythickness  = 5
0005 
0006   engine "pixmap"
0007   {
0008     image
0009     {
0010       function      = BOX
0011       state         = NORMAL
0012       file          = "../assets/button.png"
0013       border        = {4, 4, 4, 4 }
0014       stretch       = TRUE
0015     }
0016     image
0017     {
0018       function      = BOX
0019       state         = PRELIGHT
0020       file          = "../assets/button-hover.png"
0021       border        = { 4, 4, 4, 4 }
0022       stretch       = TRUE
0023     }
0024     image
0025     {
0026       function      = BOX
0027       state         = ACTIVE
0028       file          = "../assets/button-active.png"
0029       border        = { 4, 4, 4, 4 }
0030       stretch       = TRUE
0031     }
0032     image
0033    {
0034      function       = BOX
0035      state          = INSENSITIVE
0036      file           = "../assets/button-insensitive.png"
0037      border         = { 4, 4, 4, 4 }
0038      stretch        = TRUE
0039     }
0040 
0041 
0042 
0043     # Arrows
0044 
0045     image
0046     {
0047       function              = ARROW
0048       state                   = NORMAL
0049       overlay_file          = "../assets/arrow-up.png"
0050       overlay_border        = { 0, 0, 0, 0 }
0051       overlay_stretch       = FALSE
0052       arrow_direction       = UP
0053     }
0054     image
0055     {
0056       function              = ARROW
0057       state                   = PRELIGHT
0058       overlay_file          = "../assets/arrow-up.png"
0059       overlay_border        = { 0, 0, 0, 0 }
0060       overlay_stretch       = FALSE
0061       arrow_direction       = UP
0062     }
0063     image
0064     {
0065       function              = ARROW
0066       state                   = ACTIVE
0067       overlay_file          = "../assets/arrow-up.png"
0068       overlay_border        = { 0, 0, 0, 0 }
0069       overlay_stretch       = FALSE
0070       arrow_direction       = UP
0071     }
0072     image
0073     {
0074       function              = ARROW
0075       state                   = INSENSITIVE
0076       overlay_file          = "../assets/arrow-up-insensitive.png"
0077       overlay_border        = { 0, 0, 0, 0 }
0078       overlay_stretch       = FALSE
0079       arrow_direction       = UP
0080     }
0081 
0082     image
0083     {
0084     function                = ARROW
0085       state                   = NORMAL
0086       overlay_file          = "../assets/arrow-down.png"
0087       overlay_border        = { 0, 0, 0, 0 }
0088       overlay_stretch       = FALSE
0089       arrow_direction       = DOWN
0090     }
0091     image
0092     {
0093       function              = ARROW
0094       state                   = PRELIGHT
0095       overlay_file          = "../assets/arrow-down.png"
0096       overlay_border        = { 0, 0, 0, 0 }
0097       overlay_stretch       = FALSE
0098       arrow_direction       = DOWN
0099     }
0100     image
0101     {
0102       function              = ARROW
0103       state                   = ACTIVE
0104       overlay_file          = "../assets/arrow-down.png"
0105       overlay_border        = { 0, 0, 0, 0 }
0106       overlay_stretch       = FALSE
0107       arrow_direction       = DOWN
0108     }
0109 
0110     image
0111     {
0112       function              = ARROW
0113       state                   = INSENSITIVE
0114       overlay_file          = "../assets/arrow-down-insensitive.png"
0115       overlay_border        = { 0, 0, 0, 0 }
0116       overlay_stretch       = FALSE
0117       arrow_direction       = DOWN
0118     }
0119 
0120     image
0121     {
0122       function              = ARROW
0123       state                   = NORMAL
0124       overlay_file          = "../assets/arrow-left.png"
0125       overlay_border        = { 0, 0, 0, 0 }
0126       overlay_stretch       = FALSE
0127       arrow_direction       = LEFT
0128     }
0129     image
0130     {
0131         function                = ARROW
0132         state                   = PRELIGHT
0133         overlay_file          = "../assets/arrow-left.png"
0134         overlay_border      = { 0, 0, 0, 0 }
0135         overlay_stretch     = FALSE
0136         arrow_direction     = LEFT
0137     }
0138     image
0139     {
0140         function                = ARROW
0141         state                   = ACTIVE
0142         overlay_file          = "../assets/arrow-left.png"
0143         overlay_border      = { 0, 0, 0, 0 }
0144         overlay_stretch     = FALSE
0145         arrow_direction     = LEFT
0146     }
0147     image
0148     {
0149         function                = ARROW
0150         state                   = INSENSITIVE
0151         overlay_file          = "../assets/arrow-left-insensitive.png"
0152         overlay_border      = { 0, 0, 0, 0 }
0153         overlay_stretch     = FALSE
0154         arrow_direction     = LEFT
0155     }
0156 
0157     image
0158     {
0159         function                = ARROW
0160         state                     = NORMAL
0161         overlay_file          = "../assets/arrow-right.png"
0162         overlay_border      = { 0, 0, 0, 0 }
0163         overlay_stretch     = FALSE
0164         arrow_direction     = RIGHT
0165     }
0166     image
0167     {
0168         function                = ARROW
0169         state                   = PRELIGHT
0170         overlay_file          = "../assets/arrow-right.png"
0171         overlay_border      = { 0, 0, 0, 0 }
0172         overlay_stretch     = FALSE
0173         arrow_direction     = RIGHT
0174     }
0175     image
0176     {
0177         function                = ARROW
0178         state                   = ACTIVE
0179         overlay_file          = "../assets/arrow-right.png"
0180         overlay_border      = { 0, 0, 0, 0 }
0181         overlay_stretch     = FALSE
0182         arrow_direction     = RIGHT
0183     }
0184     image
0185     {
0186         function                = ARROW
0187         state                   = INSENSITIVE
0188         overlay_file          = "../assets/arrow-right-insensitive.png"
0189         overlay_border      = { 0, 0, 0, 0 }
0190         overlay_stretch     = FALSE
0191         arrow_direction     = RIGHT
0192     }
0193 
0194 
0195 
0196 
0197     image
0198     {
0199       function            = TAB
0200       state                 = INSENSITIVE
0201       overlay_file        = "../assets/arrow-down-insensitive.png"
0202       overlay_stretch     = FALSE
0203     }
0204     image
0205     {
0206       function              = TAB
0207       state                   = NORMAL
0208       overlay_file          = "../assets/arrow-down.png"
0209       overlay_border        = { 0, 0, 0, 0 }
0210       overlay_stretch       = FALSE
0211     }
0212     image
0213     {
0214       function              = TAB
0215       state                   = PRELIGHT
0216       overlay_file          = "../assets/arrow-down.png"
0217       overlay_border        = { 0, 0, 0, 0 }
0218       overlay_stretch       = FALSE
0219     }
0220   }
0221 }
0222 
0223 style "togglebutton"
0224 {
0225   xthickness  = 4
0226   ythickness  = 5
0227 
0228   engine "pixmap"
0229   {
0230     image
0231     {
0232       function      = BOX
0233       state         = NORMAL
0234       file          = "../assets/togglebutton.png"
0235       border        = {4, 4, 4, 4 }
0236       stretch       = TRUE
0237     }
0238     image
0239     {
0240       function      = BOX
0241       state         = PRELIGHT
0242       file          = "../assets/togglebutton-hover.png"
0243       border        = { 4, 4, 4, 4 }
0244       stretch       = TRUE
0245     }
0246     image
0247     {
0248       function      = BOX
0249       state         = ACTIVE
0250       file          = "../assets/togglebutton-active.png"
0251       border        = { 4, 4, 4, 4 }
0252       stretch       = TRUE
0253     }
0254     image
0255    {
0256      function       = BOX
0257      state          = INSENSITIVE
0258      file           = "../assets/togglebutton-insensitive.png"
0259      border         = { 4, 4, 4, 4 }
0260      stretch        = TRUE
0261     }
0262   }
0263 }
0264 
0265 style "spinbutton" = "default"
0266 {
0267   #bg[NORMAL] = @bg_color
0268 
0269   xthickness  = 3
0270   ythickness  = 3
0271   GtkWidget::interior_focus = 1
0272 
0273 engine "pixmap"
0274   {
0275     image
0276     {
0277       function      = ARROW
0278     }
0279 
0280   #Spin-up
0281   image
0282   {
0283     function          = BOX
0284     state             = NORMAL
0285     detail            = "spinbutton_up"
0286     file              = "../assets/spinbutton-up.png"
0287     border            = { 5, 5, 5, 5 }
0288     stretch           = TRUE
0289     overlay_file      = "../assets/arrow-small-up.png"
0290     overlay_stretch   = FALSE
0291   }
0292   image
0293   {
0294     function          = BOX
0295     state             = PRELIGHT
0296     detail            = "spinbutton_up"
0297     file              = "../assets/spinbutton-up.png"
0298     border            = { 5, 5, 5, 5 }
0299     stretch           = TRUE
0300     overlay_file      = "../assets/arrow-small-up-hover.png"
0301     overlay_stretch   = FALSE
0302   }
0303   image
0304   {
0305     function          = BOX
0306     state             = INSENSITIVE
0307     detail            = "spinbutton_up"
0308     file              = "../assets/spinbutton-up-insensitive.png"
0309     border            = { 5, 5, 5, 5 }
0310     stretch           = TRUE
0311     overlay_file      = "../assets/arrow-small-up-insensitive.png"
0312     overlay_stretch   = FALSE
0313   }
0314   image
0315   {
0316     function          = BOX
0317     state             = ACTIVE
0318     detail            = "spinbutton_up"
0319     file              = "../assets/spinbutton-up.png"
0320     border            = { 5, 5, 5, 5 }
0321     stretch           = TRUE
0322     overlay_file      = "../assets/arrow-small-up-active.png"
0323     overlay_stretch   = FALSE
0324   }
0325 
0326   # Spin-Down
0327     image
0328     {
0329       function        = BOX
0330       state           = NORMAL
0331       detail          = "spinbutton_down"
0332       file            = "../assets/spinbutton-down.png"
0333       border          = { 5, 5, 5, 5 }
0334       stretch         = TRUE
0335       overlay_file    = "../assets/arrow-small-down.png"
0336       overlay_stretch = FALSE
0337     }
0338     image
0339     {
0340       function        = BOX
0341       state           = PRELIGHT
0342       detail          = "spinbutton_down"
0343       file            = "../assets/spinbutton-down.png"
0344       border          = { 5, 5, 5, 5 }
0345       stretch         = TRUE
0346       overlay_file    = "../assets/arrow-small-down-hover.png"
0347       overlay_stretch = FALSE
0348     }
0349     image
0350     {
0351       function        = BOX
0352       state           = INSENSITIVE
0353       detail          = "spinbutton_down"
0354       file            = "../assets/spinbutton-down-insensitive.png"
0355       border          = { 5, 5, 5, 5 }
0356       stretch         = TRUE
0357       overlay_file    = "../assets/arrow-small-down-insensitive.png"
0358       overlay_stretch = FALSE
0359     }
0360     image
0361     {
0362       function        = BOX
0363       state           = ACTIVE
0364       detail          = "spinbutton_down"
0365       file            = "../assets/spinbutton-down.png"
0366       border          = { 5, 5, 5, 5 }
0367       stretch         = TRUE
0368       overlay_file    = "../assets/arrow-small-down-hover.png"
0369       overlay_stretch = FALSE
0370     }
0371   }
0372 }
0373 
0374 style "button_label" {
0375   fg[NORMAL]      = @button_fg_color
0376   fg[ACTIVE]      = @button_fg_color
0377   fg[INSENSITIVE] = @button_insensitive_fg_color
0378 }
0379 
0380 style "combobox_separator"
0381 {
0382   xthickness = 0
0383   ythickness = 0
0384   GtkWidget::wide-separators = 1
0385 }