all repos — dotfiles @ a57181c9c58dddc216a13cf81faad537e0c7069d

my *nix dotfiles

themes/whitey/gtk-2.0/common.rc (view raw)

   1#
   2# Common states
   3#
   4gtk-auto-mnemonics = 1
   5gtk-primary-button-warps-slider = 1
   6
   7style "default" {
   8  xthickness = 0
   9  ythickness = 0
  10
  11  #
  12  # Style Properties
  13  #
  14  GtkWidget::link-color = "#2b2b2b"
  15  GtkWidget::visited-link-color = "#82A1FF"
  16  GtkWidget::focus-line-width = 0
  17  GtkWidget::focus-padding = 2
  18  GtkMenuBar::window-dragging = 1
  19  GtkToolbar::window-dragging = 1
  20  GtkToolbar::internal-padding = 2
  21  GtkToolbar::space-size = 7
  22  GtkToolButton::icon-spacing = 4
  23
  24  GtkWidget::tooltip-radius = 2
  25  GtkWidget::tooltip-alpha = 230
  26  GtkWidget::new-tooltip-style = 1 #for compatibility
  27
  28  GtkSeparatorMenuItem::horizontal-padding = 3
  29  GtkSeparatorMenuItem::wide-separators = 1
  30  GtkSeparatorMenuItem::separator-height = 1
  31
  32  GtkButton::child-displacement-y = 0
  33  GtkButton::default-border = { 0, 0, 0, 0 }
  34  GtkButton::default-outside_border = { 0, 0, 0, 0 }
  35
  36  GtkEntry::state-hint = 1
  37
  38  GtkScrollbar::trough-border = 0
  39  GtkRange::trough-border = 0
  40  GtkRange::slider-width = 13
  41  GtkRange::stepper-size = 0
  42
  43  GtkScrollbar::activate-slider = 1
  44  GtkScrollbar::has-backward-stepper = 0  
  45  GtkScrollbar::has-forward-stepper = 0
  46  GtkScrollbar::min-slider-length = 32
  47  GtkScrollbar::slider-width = 12
  48  GtkScrolledWindow::scrollbar-spacing = 0
  49  GtkScrolledWindow::scrollbars-within-bevel = 0
  50
  51  GtkVScale::slider_length = 20
  52  GtkVScale::slider_width = 20
  53  GtkHScale::slider_length = 20
  54  GtkHScale::slider_width = 20
  55
  56  GtkStatusbar::shadow_type = GTK_SHADOW_NONE
  57  GtkSpinButton::shadow_type = GTK_SHADOW_NONE
  58  GtkMenuBar::shadow-type = GTK_SHADOW_NONE
  59  GtkToolbar::shadow-type = GTK_SHADOW_NONE
  60  GtkMenuBar::internal-padding = 0 #( every window is misaligned for the sake of menus ):
  61  GtkMenu::horizontal-padding = 0
  62  GtkMenu::vertical-padding = 0
  63
  64  GtkCheckButton::indicator-size = 16
  65  GtkCheckButton::indicator_spacing = 2
  66  GtkOptionMenu::indicator_spacing = { 0, 10, 0, 0 }
  67
  68  GtkTreeView::row_ending_details = 0
  69  GtkTreeView::expander-size = 16
  70  GtkTreeView::vertical-separator = 4
  71  GtkTreeView::horizontal-separator = 4
  72  GtkTreeView::allow-rules = 1
  73
  74  GtkExpander::expander-size = 16
  75
  76  GtkProgressBar::min-horizontal-bar-height = 4
  77  GtkProgressBar::min-vertical-bar-width = 4
  78
  79  # For succinctness, all reasonable pixmap options remain here
  80  engine "pixmap" {
  81
  82    #
  83    # Check Buttons
  84    #
  85    image {
  86      function          = CHECK
  87      recolorable       = TRUE
  88      state             = NORMAL
  89      shadow            = OUT
  90      overlay_file      = "Check-Radio/check-off.png"
  91      overlay_stretch   = FALSE
  92    }
  93    image {
  94      function          = CHECK
  95      recolorable       = TRUE
  96      state             = PRELIGHT
  97      shadow            = OUT
  98      overlay_file      = "Check-Radio/check-off-hover.png"
  99      overlay_stretch   = FALSE
 100    }
 101    image {
 102      function          = CHECK
 103      recolorable       = TRUE
 104      state             = ACTIVE
 105      shadow            = OUT
 106      overlay_file      = "Check-Radio/check-off-active.png"
 107      overlay_stretch   = FALSE
 108    }
 109    image {
 110      function          = CHECK
 111      recolorable       = TRUE
 112      state             = INSENSITIVE
 113      shadow            = OUT
 114      overlay_file      = "Check-Radio/check-off-insensitive.png"
 115      overlay_stretch   = FALSE
 116    }
 117    image {
 118      function          = CHECK
 119      recolorable       = TRUE
 120      state             = SELECTED
 121      shadow            = OUT
 122      overlay_file      = "Check-Radio/check-off.png"
 123      overlay_stretch   = FALSE
 124    }
 125    image {
 126      function          = CHECK
 127      recolorable       = TRUE
 128      state             = NORMAL
 129      shadow            = IN
 130      overlay_file      = "Check-Radio/check-on.png"
 131      overlay_stretch   = FALSE
 132    }
 133    image {
 134      function          = CHECK
 135      recolorable       = TRUE
 136      state             = PRELIGHT
 137      shadow            = IN
 138      overlay_file      = "Check-Radio/check-on-hover.png"
 139      overlay_stretch   = FALSE
 140    }
 141    image {
 142      function          = CHECK
 143      recolorable       = TRUE
 144      state             = ACTIVE
 145      shadow            = IN
 146      overlay_file      = "Check-Radio/check-on-active.png"
 147      overlay_stretch   = FALSE
 148    }
 149    image {
 150      function          = CHECK
 151      recolorable       = TRUE
 152      state             = INSENSITIVE
 153      shadow            = IN
 154      overlay_file      = "Check-Radio/check-on-insensitive.png"
 155      overlay_stretch   = FALSE
 156    }
 157    image {
 158      function          = CHECK
 159      recolorable       = TRUE
 160      state             = SELECTED
 161      shadow            = IN
 162      overlay_file      = "Check-Radio/check-on.png"
 163      overlay_stretch   = FALSE
 164    }
 165
 166    #
 167    # Radio Buttons
 168    #
 169    image {
 170      function          = OPTION
 171      state             = NORMAL
 172      shadow            = OUT
 173      overlay_file      = "Check-Radio/radio-off.png"
 174      overlay_stretch   = FALSE
 175    }
 176    image {
 177      function          = OPTION
 178      state             = PRELIGHT
 179      shadow            = OUT
 180      overlay_file      = "Check-Radio/radio-off-hover.png"
 181      overlay_stretch   = FALSE
 182    }
 183    image {
 184      function          = OPTION
 185      state             = ACTIVE
 186      shadow            = OUT
 187      overlay_file      = "Check-Radio/radio-off-active.png"
 188      overlay_stretch   = FALSE
 189    }
 190    image {
 191      function          = OPTION
 192      state             = INSENSITIVE
 193      shadow            = OUT
 194      overlay_file      = "Check-Radio/radio-off-insensitive.png"
 195      overlay_stretch   = FALSE
 196    }
 197    image {
 198      function          = OPTION
 199      state             = SELECTED
 200      shadow            = OUT
 201      overlay_file      = "Check-Radio/radio-off.png"
 202      overlay_stretch   = FALSE
 203    }
 204    image {
 205      function          = OPTION
 206      state             = NORMAL
 207      shadow            = IN
 208      overlay_file      = "Check-Radio/radio-on.png"
 209      overlay_stretch   = FALSE
 210    }
 211    image {
 212      function          = OPTION
 213      state             = PRELIGHT
 214      shadow            = IN
 215      overlay_file      = "Check-Radio/radio-on-hover.png"
 216      overlay_stretch   = FALSE
 217    }
 218    image {
 219      function          = OPTION
 220      state             = ACTIVE
 221      shadow            = IN
 222      overlay_file      = "Check-Radio/radio-on-active.png"
 223      overlay_stretch   = FALSE
 224    }
 225    image {
 226      function          = OPTION
 227      state             = INSENSITIVE
 228      shadow            = IN
 229      overlay_file      = "Check-Radio/radio-on-insensitive.png"
 230      overlay_stretch   = FALSE
 231    }
 232    image {
 233      function          = OPTION
 234      state             = SELECTED
 235      shadow            = IN
 236      overlay_file      = "Check-Radio/radio-on.png"
 237      overlay_stretch   = FALSE
 238    }
 239
 240    #
 241    # Arrows
 242    #
 243    image {
 244      function          = ARROW
 245      overlay_file      = "Arrows/up.png"
 246      overlay_border    = { 0, 0, 0, 0 }
 247      overlay_stretch   = FALSE
 248      arrow_direction   = UP
 249    }
 250    image {
 251      function          = ARROW
 252      state             = PRELIGHT
 253      overlay_file      = "Arrows/up.png"
 254      overlay_border    = { 0, 0, 0, 0 }
 255      overlay_stretch   = FALSE
 256      arrow_direction   = UP
 257    }
 258    image {
 259      function          = ARROW
 260      state             = ACTIVE
 261      overlay_file      = "Arrows/up.png"
 262      overlay_border    = { 0, 0, 0, 0 }
 263      overlay_stretch   = FALSE
 264      arrow_direction   = UP
 265    }
 266    image {
 267      function          = ARROW
 268      state             = INSENSITIVE
 269      overlay_file      = "Arrows/up-insensitive.png"
 270      overlay_border    = { 0, 0, 0, 0 }
 271      overlay_stretch   = FALSE
 272      arrow_direction   = UP
 273    }
 274    image {
 275      function          = ARROW
 276      state             = NORMAL
 277      overlay_file      = "Arrows/down.png"
 278      overlay_border    = { 0, 0, 0, 0 }
 279      overlay_stretch   = FALSE
 280      arrow_direction   = DOWN
 281    }
 282    image {
 283      function          = ARROW
 284      state             = PRELIGHT
 285      overlay_file      = "Arrows/down.png"
 286      overlay_border    = { 0, 0, 0, 0 }
 287      overlay_stretch   = FALSE
 288      arrow_direction   = DOWN
 289    }
 290    image {
 291      function          = ARROW
 292      state             = ACTIVE
 293      overlay_file      = "Arrows/down.png"
 294      overlay_border    = { 0, 0, 0, 0 }
 295      overlay_stretch   = FALSE
 296      arrow_direction   = DOWN
 297    }
 298    image {
 299      function          = ARROW
 300      state             = INSENSITIVE
 301      overlay_file      = "Arrows/down-insensitive.png"
 302      overlay_border    = { 0, 0, 0, 0 }
 303      overlay_stretch   = FALSE
 304      arrow_direction   = DOWN
 305    }
 306    image {
 307      function          = ARROW
 308      overlay_file      = "Arrows/left.png"
 309      overlay_border    = { 0, 0, 0, 0 }
 310      overlay_stretch   = FALSE
 311      arrow_direction   = LEFT
 312    }
 313    image {
 314      function          = ARROW
 315      state             = PRELIGHT
 316      overlay_file      = "Arrows/left.png"
 317      overlay_border    = { 0, 0, 0, 0 }
 318      overlay_stretch   = FALSE
 319      arrow_direction   = LEFT
 320    }
 321    image {
 322      function          = ARROW
 323      state             = ACTIVE
 324      overlay_file      = "Arrows/left.png"
 325      overlay_border    = { 0, 0, 0, 0 }
 326      overlay_stretch   = FALSE
 327      arrow_direction   = LEFT
 328    }
 329    image {
 330      function          = ARROW
 331      state             = INSENSITIVE
 332      overlay_file      = "Arrows/left-insensitive.png"
 333      overlay_border    = { 0, 0, 0, 0 }
 334      overlay_stretch   = FALSE
 335      arrow_direction   = LEFT
 336    }
 337    image {
 338      function          = ARROW
 339      overlay_file      = "Arrows/right.png"
 340      overlay_border    = { 0, 0, 0, 0 }
 341      overlay_stretch   = FALSE
 342      arrow_direction   = RIGHT
 343    }
 344    image {
 345      function          = ARROW
 346      state             = PRELIGHT
 347      overlay_file      = "Arrows/right.png"
 348      overlay_border    = { 0, 0, 0, 0 }
 349      overlay_stretch   = FALSE
 350      arrow_direction   = RIGHT
 351    }
 352    image {
 353      function          = ARROW
 354      state             = ACTIVE
 355      overlay_file      = "Arrows/right.png"
 356      overlay_border    = { 0, 0, 0, 0 }
 357      overlay_stretch   = FALSE
 358      arrow_direction   = RIGHT
 359    }
 360    image {
 361      function          = ARROW
 362      state             = INSENSITIVE
 363      overlay_file      = "Arrows/right-insensitive.png"
 364      overlay_border    = { 0, 0, 0, 0 }
 365      overlay_stretch   = FALSE
 366      arrow_direction   = RIGHT
 367    }
 368
 369    #
 370    # Option Menu Arrows
 371    #
 372    image {
 373      function          = TAB
 374      state             = NORMAL
 375      overlay_file      = "Arrows/down.png"
 376      overlay_border    = { 0, 0, 0, 0 }
 377      overlay_stretch   = FALSE
 378    }
 379    image {
 380      function          = TAB
 381      state             = PRELIGHT
 382      overlay_file      = "Arrows/down.png"
 383      overlay_border    = { 0, 0, 0, 0 }
 384      overlay_stretch   = FALSE
 385    }
 386    image {
 387      function          = TAB
 388      state             = INSENSITIVE
 389      overlay_file      = "Arrows/down-insensitive.png"
 390      overlay_stretch   = FALSE
 391    }
 392
 393    #
 394    # Lines
 395    #
 396    image {
 397      function          = VLINE
 398      file              = "Lines/v-line.png"
 399      border            = { 1, 0, 0, 0 }
 400      stretch           = TRUE
 401    }
 402    image {
 403      function          = HLINE
 404      file              = "Lines/h-line.png"
 405      border            = { 0, 0, 0, 1 }
 406      stretch           = TRUE
 407    }
 408
 409    #
 410    # Focuslines
 411    #
 412    image {
 413      function          = FOCUS
 414      file              = "Others/focus.png"
 415      border            = { 0, 0, 0, 0 }
 416      stretch           = TRUE
 417    }
 418
 419    #
 420    # Handles
 421    #
 422    image {
 423      function          = HANDLE
 424      state             = NORMAL
 425      overlay_file      = "Handles/h-handle.png"
 426      overlay_stretch   = FALSE
 427      orientation       = HORIZONTAL
 428    }
 429    image {
 430      function          = HANDLE
 431      state             = PRELIGHT
 432      overlay_file      = "Handles/h-handle-hover.png"
 433      overlay_stretch   = FALSE
 434      orientation       = HORIZONTAL
 435    }
 436    image {
 437      function          = HANDLE
 438      state             = ACTIVE
 439      overlay_file      = "Handles/h-handle-active.png"
 440      overlay_stretch   = FALSE
 441      orientation       = HORIZONTAL
 442    }
 443    image {
 444      function          = HANDLE
 445      state             = INSENSITIVE
 446      overlay_file      = "Handles/h-handle-insensitive.png"
 447      overlay_stretch   = FALSE
 448      orientation       = HORIZONTAL
 449    }
 450    image {
 451      function          = HANDLE
 452      state             = NORMAL
 453      overlay_file      = "Handles/v-handle.png"
 454      overlay_stretch   = FALSE
 455      orientation       = VERTICAL
 456    }
 457    image {
 458      function          = HANDLE
 459      state             = PRELIGHT
 460      overlay_file      = "Handles/v-handle-hover.png"
 461      overlay_stretch   = FALSE
 462      orientation       = VERTICAL
 463    }
 464    image {
 465      function          = HANDLE
 466      state             = ACTIVE
 467      overlay_file      = "Handles/v-handle-active.png"
 468      overlay_stretch   = FALSE
 469      orientation       = VERTICAL
 470    }
 471    image {
 472      function          = HANDLE
 473      state             = INSENSITIVE
 474      overlay_file      = "Handles/v-handle-insensitive.png"
 475      overlay_stretch   = FALSE
 476      orientation       = VERTICAL
 477    }
 478
 479    #
 480    # Expanders
 481    #
 482    image {
 483      function          = EXPANDER
 484      state             = NORMAL
 485      expander_style    = COLLAPSED
 486      file              = "Arrows/right-alt.png"
 487    }
 488    image {
 489      function          = EXPANDER
 490      state             = PRELIGHT
 491      expander_style    = COLLAPSED
 492      file              = "Arrows/right-alt-hover.png"
 493    }
 494    image {
 495      function          = EXPANDER
 496      state             = ACTIVE
 497      expander_style    = COLLAPSED
 498      file              = "Arrows/right.png"
 499    }
 500    image {
 501      function          = EXPANDER
 502      state             = INSENSITIVE
 503      expander_style    = COLLAPSED
 504      file              = "Arrows/right-alt-insensitive.png"
 505    }
 506    image {
 507      function          = EXPANDER
 508      state             = NORMAL
 509      expander_style    = SEMI_COLLAPSED
 510      file              = "Arrows/right-alt.png"
 511    }
 512    image {
 513      function          = EXPANDER
 514      state             = PRELIGHT
 515      expander_style    = SEMI_COLLAPSED
 516      file              = "Arrows/right-alt-hover.png"
 517    }
 518    image {
 519      function          = EXPANDER
 520      state             = ACTIVE
 521      expander_style    = SEMI_COLLAPSED
 522      file              = "Arrows/right.png"
 523    }
 524    image {
 525      function          = EXPANDER
 526      state             = INSENSITIVE
 527      expander_style    = SEMI_COLLAPSED
 528      file              = "Arrows/right-alt-insensitive.png"
 529    }
 530    image {
 531      function          = EXPANDER
 532      state             = NORMAL
 533      expander_style    = EXPANDED
 534      file              = "Arrows/down-alt.png"
 535    }
 536    image {
 537      function          = EXPANDER
 538      state             = PRELIGHT
 539      expander_style    = EXPANDED
 540      file              = "Arrows/down-alt-hover.png"
 541    }
 542    image {
 543      function          = EXPANDER
 544      state             = ACTIVE
 545      expander_style    = EXPANDED
 546      file              = "Arrows/down.png"
 547    }
 548    image {
 549      function          = EXPANDER
 550      state             = INSENSITIVE
 551      expander_style    = EXPANDED
 552      file              = "Arrows/down-alt-insensitive.png"
 553    }
 554    image {
 555      function          = EXPANDER
 556      state             = NORMAL
 557      expander_style    = SEMI_EXPANDED
 558      file              = "Arrows/down-alt.png"
 559    }
 560    image {
 561      function          = EXPANDER
 562      state             = PRELIGHT
 563      expander_style    = SEMI_EXPANDED
 564      file              = "Arrows/down-alt-hover.png"
 565    }
 566    image {
 567      function          = EXPANDER
 568      state             = ACTIVE
 569      expander_style    = SEMI_EXPANDED
 570      file              = "Arrows/down.png"
 571    }
 572    image {
 573      function          = EXPANDER
 574      state             = INSENSITIVE
 575      expander_style    = SEMI_EXPANDED
 576      file              = "Arrows/down-alt-insensitive.png"
 577    }
 578
 579    #
 580    # Resize Grip
 581    #
 582    image {
 583      function          = RESIZE_GRIP
 584      state             = NORMAL
 585      detail            = "statusbar"
 586      overlay_file      = "Others/null.svg" 
 587      overlay_border    = { 0, 0, 0, 0 }
 588      overlay_stretch   = FALSE
 589    }
 590
 591    #
 592    # Shadows ( this area needs help :P )
 593    #
 594    image {
 595      function          = SHADOW_GAP
 596      file              = "Others/null.svg"
 597      border            = { 0, 0, 0, 0 }
 598      stretch           = TRUE
 599    }
 600  }
 601}
 602
 603style "toplevel_hack" {
 604}
 605
 606style "progressbar" {
 607  xthickness = 0
 608  ythickness = 0
 609
 610  fg[NORMAL] = @fg_color
 611  fg[PRELIGHT] = @selected_fg_color
 612
 613  engine "pixmap" {
 614    image {
 615      function    = BOX
 616      # state     = NORMAL
 617      detail      = "trough"
 618      file        = "ProgressBar/trough.png"
 619      border      = { 0, 0, 0, 0 }
 620      stretch     = TRUE
 621      orientation = HORIZONTAL
 622    }
 623    image {
 624      function    = BOX
 625      # state     = NORMAL
 626      detail      = "trough"
 627      file        = "ProgressBar/trough.png"
 628      border      = { 0, 0, 0, 0 }
 629      stretch     = TRUE
 630      orientation = VERTICAL
 631    }
 632    image {
 633      function    = BOX
 634      # state     = NORMAL
 635      detail      = "bar"
 636      file        = "ProgressBar/bar.png"
 637      stretch     = TRUE
 638      border      = { 0, 0, 0, 0 }
 639      orientation = HORIZONTAL
 640    }
 641    image {
 642      function    = BOX
 643      # state     = NORMAL
 644      detail      = "bar"
 645      file        = "ProgressBar/bar.png"
 646      stretch     = TRUE
 647      border      = { 0, 0, 0, 0 }
 648      orientation = VERTICAL
 649    }
 650  }
 651}
 652
 653style "range" { 
 654  engine "pixmap" {
 655    image {
 656      function    = BOX
 657      # state     = NORMAL
 658      detail      = "trough"
 659      file        = "Range/h-scale-trough.png"
 660      border      = { 10, 10, 0, 0 }
 661      stretch     = TRUE
 662      orientation = HORIZONTAL
 663    }
 664    image {
 665      function    = BOX
 666      state       = INSENSITIVE
 667      detail      = "trough"
 668      file        = "Range/h-scale-trough-insensitive.png"
 669      border      = { 10, 10, 0, 0 }
 670      stretch     = TRUE
 671      orientation = HORIZONTAL
 672    }
 673    image {
 674      function    = BOX
 675      # state     = NORMAL
 676      detail      = "trough"
 677      file        = "Range/v-scale-trough.png"
 678      border      = { 0, 0, 10, 10 }
 679      stretch     = TRUE
 680      orientation = VERTICAL
 681    }
 682    image {
 683      function    = BOX
 684      state       = INSENSITIVE
 685      detail      = "trough"
 686      file        = "Range/v-scale-trough-insensitive.png"
 687      border      = { 0, 0, 10, 10 }
 688      stretch     = TRUE
 689      orientation = VERTICAL
 690    }
 691
 692    #
 693    # Horizontal
 694    #
 695    image {
 696      function        = SLIDER
 697      state           = NORMAL
 698      file            = "Others/null.svg"
 699      border          = { 0, 0, 0, 0 }
 700      stretch         = TRUE
 701      overlay_file    = "Range/scale-slider.png"
 702      overlay_stretch = FALSE
 703      orientation     = HORIZONTAL
 704    }
 705    image {
 706      function        = SLIDER
 707      state           = PRELIGHT
 708      file            = "Others/null.svg"
 709      border          = { 0, 0, 0, 0 }
 710      stretch         = TRUE
 711      overlay_file    = "Range/scale-slider-hover.png"
 712      overlay_stretch = FALSE
 713      orientation     = HORIZONTAL
 714    }
 715    image {
 716      function        = SLIDER
 717      state           = ACTIVE
 718      file            = "Others/null.svg"
 719      border          = { 0, 0, 0, 0 }
 720      stretch         = TRUE
 721      overlay_file    = "Range/scale-slider-active.png"
 722      overlay_stretch = FALSE
 723      orientation     = HORIZONTAL
 724    }
 725    image {
 726      function        = SLIDER
 727      state           = INSENSITIVE
 728      file            = "Others/null.svg"
 729      border          = { 0, 0, 0, 0 }
 730      stretch         = TRUE
 731      overlay_file    = "Range/scale-slider-insensitive.png"
 732      overlay_stretch = FALSE
 733      orientation     = HORIZONTAL
 734    }
 735
 736    #
 737    # Vertical
 738    #
 739    image {
 740      function        = SLIDER
 741      state           = NORMAL
 742      file            = "Others/null.svg"
 743      border          = { 0, 0, 0, 0 }
 744      stretch         = TRUE
 745      overlay_file    = "Range/scale-slider.png"
 746      overlay_stretch = FALSE
 747      orientation     = VERTICAL
 748    }
 749    image {
 750      function        = SLIDER
 751      state           = PRELIGHT
 752      file            = "Others/null.svg"
 753      border          = { 0, 0, 0, 0 }
 754      stretch         = TRUE
 755      overlay_file    = "Range/scale-slider-hover.png"
 756      overlay_stretch = FALSE
 757      orientation     = VERTICAL
 758    }
 759    image {
 760      function        = SLIDER
 761      state           = ACTIVE
 762      file            = "Others/null.svg"
 763      border          = { 0, 0, 0, 0 }
 764      stretch         = TRUE
 765      overlay_file    = "Range/scale-slider-active.png"
 766      overlay_stretch = FALSE
 767      orientation     = VERTICAL
 768    }
 769    image {
 770      function        = SLIDER
 771      state           = INSENSITIVE
 772      file            = "Others/null.svg"
 773      border          = { 0, 0, 0, 0 }
 774      stretch         = TRUE
 775      overlay_file    = "Range/scale-slider-insensitive.png"
 776      overlay_stretch = FALSE
 777      orientation     = VERTICAL
 778    }
 779
 780    # Function below removes ugly boxes
 781    image {
 782      function        = BOX
 783      file            = "Others/null.svg"
 784      border          = { 3, 3, 3, 3 }
 785      stretch         = TRUE
 786    }
 787  }
 788}
 789
 790style "scrollbar" {
 791  engine "pixmap" {
 792    image {
 793      function    = BOX
 794      # state     = NORMAL
 795      detail      = "trough"
 796      file        = "Scrollbars/h-trough.png"
 797      border      = { 0, 0, 1, 0 }
 798      stretch     = TRUE
 799      orientation = HORIZONTAL
 800    }
 801    image {
 802      function    = BOX
 803      state       = INSENSITIVE
 804      detail      = "trough"
 805      file        = "Scrollbars/h-trough.png"
 806      border      = { 0, 0, 1, 0 }
 807      stretch     = TRUE
 808      orientation = HORIZONTAL
 809    }
 810    image {
 811      function    = BOX
 812      # state     = NORMAL
 813      detail      = "trough"
 814      file        = "Scrollbars/v-trough.png"
 815      border      = { 1, 0, 0, 0 }
 816      stretch     = TRUE
 817      orientation = VERTICAL
 818    }
 819    image {
 820      function    = BOX
 821      state       = INSENSITIVE
 822      detail      = "trough"
 823      file        = "Scrollbars/v-trough.png"
 824      border      = { 1, 0, 0, 0 }
 825      stretch     = TRUE
 826      orientation = VERTICAL
 827    }
 828
 829    #
 830    # Sliders
 831    #
 832    image {
 833      function    = SLIDER
 834      state       = NORMAL
 835      file        = "Scrollbars/h-slider.png" 
 836      border      = { 0, 0, 0, 0 }
 837      stretch     = TRUE
 838      orientation = HORIZONTAL
 839    }
 840    image {
 841      function    = SLIDER
 842      state       = PRELIGHT
 843      file        = "Scrollbars/h-slider-hover.png" 
 844      border      = { 0, 0, 0, 0 }
 845      stretch     = TRUE
 846      orientation = HORIZONTAL
 847    }
 848    image {
 849      function    = SLIDER
 850      state       = ACTIVE
 851      file        = "Scrollbars/h-slider-active.png" 
 852      border      = { 0, 0, 0, 0 }
 853      stretch     = TRUE
 854      orientation = HORIZONTAL
 855    }
 856    image 
 857    {
 858      function    = SLIDER
 859      state       = INSENSITIVE
 860      file        = "Scrollbars/h-slider-insensitive.png"
 861      border      = { 0, 0, 0, 0 }
 862      stretch     = TRUE
 863      orientation = HORIZONTAL
 864    }
 865
 866    # X Verticals
 867    image {
 868      function    = SLIDER
 869      state       = NORMAL
 870      file        = "Scrollbars/v-slider.png" 
 871      border      = { 0, 0, 0, 0 }
 872      stretch     = TRUE
 873      orientation = VERTICAL
 874    }
 875    image {
 876      function    = SLIDER
 877      state       = PRELIGHT
 878      file        = "Scrollbars/v-slider-hover.png"
 879      border      = { 0, 0, 0, 0 }
 880      stretch     = TRUE
 881      orientation = VERTICAL
 882    }
 883    image {
 884      function    = SLIDER
 885      state       = ACTIVE
 886      file        = "Scrollbars/v-slider-active.png" 
 887      border      = { 0, 0, 0, 0 }
 888      stretch     = TRUE
 889      orientation = VERTICAL
 890    }
 891    image {
 892      function    = SLIDER
 893      state       = INSENSITIVE
 894      file        = "Scrollbars/v-slider-insensitive.png"
 895      border      = { 0, 0, 0, 0 }
 896      stretch     = TRUE
 897      orientation = VERTICAL
 898    }
 899  }
 900}
 901
 902style "entry" {
 903  xthickness = 6
 904  ythickness = 6
 905    bg[NORMAL] = "#2b2b2b"
 906  engine "pixmap" {
 907    image {
 908      function = SHADOW
 909      detail   = "entry"
 910      state    = NORMAL
 911      shadow   = IN
 912      file     = "Entry/entry.png"
 913      border   = { 2, 2, 2, 2 }
 914      stretch  = TRUE
 915    }
 916    image {
 917      function = SHADOW
 918      detail   = "entry"
 919      state    = ACTIVE
 920      file     = "Entry/entry-active.png"
 921      border   = { 2, 2, 2, 2 }
 922      stretch  = TRUE
 923    }
 924    image {
 925      function = SHADOW
 926      detail   = "entry"
 927      state    = INSENSITIVE
 928      shadow   = IN
 929      file     = "Entry/entry-insensitive.png"
 930      border   = { 2, 2, 2, 2 }
 931      stretch  = TRUE
 932    }
 933    image {
 934      function        = FLAT_BOX
 935      detail          = "entry_bg"
 936      state           = NORMAL
 937      overlay_file    = "Others/null.svg"
 938      overlay_border  = { 0, 0, 0, 0 }
 939      overlay_stretch = TRUE
 940    }
 941    image {
 942      function        = FLAT_BOX
 943      detail          = "entry_bg"
 944      state           = ACTIVE
 945      overlay_file    = "Others/null.svg"
 946      overlay_border  = { 0, 0, 0, 0 }
 947      overlay_stretch = TRUE
 948    }
 949  }
 950}
 951
 952style "notebook_entry" {
 953
 954  bg[NORMAL] = "#2b2b2b"
 955  bg[ACTIVE] = @bg_color
 956  bg[INSENSITIVE] = @bg_color
 957
 958  engine "pixmap" {
 959    image {
 960      function = SHADOW
 961      detail   = "entry"
 962      state    = NORMAL
 963      shadow   = IN
 964      file     = "Entry/base_entry.png"
 965      border   = { 2, 2, 2, 2 }
 966      stretch  = TRUE
 967    }
 968    image {
 969      function = SHADOW
 970      detail   = "entry"
 971      state    = ACTIVE
 972      file     = "Entry/base_entry-active.png"
 973      border   = { 2, 2, 2, 2 }
 974      stretch  = TRUE
 975    }
 976    image {
 977      function = SHADOW
 978      detail   = "entry"
 979      state    = INSENSITIVE
 980      shadow   = IN
 981      file     = "Entry/base_entry-insensitive.png"
 982      border   = { 2, 2, 2, 2 }
 983      stretch  = TRUE
 984    }
 985  }
 986}
 987
 988style "button" {
 989  xthickness = 3
 990  ythickness = 5
 991
 992  fg[NORMAL] = mix(0.75, @fg_color, @bg_color)
 993  font_name = "Medium"
 994
 995  engine "pixmap" {
 996    image {
 997      function = BOX
 998      state    = NORMAL
 999      file     = "Buttons/button.png"
1000      border   = { 2, 2, 2, 2 }
1001      stretch  = TRUE
1002    }
1003    image {
1004      function = BOX
1005      state    = PRELIGHT
1006      shadow   = OUT
1007      file     = "Buttons/button-hover.png"
1008      border   = { 2, 2, 2, 2 }
1009      stretch  = TRUE
1010    }
1011    image {
1012      function = BOX
1013      state    = INSENSITIVE
1014      shadow   = OUT
1015      file     = "Buttons/button-insensitive.png"
1016      border   = { 2, 2, 2, 2 }
1017      stretch  = TRUE
1018    }
1019    image {
1020      function = BOX
1021      state    = ACTIVE
1022      file     = "Buttons/button-active.png"
1023      border   = { 2, 2, 2, 2 }
1024      stretch  = TRUE
1025    }
1026    image {
1027      function = BOX
1028      state    = PRELIGHT
1029      shadow   = IN
1030      file     = "Buttons/button-active.png"
1031      border   = { 2, 2, 2, 2 }
1032      stretch  = TRUE
1033    }
1034    image {
1035      function = BOX
1036      state    = INSENSITIVE
1037      shadow   = IN
1038      file     = "Buttons/button-insensitive.png"
1039      border   = { 2, 2, 2, 2 }
1040      stretch  = TRUE
1041    }
1042  }
1043}
1044
1045style "button_label" {
1046  fg[NORMAL] = mix(0.75, @fg_color, @bg_color)
1047  fg[ACTIVE] = @selected_fg_color
1048}
1049
1050style "flat_button" {
1051  xthickness = 4
1052  ythickness = 2
1053
1054  fg[NORMAL] = mix(0.75, @fg_color, @bg_color)
1055  fg[ACTIVE] = "#555555"
1056  font_name = "Medium"
1057
1058  engine "pixmap" {
1059    image {
1060      function = BOX
1061      state    = NORMAL
1062      file     = "Buttons/flat-button.png"
1063      border   = { 2, 2, 2, 2 }
1064      stretch  = TRUE
1065    }
1066    image {
1067      function = BOX
1068      state    = PRELIGHT
1069      shadow   = OUT
1070      file     = "Buttons/flat-button-hover.png"
1071      border   = { 2, 2, 2, 2 }
1072      stretch  = TRUE
1073    }
1074    image {
1075      function = BOX
1076      state    = INSENSITIVE
1077      shadow   = OUT
1078      #file     = "Others/null.svg"
1079      file     = "Buttons/flat-button-hover.png"
1080      border   = { 2, 2, 2, 2 }
1081      stretch  = TRUE
1082    }
1083    image {
1084      function = BOX
1085      state    = ACTIVE
1086      #file     = "Buttons/flat-button-active.png"
1087      file     = "Buttons/flat-button.png"
1088      border   = { 2, 2, 2, 2 }
1089      stretch  = TRUE
1090    }
1091    image {
1092      function = BOX
1093      state    = PRELIGHT
1094      shadow   = IN
1095      file     = "Buttons/flat-button-hover.png"
1096      border   = { 2, 2, 2, 2 }
1097      stretch  = TRUE
1098    }
1099    image {
1100      function = BOX
1101      state    = INSENSITIVE
1102      shadow   = IN
1103      #file     = "Buttons/button-insensitive.png"
1104      file     = "Buttons/flat-button-hover.png"
1105      border   = { 2, 2, 2, 2 }
1106      stretch  = TRUE
1107    }
1108  }
1109}
1110
1111style "button_separator" {
1112  xthickness = 0
1113  ythickness = 0
1114
1115  GtkWidget::wide-separators = 1
1116  GtkWidget::separator-height = 0
1117  GtkWidget::separator-width = 0
1118}
1119
1120style "combobox_button" {
1121  xthickness = 5
1122  ythickness = 4
1123}
1124
1125style "combobox_entry" {
1126  xthickness = 6
1127  ythickness = 6
1128
1129  engine "pixmap" {
1130    # LTR version
1131    image {
1132      function  = SHADOW
1133      detail    = "entry"
1134      state     = NORMAL
1135      shadow    = IN
1136      file      = "Entry/ltr-entry.png"
1137      border    = { 5, 0, 5, 5 }
1138      stretch   = TRUE
1139      direction = LTR
1140    }
1141    image {
1142      function  = SHADOW
1143      detail    = "entry"
1144      state     = ACTIVE
1145      file      = "Entry/ltr-entry-active.png"
1146      border    = { 5, 0, 5, 5 }
1147      stretch   = TRUE
1148      direction = LTR
1149    }
1150    image {
1151      function  = SHADOW
1152      detail    = "entry"
1153      state     = INSENSITIVE
1154      shadow    = IN
1155      file      = "Entry/ltr-entry-insensitive.png"
1156      border    = { 5, 0, 5, 5 }
1157      stretch   = TRUE
1158      direction = LTR
1159    }
1160
1161    # RTL version
1162    image {
1163      function  = SHADOW
1164      detail    = "entry"
1165      state     = NORMAL
1166      shadow    = IN
1167      file      = "Entry/rtl-entry.png"
1168      border    = { 0, 5, 5, 5 }
1169      stretch   = TRUE
1170      direction = RTL
1171    }
1172    image {
1173      function  = SHADOW
1174      detail    = "entry"
1175      state     = ACTIVE
1176      file      = "Entry/rtl-entry-active.png"
1177      border    = { 0, 5, 5, 5 }
1178      stretch   = TRUE
1179      direction = RTL
1180    }
1181    image {
1182      function  = SHADOW
1183      detail    = "entry"
1184      state     = INSENSITIVE
1185      shadow    = IN
1186      file      = "Entry/rtl-entry-insensitive.png"
1187      border    = { 0, 5, 5, 5 }
1188      stretch   = TRUE
1189      direction = RTL
1190    }
1191  }
1192}
1193
1194style "notebook_combobox_entry" {
1195  engine "pixmap" {
1196    # LTR version
1197    image {
1198      function  = SHADOW
1199      detail    = "entry"
1200      state     = NORMAL
1201      shadow    = IN
1202      file      = "Entry/ltr-base_entry.png"
1203      border    = { 5, 0, 5, 5 }
1204      stretch   = TRUE
1205      direction = LTR
1206    }
1207    image {
1208      function  = SHADOW
1209      detail    = "entry"
1210      state     = ACTIVE
1211      file      = "Entry/ltr-base_entry-active.png"
1212      border    = { 5, 0, 5, 5 }
1213      stretch   = TRUE
1214      direction = LTR
1215    }
1216    image {
1217      function  = SHADOW
1218      detail    = "entry"
1219      state     = INSENSITIVE
1220      shadow    = IN
1221      file      = "Entry/ltr-base_entry-insensitive.png"
1222      border    = { 5, 0, 5, 5 }
1223      stretch   = TRUE
1224      direction = LTR
1225    }
1226
1227    # RTL version
1228    image {
1229      function  = SHADOW
1230      detail    = "entry"
1231      state     = NORMAL
1232      shadow    = IN
1233      file      = "Entry/rtl-base_entry.png"
1234      border    = { 0, 5, 5, 5 }
1235      stretch   = TRUE
1236      direction = RTL
1237    }
1238    image {
1239      function  = SHADOW
1240      detail    = "entry"
1241      state     = ACTIVE
1242      file      = "Entry/rtl-base_entry-active.png"
1243      border    = { 0, 5, 5, 5 }
1244      stretch   = TRUE
1245      direction = RTL
1246    }
1247    image {
1248      function  = SHADOW
1249      detail    = "entry"
1250      state     = INSENSITIVE
1251      shadow    = IN
1252      file      = "Entry/rtl-base_entry-insensitive.png"
1253      border    = { 0, 5, 5, 5 }
1254      stretch   = TRUE
1255      direction = RTL
1256    }
1257  }
1258}
1259
1260style "combobox_entry_button" {
1261  xthickness = 6
1262  ythickness = 6
1263
1264  fg[ACTIVE] = @text_color
1265
1266  engine "pixmap" {
1267    # LTR version
1268    image {
1269      function  = BOX
1270      state     = NORMAL
1271      file      = "Buttons/ltr-button.png"
1272      border    = { 2, 5, 5, 5 }
1273      stretch   = TRUE
1274      direction = LTR
1275    }
1276    image {
1277      function  = BOX
1278      state     = PRELIGHT
1279      file      = "Buttons/ltr-button-hover.png"
1280      border    = { 2, 5, 5, 5 }
1281      stretch   = TRUE
1282      direction = LTR
1283    }
1284    image {
1285      function  = BOX
1286      state     = ACTIVE
1287      file      = "Buttons/ltr-button-active.png"
1288      border    = { 2, 5, 5, 5 }
1289      stretch   = TRUE
1290      direction = LTR
1291    }
1292    image {
1293      function  = BOX
1294      state     = INSENSITIVE
1295      file      = "Buttons/ltr-button-insensitive.png"
1296      border    = { 2, 5, 5, 5 }
1297      stretch   = TRUE
1298      direction = LTR
1299    }
1300
1301    # RTL version
1302    image {
1303      function  = BOX
1304      state     = NORMAL
1305      file      = "Buttons/rtl-button.png"
1306      border    = { 5, 2, 5, 5 }
1307      stretch   = TRUE
1308      direction = RTL
1309    }
1310    image {
1311      function  = BOX
1312      state     = PRELIGHT
1313      file      = "Buttons/rtl-button-hover.png"
1314      border    = { 5, 2, 5, 5 }
1315      stretch   = TRUE
1316      direction = RTL
1317    }
1318    image {
1319      function  = BOX
1320      state     = ACTIVE
1321      file      = "Buttons/rtl-button-active.png"
1322      border    = { 5, 2, 5, 5 }
1323      stretch   = TRUE
1324      direction = RTL
1325    }
1326    image {
1327      function  = BOX
1328      state     = INSENSITIVE
1329      file      = "Buttons/rtl-button-insensitive.png"
1330      border    = { 5, 2, 5, 5 }
1331      stretch   = TRUE
1332      direction = RTL
1333    }
1334  }
1335}
1336
1337style "combo_entry_button" {
1338  xthickness = 6
1339  ythickness = 6
1340}
1341
1342style "spinbutton" {
1343  xthickness = 6
1344  ythickness = 6
1345
1346  bg[NORMAL] = @bg_color
1347
1348  engine "pixmap" {
1349    image {
1350      function = ARROW
1351    }
1352
1353    # Spin-Up LTR
1354    image {
1355      function        = BOX
1356      state           = NORMAL
1357      detail          = "spinbutton_up"
1358      file            = "Spin/ltr-up.png"
1359      border          = { 1, 5, 5, 0 }
1360      stretch         = TRUE
1361      overlay_file    = "Arrows/up.png"
1362      overlay_stretch = FALSE
1363      direction       = LTR
1364    }
1365    image {
1366      function        = BOX
1367      state           = PRELIGHT
1368      detail          = "spinbutton_up"
1369      file            = "Spin/ltr-up-hover.png"
1370      border          = { 1, 5, 5, 0 }
1371      stretch         = TRUE
1372      overlay_file    = "Arrows/up.png"
1373      overlay_stretch = FALSE
1374      direction       = LTR
1375    }
1376    image {
1377      function        = BOX
1378      state           = ACTIVE
1379      detail          = "spinbutton_up"
1380      file            = "Spin/ltr-up-active.png"
1381      border          = { 1, 5, 5, 0 }
1382      stretch         = TRUE
1383      overlay_file    = "Arrows/up.png"
1384      overlay_stretch = FALSE
1385      direction       = LTR
1386    }
1387    image {
1388      function        = BOX
1389      state           = INSENSITIVE
1390      detail          = "spinbutton_up"
1391      file            = "Spin/ltr-up-insensitive.png"
1392      border          = { 1, 5, 5, 0 }
1393      stretch         = TRUE
1394      overlay_file    = "Arrows/up-insensitive.png"
1395      overlay_stretch = FALSE
1396      direction       = LTR
1397    }
1398
1399    # Spin-Up RTL
1400    image {
1401      function        = BOX
1402      state           = NORMAL
1403      detail          = "spinbutton_up"
1404      file            = "Spin/rtl-up.png"
1405      border          = { 5, 1, 5, 0 }
1406      stretch         = TRUE
1407      overlay_file    = "Arrows/up.png"
1408      overlay_stretch = FALSE
1409      direction       = RTL
1410    }
1411    image {
1412      function        = BOX
1413      state           = PRELIGHT
1414      detail          = "spinbutton_up"
1415      file            = "Spin/rtl-up-hover.png"
1416      border          = { 5, 1, 5, 0 }
1417      stretch         = TRUE
1418      overlay_file    = "Arrows/up.png"
1419      overlay_stretch = FALSE
1420      direction       = RTL
1421    }
1422    image
1423    {
1424      function        = BOX
1425      state           = ACTIVE
1426      detail          = "spinbutton_up"
1427      file            = "Spin/rtl-up-active.png"
1428      border          = { 5, 1, 5, 0 }
1429      stretch         = TRUE
1430      overlay_file    = "Arrows/up.png"
1431      overlay_stretch = FALSE
1432      direction       = RTL
1433    }
1434    image {
1435      function        = BOX
1436      state           = INSENSITIVE
1437      detail          = "spinbutton_up"
1438      file            = "Spin/rtl-up-insensitive.png"
1439      border          = { 5, 1, 5, 0 }
1440      stretch         = TRUE
1441      overlay_file    = "Arrows/up-insensitive.png"
1442      overlay_stretch = FALSE
1443      direction       = RTL
1444    }
1445
1446    # Spin-Down LTR
1447    image {
1448      function        = BOX
1449      state           = NORMAL
1450      detail          = "spinbutton_down"
1451      file            = "Spin/ltr-down.png"
1452      border          = { 1, 5, 1, 5 }
1453      stretch         = TRUE
1454      overlay_file    = "Arrows/down.png"
1455      overlay_stretch = FALSE
1456      direction       = LTR
1457    }
1458    image {
1459      function        = BOX
1460      state           = PRELIGHT
1461      detail          = "spinbutton_down"
1462      file            = "Spin/ltr-down-hover.png"
1463      border          = { 1, 5, 1, 5 }
1464      stretch         = TRUE
1465      overlay_file    = "Arrows/down.png"
1466      overlay_stretch = FALSE
1467      direction       = LTR
1468    }
1469    image {
1470      function        = BOX
1471      state           = ACTIVE
1472      detail          = "spinbutton_down"
1473      file            = "Spin/ltr-down-active.png"
1474      border          = { 1, 5, 1, 5 }
1475      stretch         = TRUE
1476      overlay_file    = "Arrows/down.png"
1477      overlay_stretch = FALSE
1478      direction       = LTR
1479    }
1480    image {
1481      function        = BOX
1482      state           = INSENSITIVE
1483      detail          = "spinbutton_down"
1484      file            = "Spin/ltr-down-insensitive.png"
1485      border          = { 1, 5, 1, 5 }
1486      stretch         = TRUE
1487      overlay_file    = "Arrows/down-insensitive.png"
1488      overlay_stretch = FALSE
1489      direction       = LTR
1490    }
1491
1492    # Spin-Down RTL
1493    image {
1494      function        = BOX
1495      state           = NORMAL
1496      detail          = "spinbutton_down"
1497      file            = "Spin/rtl-down.png"
1498      border          = { 5, 1, 1, 5 }
1499      stretch         = TRUE
1500      overlay_file    = "Arrows/down.png"
1501      overlay_stretch = FALSE
1502      direction       = RTL
1503    }
1504    image {
1505      function        = BOX
1506      state           = PRELIGHT
1507      detail          = "spinbutton_down"
1508      file            = "Spin/rtl-down-hover.png"
1509      border          = { 5, 1, 1, 5 }
1510      stretch         = TRUE
1511      overlay_file    = "Arrows/down.png"
1512      overlay_stretch = FALSE
1513      direction       = RTL
1514    }
1515    image {
1516      function        = BOX
1517      state           = ACTIVE
1518      detail          = "spinbutton_down"
1519      file            = "Spin/rtl-down-active.png"
1520      border          = { 5, 1, 1, 5 }
1521      stretch         = TRUE
1522      overlay_file    = "Arrows/down.png"
1523      overlay_stretch = FALSE
1524      direction       = RTL
1525    }
1526    image {
1527      function        = BOX
1528      state           = INSENSITIVE
1529      detail          = "spinbutton_down"
1530      file            = "Spin/rtl-down-insensitive.png"
1531      border          = { 5, 1, 1, 5 }
1532      stretch         = TRUE
1533      overlay_file    = "Arrows/down-insensitive.png"
1534      overlay_stretch = FALSE
1535      direction       = RTL
1536    }
1537  }
1538}
1539
1540style "standalone_entry" {
1541  engine "pixmap" {
1542    image {
1543      function = FLAT_BOX
1544      detail   = "entry_bg"
1545      state    = NORMAL
1546      file     = "Others/null.svg"
1547      stretch  = TRUE
1548      border   = { 0, 0, 0, 0 }
1549    }
1550    image {
1551      function = FLAT_BOX
1552      detail   = "entry_bg"
1553      state    = ACTIVE
1554      file     = "Others/null.svg"
1555      stretch  = TRUE
1556      border   = { 0, 0, 0, 0 }
1557    }
1558    image {
1559      function = SHADOW
1560      detail   = "entry"
1561      state    = NORMAL
1562      shadow   = IN
1563      file     = "Others/null.svg"
1564      border   = { 0, 0, 0, 0 }
1565      stretch  = TRUE
1566    }
1567    image {
1568      function = SHADOW
1569      detail   = "entry"
1570      state    = ACTIVE
1571      file     = "Others/null.svg"
1572      border   = { 0, 0, 0, 0 }
1573      stretch  = TRUE
1574    }
1575  }
1576}
1577
1578style "menubar" {
1579  xthickness = 0
1580  ythickness = 0
1581
1582  bg[NORMAL] = @bg_color
1583#  fg[NORMAL] = mix(0.8, @selected_fg_color, shade(0.96, @fg_color))
1584  fg[NORMAL] = @selected_fg_color
1585  fg[PRELIGHT] = @selected_fg_color
1586#  fg[INSENSITIVE] = mix(0.4, @selected_fg_color, @fg_color)
1587  fg[INSENSITIVE] = "#FFFFFF"
1588
1589#  engine "pixmap" {
1590#    image {
1591#      function    = BOX
1592#      file        = "Shadows/z-depth-1.svg"
1593#      border      = { 1, 1, 1, 1 }
1594#      stretch     = TRUE
1595#      recolorable = TRUE
1596#    }
1597#  }
1598}
1599
1600style "menubar_item" {
1601  xthickness = 3
1602  ythickness = 6
1603
1604  bg[NORMAL] = "#2A373E"
1605  bg[PRELIGHT] = "#2A373E"
1606  fg[NORMAL] = @text_color
1607  fg[PRELIGHT] = @text_color
1608  fg[INSENSITIVE] = mix(0.4, @selected_fg_color, @fg_color)
1609
1610  engine "pixmap" {
1611    image {
1612      function    = BOX
1613      recolorable = TRUE
1614      state       = PRELIGHT
1615      file        = "Others/top.png"
1616      border      = { 0, 0, 0, 2 }
1617      stretch     = TRUE
1618    }
1619  }
1620}
1621
1622style "menu" {
1623  xthickness = 0
1624  ythickness = 0
1625
1626  GtkMenuItem::arrow-scaling = 0.4
1627
1628  bg[NORMAL] = @base_color
1629  bg[PRELIGHT] = @base_color
1630  bg[INSENSITIVE] = @base_color
1631}
1632
1633style "menu_framed_box" {
1634}
1635
1636style "menu_item" {
1637  xthickness = 4
1638  ythickness = 6
1639
1640  # HACK: Gtk doesn't actually read this value
1641  # while rendering the menu items, but Libreoffice
1642  # does; setting this value equal to the one in
1643  # fg[PRELIGHT] ensures a code path in the LO theming code
1644  # that falls back to a dark text color for menu item text
1645  # highlight. The price to pay is black text on menus as well,
1646  # but at least it's readable.
1647  # See https://bugs.freedesktop.org/show_bug.cgi?id=38038
1648  bg[SELECTED] = mix(0.9, @base_color, @fg_color)
1649  bg[PRELIGHT] = mix(0.9, @base_color, @fg_color)
1650  fg[PRELIGHT] = shade(0.96, @fg_color)
1651  fg[SELECTED] = shade(0.96, @fg_color)
1652  text[PRELIGHT] = shade(0.96, @fg_color)
1653  text[SELECTED] = shade(0.96, @fg_color)
1654
1655  engine "pixmap" {
1656
1657    # Check Buttons
1658    image {
1659      function        = CHECK
1660      recolorable     = TRUE
1661      state           = NORMAL
1662      shadow          = OUT
1663      overlay_file    = "Others/null.svg"
1664      overlay_stretch = FALSE
1665    }
1666    image {
1667      function        = CHECK
1668      recolorable     = TRUE
1669      state           = PRELIGHT
1670      shadow          = OUT
1671      overlay_file    = "Others/null.svg"
1672      overlay_stretch = FALSE
1673    }
1674    image {
1675      function        = CHECK
1676      recolorable     = TRUE
1677      state           = ACTIVE
1678      shadow          = OUT
1679      overlay_file    = "Others/null.svg"
1680      overlay_stretch = FALSE
1681    }
1682    image {
1683      function        = CHECK
1684      recolorable     = TRUE
1685      state           = INSENSITIVE
1686      shadow          = OUT
1687      overlay_file    = "Others/null.svg"
1688      overlay_stretch = FALSE
1689    }
1690    image {
1691      function        = CHECK
1692      recolorable     = TRUE
1693      state           = NORMAL
1694      shadow          = IN
1695      overlay_file    = "Check-Radio/check.png"
1696      overlay_stretch = FALSE
1697    }
1698    image {
1699      function        = CHECK
1700      recolorable     = TRUE
1701      state           = PRELIGHT
1702      shadow          = IN
1703      overlay_file    = "Check-Radio/check-selected.png"
1704      overlay_stretch = FALSE
1705    }
1706    image {
1707      function        = CHECK
1708      recolorable     = TRUE
1709      state           = ACTIVE
1710      shadow          = IN
1711      overlay_file    = "Check-Radio/check-selected.png"
1712      overlay_stretch = FALSE
1713    }
1714    image {
1715      function        = CHECK
1716      recolorable     = TRUE
1717      state           = INSENSITIVE
1718      shadow          = IN
1719      overlay_file    = "Check-Radio/check-insensitive.png"
1720      overlay_stretch = FALSE
1721    }
1722
1723    # Radio Buttons
1724    image {
1725      function        = OPTION
1726      state           = NORMAL
1727      shadow          = OUT
1728      overlay_file    = "Others/null.svg"
1729      overlay_stretch = FALSE
1730    }
1731    image {
1732      function        = OPTION
1733      state           = PRELIGHT
1734      shadow          = OUT
1735      overlay_file    = "Others/null.svg"
1736      overlay_stretch = FALSE
1737    }
1738    image {
1739      function        = OPTION
1740      state           = ACTIVE
1741      shadow          = OUT
1742      overlay_file    = "Others/null.svg"
1743      overlay_stretch = FALSE
1744    }
1745    image {
1746      function        = OPTION
1747      state           = INSENSITIVE
1748      shadow          = OUT
1749      overlay_file    = "Others/null.svg"
1750      overlay_stretch = FALSE
1751    }
1752    image {
1753      function        = OPTION
1754      state           = NORMAL
1755      shadow          = IN
1756      overlay_file    = "Check-Radio/radio.png"
1757      overlay_stretch = FALSE
1758    }
1759    image {
1760      function        = OPTION
1761      state           = PRELIGHT
1762      shadow          = IN
1763      overlay_file    = "Check-Radio/radio-selected.png"
1764      overlay_stretch = FALSE
1765    }
1766    image {
1767      function        = OPTION
1768      state           = ACTIVE
1769      shadow          = IN
1770      overlay_file    = "Check-Radio/radio-selected.png"
1771      overlay_stretch = FALSE
1772    }
1773    image {
1774      function        = OPTION
1775      state           = INSENSITIVE
1776      shadow          = IN
1777      overlay_file    = "Check-Radio/radio-insensitive.png"
1778      overlay_stretch = FALSE
1779    }
1780
1781    # This fixes boxy Qt menu items
1782    image {
1783      function = SHADOW
1784      file     = "Others/null.svg"
1785      border   = { 4, 4, 4, 4 }
1786      stretch  = TRUE
1787    }
1788
1789    # Arrow Buttons
1790    image {
1791      function        = ARROW
1792      state           = NORMAL
1793      overlay_file    = "Arrows/right-alt.png"
1794      overlay_border  = { 0, 0, 0, 0 }
1795      overlay_stretch = FALSE
1796      arrow_direction = RIGHT
1797    }
1798    image {
1799      function        = ARROW
1800      state           = PRELIGHT
1801      overlay_file    = "Arrows/right-alt-hover.png"
1802      overlay_border  = { 0, 0, 0, 0 }
1803      overlay_stretch = FALSE
1804      arrow_direction = RIGHT
1805    }
1806    image {
1807      function        = ARROW
1808      state           = INSENSITIVE
1809      overlay_file    = "Arrows/right-alt-insensitive.png"
1810      overlay_border  = { 0, 0, 0, 0 }
1811      overlay_stretch = FALSE
1812      arrow_direction = RIGHT
1813    }
1814  }
1815}
1816
1817style "separator_menu_item"  {
1818  xthickness = 0
1819  ythickness = 2
1820
1821  # embedded blank area width = 20px
1822  engine "pixmap" {
1823    image {
1824      function  = BOX
1825      file      = "Lines/menu-line-ltr.png"
1826      border    = { 20, 0, 0, 0 }
1827      stretch   = TRUE
1828      direction = LTR
1829    }
1830    image {
1831      function  = BOX
1832      file      = "Lines/menu-line-rtl.png"
1833      border    = { 0, 20, 0, 0 }
1834      stretch   = TRUE
1835      direction = RTL
1836    }
1837  }
1838}
1839
1840style "notebook" {
1841  xthickness = 4
1842  ythickness = 4
1843
1844  engine "pixmap" {
1845    image {
1846      function = EXTENSION
1847      state    = ACTIVE
1848      file     = "Others/null.svg"
1849      border   = { 0, 0, 0, 0 }
1850      stretch  = TRUE
1851      gap_side = TOP
1852    }
1853    image {
1854      function = EXTENSION
1855      state    = ACTIVE
1856      file     = "Others/null.svg"
1857      border   = { 0, 0, 0, 0 }
1858      stretch  = TRUE
1859      gap_side = BOTTOM
1860    }
1861    image {
1862      function = EXTENSION
1863      state    = ACTIVE
1864      file     = "Others/null.svg"
1865      border   = { 0, 0, 0, 0 }
1866      stretch  = TRUE
1867      gap_side = RIGHT
1868    }
1869    image {
1870      function = EXTENSION
1871      state    = ACTIVE
1872      file     = "Others/null.svg"
1873      border   = { 0, 0, 0, 0 }
1874      stretch  = TRUE
1875      gap_side = LEFT
1876    } 
1877    image {
1878      function = EXTENSION
1879      file     = "Others/top.png"
1880      border   = { 0, 0, 0, 2 }
1881      stretch  = TRUE
1882      gap_side = BOTTOM
1883    }
1884    image {
1885      function = EXTENSION
1886      file     = "Others/bottom.png"
1887      border   = { 0, 0, 2, 0 }
1888      stretch  = TRUE
1889      gap_side = TOP
1890    }
1891    image {
1892      function = EXTENSION
1893      file     = "Others/left.png"
1894      border   = { 0, 2, 0, 0 }
1895      stretch  = TRUE
1896      gap_side = RIGHT
1897    }
1898    image {
1899      function = EXTENSION
1900      file     = "Others/right.png"
1901      border   = { 2, 0, 0, 0 }
1902      stretch  = TRUE
1903      gap_side = LEFT
1904    }
1905
1906    # How to draw boxes with a gap on one side (ie the page of a notebook)
1907    image {
1908      function   = BOX_GAP
1909      file       = "Shadows/frame.png" 
1910      border     = { 1, 1, 1, 1 }
1911      stretch    = TRUE
1912      gap_file   = "Others/null.svg"
1913      gap_border = { 1, 1, 0, 0 }
1914      gap_side   = TOP
1915    }
1916    image {
1917      function   = BOX_GAP
1918      file       = "Shadows/frame.png"
1919      border     = { 1, 1, 1, 1 }
1920      stretch    = TRUE
1921      gap_file   = "Others/null.svg"
1922      gap_border = { 1, 1, 0, 0 }
1923      gap_side   = BOTTOM
1924    }
1925    image {
1926      function   = BOX_GAP
1927      file       = "Shadows/frame.png"
1928      border     = { 1, 1, 1, 1 }
1929      stretch    = TRUE
1930      gap_file   = "Others/null.svg"
1931      gap_border = { 0, 0, 1, 1 }
1932      gap_side   = LEFT
1933    }
1934    image {
1935      function   = BOX_GAP
1936      file       = "Shadows/frame.png" 
1937      border     = { 1, 1, 1, 1 }
1938      stretch    = TRUE
1939      gap_file   = "Others/null.svg"
1940      gap_border = { 0, 0, 1, 1 }
1941      gap_side   = RIGHT
1942    }
1943
1944    # How to draw the box of a notebook when it isnt attached to a tab
1945    image {
1946      function = BOX
1947      file     = "Shadows/frame.png"
1948      border   = { 1, 1, 1, 1 }
1949      stretch  = TRUE
1950    }
1951  }
1952}
1953
1954style "notebook_viewport" {
1955  bg[NORMAL] = @base_color
1956}
1957
1958style "notebook_tab_label" {
1959  fg[ACTIVE] = mix(0.6, @fg_color, @bg_color)
1960  font_name = "Bold"
1961}
1962
1963style "treeview_header" {
1964  xthickness = 2
1965  ythickness = 1
1966
1967  fg[NORMAL] = mix(0.6, @text_color, @base_color)
1968  fg[PRELIGHT] = mix(0.8, @text_color, @base_color)
1969  fg[ACTIVE]  = @text_color
1970  fg[INSENSITIVE] = mix(0.24, @text_color, @base_color)
1971  font_name = "Medium"
1972
1973  engine "pixmap" {
1974    image {
1975      function = BOX
1976      state    = NORMAL
1977      file     = "Column/column.png"
1978      border   = { 0, 1, 0, 1 }
1979      stretch  = TRUE
1980    }
1981    image {
1982      function = BOX
1983      state    = PRELIGHT
1984      file     = "Column/column-hover.png"
1985      border   = { 0, 1, 0, 1 }
1986      stretch  = TRUE
1987    }
1988    image {
1989      function = BOX
1990      state    = ACTIVE
1991      file     = "Column/column-active.png"
1992      border   = { 0, 1, 0, 1 }
1993      stretch  = TRUE
1994    }
1995    image {
1996      function = BOX
1997      state    = INSENSITIVE
1998      file     = "Column/column-insensitive.png"
1999      border   = { 0, 1, 0, 1 }
2000      stretch  = TRUE
2001    }
2002  }
2003}
2004
2005style "scrolled_window" {
2006  xthickness = 1
2007  ythickness = 1
2008
2009  engine "pixmap" {
2010    image {
2011      function = SHADOW
2012      file     = "Shadows/frame.png"
2013      border   = { 1, 1, 1, 1 }
2014      stretch  = TRUE
2015    }
2016  }
2017}
2018
2019# FIXME: needs for Inkskape's scrolled colour palette
2020style "scrolled_viewport" {
2021  xthickness = 0
2022  ythickness = 1
2023
2024  engine "pixmap" {
2025    image {
2026      function = SHADOW
2027      file     = "Others/null.svg"
2028      border   = { 1, 1, 1, 1 }
2029      stretch  = TRUE
2030    }
2031  }
2032}
2033
2034style "frame" {
2035  xthickness = 0
2036  ythickness = 0
2037
2038  engine "pixmap" {
2039    image {
2040      function = SHADOW
2041      file     = "Shadows/frame.png"
2042      border   = { 1, 1, 1, 1 }
2043      stretch  = TRUE
2044      shadow   = IN
2045    }
2046    image {
2047      function         = SHADOW_GAP
2048      file             = "Shadows/frame.png"
2049      border           = { 1, 1, 1, 1 }
2050      stretch          = TRUE
2051      gap_start_file   = "Shadows/gap.png"
2052      gap_start_border = { 1, 0, 0, 0 }
2053      gap_end_file     = "Shadows/gap.png"
2054      gap_end_border   = { 0, 1, 0, 0 }
2055      shadow           = IN
2056    }
2057    image {
2058      function = SHADOW
2059      file     = "Shadows/frame.png"
2060      border   = { 1, 1, 1, 1 }
2061      stretch  = TRUE
2062      shadow   = OUT
2063    }
2064    image {
2065      function         = SHADOW_GAP
2066      file             = "Shadows/frame.png"
2067      border           = { 1, 1, 1, 1 }
2068      stretch          = TRUE
2069      gap_start_file   = "Shadows/gap.png"
2070      gap_start_border = { 1, 0, 0, 0 }
2071      gap_end_file     = "Shadows/gap.png"
2072      gap_end_border   = { 0, 1, 0, 0 }
2073      shadow           = OUT
2074    }
2075    image {
2076      function = SHADOW
2077      file     = "Shadows/frame.png"
2078      border   = { 1, 1, 1, 1 }
2079      stretch  = TRUE
2080      shadow   = ETCHED_IN
2081    }
2082    image {
2083      function         = SHADOW_GAP
2084      file             = "Shadows/frame.png"
2085      border           = { 1, 1, 1, 1 }
2086      stretch          = TRUE
2087      gap_start_file   = "Shadows/gap.png"
2088      gap_start_border = { 1, 0, 0, 0 }
2089      gap_end_file     = "Shadows/gap.png"
2090      gap_end_border   = { 0, 1, 0, 0 }
2091      shadow           = ETCHED_IN
2092    }
2093    image {
2094      function = SHADOW
2095      file     = "Shadows/frame.png"
2096      border   = { 1, 1, 1, 1 }
2097      stretch  = TRUE
2098      shadow   = ETCHED_OUT
2099    }
2100    image {
2101      function         = SHADOW_GAP
2102      file             = "Shadows/frame.png"
2103      border           = { 1, 1, 1, 1 }
2104      stretch          = TRUE
2105      gap_start_file   = "Shadows/gap.png"
2106      gap_start_border = { 1, 0, 0, 0 }
2107      gap_end_file     = "Shadows/gap.png"
2108      gap_end_border   = { 0, 1, 0, 0 }
2109      shadow           = ETCHED_OUT
2110    }
2111  }
2112}
2113
2114style "handlebox" {
2115  engine "pixmap" {
2116    image {
2117      function = BOX
2118      file     = "Others/null.svg"
2119      border   = { 4, 4, 4, 4 }
2120      stretch  = TRUE
2121      detail   = "handlebox_bin"
2122      shadow   = IN
2123    }
2124    image {
2125      function = BOX
2126      file     = "Others/null.svg"
2127      border   = { 4, 4, 4, 4 }
2128      stretch  = TRUE
2129      detail   = "handlebox_bin"
2130      shadow   = OUT
2131    }
2132  }
2133}
2134
2135style "toolbar" {
2136  engine "pixmap" {
2137    image {
2138      function = BUTTON
2139    }
2140  }
2141}
2142
2143style "inline_toolbar" {
2144  GtkToolbar::button-relief = GTK_RELIEF_NORMAL
2145
2146  engine "pixmap" {
2147    image {
2148      function    = BOX
2149#      file        = "ProgressBar/bar.png"
2150      border      = { 1, 1, 0, 1 }
2151      recolorable = FALSE
2152      stretch     = TRUE
2153    }
2154  }
2155}
2156
2157style "bg" {
2158  fg[NORMAL] = mix(0.75, @fg_color, @bg_color)
2159  fg[PRELIGHT] = @fg_color
2160  fg[ACTIVE] = @fg_color
2161  bg[NORMAL] = "#e5e9ec"
2162  bg[PRELIGHT] = @bg_color
2163  bg[ACTIVE] = @bg_color
2164  bg[INSENSITIVE] = @bg_color
2165}
2166
2167style "base" {
2168  fg[NORMAL] = mix(0.75, @fg_color, @bg_color)
2169  fg[PRELIGHT] = @fg_color
2170  fg[ACTIVE] = @fg_color
2171  bg[NORMAL] = @base_color
2172  bg[PRELIGHT] = @base_color
2173  bg[ACTIVE] = @base_color
2174  bg[INSENSITIVE] = @base_color
2175}
2176
2177style "tooltips" {
2178  xthickness = 9
2179  ythickness = 9
2180
2181  bg[NORMAL] = @tooltip_bg_color
2182  fg[NORMAL] = @tooltip_fg_color
2183  bg[SELECTED] = @tooltip_bg_color
2184}
2185
2186style "text" {
2187  engine "murrine" { textstyle = 0 }
2188}
2189
2190class "GtkWidget"            style "default"
2191class "GtkScrollbar"         style "scrollbar"
2192class "GtkButton"            style "flat_button"
2193class "GtkEntry"             style "entry"
2194class "GtkOldEditable"       style "entry"
2195class "GtkSpinButton"        style "spinbutton"
2196class "GtkNotebook"          style "notebook"
2197class "GtkRange"             style "range"
2198class "GtkProgressBar"       style "progressbar"
2199class "GtkSeparatorMenuItem" style "separator_menu_item"
2200class "GtkScrolledWindow"    style "scrolled_window"
2201class "GtkFrame"             style "frame"
2202class "GtkToolbar"           style "toolbar"
2203
2204widget_class "*<GtkButton>*<GtkLabel>"           style "button_label"
2205
2206widget_class "*<GtkMenuBar>*"                    style "menubar"
2207widget_class "*<GtkMenu>*"                       style "menu"
2208widget_class "*<GtkMenuItem>*"                   style "menu_item"
2209widget_class "*<GtkMenuBar>.<GtkMenuItem>*"      style "menubar_item"
2210widget_class "*<GtkMenu>*<GtkSeparatorMenuItem>" style "separator_menu_item"
2211
2212widget_class "*<GtkComboBox>*<GtkButton>"      style "combobox_button"
2213widget_class "*<GtkComboBoxEntry>*<GtkEntry>"  style "combobox_entry"
2214widget_class "*<GtkComboBoxEntry>*<GtkButton>" style "combobox_entry_button"
2215widget_class "*<GtkCombo>*<GtkEntry>"          style "combobox_entry"
2216widget_class "*<GtkCombo>*<GtkButton>"         style "combobox_entry_button"
2217widget_class "*<GtkCombo>*<GtkButton>"         style "combo_entry_button"
2218
2219widget_class "*HandleBox"                                       style "handlebox"
2220widget_class "*<GtkTreeView>*<GtkButton>*"                      style "treeview_header"
2221widget_class "*<GtkFileChooserDefault>*<GtkToolbar>"            style "inline_toolbar"
2222widget_class "*<GtkNotebook>*<GtkScrolledWindow>*<GtkViewport>" style "notebook_viewport"
2223
2224# FIXME: needs for Inkskape's scrolled colour palette
2225widget_class "*<GtkScrolledWindow>*<GtkViewport>"               style "scrolled_viewport"
2226
2227widget_class "*<GtkComboBox>*<GtkSeparator>"          style "button_separator"
2228widget_class "*<GtkFontButton>*<GtkSeparator>"        style "button_separator"
2229widget_class "*<GtkFileChooserButton>*<GtkSeparator>" style "button_separator"
2230
2231widget_class "*<GtkSpinButton>*"  style "bg"
2232widget_class "*<GtkCheckButton>*" style "bg"
2233widget_class "*<GtkExpander>*"    style "bg"
2234widget_class "*<GtkNotebook>*<GtkSpinButton>"  style "base"
2235widget_class "*<GtkNotebook>*<GtkCheckButton>" style "base"
2236widget_class "*<GtkNotebook>*<GtkExpander>"    style "base"
2237widget_class "*<GtkNotebook>*<GtkEventBox>*<GtkSpinButton>"  style "bg"
2238widget_class "*<GtkNotebook>*<GtkEventBox>*<GtkCheckButton>" style "bg"
2239widget_class "*<GtkNotebook>*<GtkEventBox>*<GtkExpander>"    style "bg"
2240
2241widget_class "*<GtkToolbar>*<GtkButton>" style "flat_button"
2242
2243# Entries in notebooks draw with notebook's base color, but not if there's
2244# something else in the middle that draws gray again
2245widget_class "*<GtkNotebook>*<GtkEntry>"               style "notebook_entry"
2246widget_class "*<GtkNotebook>*<GtkEventBox>*<GtkEntry>" style "entry"
2247
2248widget_class "*<GtkNotebook>*<GtkComboBoxEntry>*<GtkEntry>"               style "notebook_combobox_entry"
2249widget_class "*<GtkNotebook>*<GtkEventBox>*<GtkComboBoxEntry>*<GtkEntry>" style "combobox_entry"
2250
2251# We also need to avoid changing fg color for the inactive notebook tab labels
2252widget_class "*<GtkNotebook>.<GtkLabel>" style "notebook_tab_label"
2253
2254# GTK tooltips
2255widget "gtk-tooltip*" style "tooltips"
2256
2257# Fixes insensitive text shadows
2258widget_class "*<GtkLabel>"                     style "text"
2259widget_class "*<GtkComboBox>*<GtkCellLayout>"  style "text"
2260widget_class "*<GtkNotebook>*<GtkLabel>"       style "text"
2261widget_class "*<GtkNotebook>*<GtkCellLayout>"  style "text"