NoPaste

apps

von ottonormal

SNIPPET_TEXT:
  1. # vim:set ft=gtkrc ts=2 sw=2 sts=2 ai et:
  2. #
  3. # This file, unlike hacks.rc, contains legitimate cases we need to handle, e.g.
  4. # custom widgets, programs giving us a chance to alter their UI to fit more with
  5. # the theme or stuff that is supposed to look different, like panels.
  6.  
  7. # TODO: This could really look nicer
  8. style "gimp_spin_scale" {
  9.   # Spin background
  10.  bg[NORMAL] = @base_color
  11.  
  12.   engine "pixmap" {
  13.     image {
  14.       function        = BOX
  15.       state           = NORMAL
  16.       detail          = "spinbutton_up"
  17.       overlay_file    = "assets/pan-up-alt.png"
  18.       overlay_stretch = FALSE
  19.     }
  20.  
  21.     image {
  22.       function        = BOX
  23.       state           = PRELIGHT
  24.       detail          = "spinbutton_up"
  25.       overlay_file    = "assets/pan-up.png"
  26.       overlay_stretch = FALSE
  27.     }
  28.  
  29.     image {
  30.       function        = BOX
  31.       state           = ACTIVE
  32.       detail          = "spinbutton_up"
  33.       overlay_file    = "assets/pan-up.png"
  34.       overlay_stretch = FALSE
  35.     }
  36.  
  37.     image {
  38.       function        = BOX
  39.       state           = INSENSITIVE
  40.       detail          = "spinbutton_up"
  41.       overlay_file    = "assets/pan-up-alt-insensitive.png"
  42.       overlay_stretch = FALSE
  43.     }
  44.  
  45.     image {
  46.       function        = BOX
  47.       state           = NORMAL
  48.       detail          = "spinbutton_down"
  49.       overlay_file    = "assets/pan-down-alt.png"
  50.       overlay_stretch = FALSE
  51.     }
  52.  
  53.     image {
  54.       function        = BOX
  55.       state           = PRELIGHT
  56.       detail          = "spinbutton_down"
  57.       overlay_file    = "assets/pan-down.png"
  58.       overlay_stretch = FALSE
  59.     }
  60.  
  61.     image {
  62.       function        = BOX
  63.       state           = ACTIVE
  64.       detail          = "spinbutton_down"
  65.       overlay_file    = "assets/pan-down.png"
  66.       overlay_stretch = FALSE
  67.     }
  68.  
  69.     image {
  70.       function        = BOX
  71.       state           = INSENSITIVE
  72.       detail          = "spinbutton_down"
  73.       overlay_file    = "assets/pan-down-alt-insensitive.png"
  74.       overlay_stretch = FALSE
  75.     }
  76.   }
  77. }
  78.  
  79. style "chrome_gtk_frame" {
  80.   ChromeGtkFrame::frame-color                    = @titlebar_bg_color
  81.   ChromeGtkFrame::inactive-frame-color           = @titlebar_bg_color
  82.   ChromeGtkFrame::incognito-frame-color          = @titlebar_bg_color
  83.   ChromeGtkFrame::incognito-inactive-frame-color = @titlebar_bg_color
  84.  
  85.   ChromeGtkFrame::frame-gradient-size = 0
  86. }
  87.  
  88. # Disable spin button assets for GimpSpinScale
  89. class "GimpSpinScale" style "gimp_spin_scale"
  90.  
  91. # Chromium lets us define some colours and settings for better integration
  92. class "ChromeGtkFrame" style "chrome_gtk_frame"
  93.  
  94. #
  95. # (He)XChat
  96. #
  97.  
  98. style "chat-entry" {
  99.   xthickness = 4
  100.   ythickness = 4
  101.  
  102.   # enforce white backgrounds
  103.  bg[NORMAL] = @selected_fg_color
  104.   bg[PRELIGHT] = @selected_fg_color
  105.   bg[ACTIVE] = @selected_fg_color
  106.   bg[SELECTED] = @selected_bg_color
  107.  
  108.   engine "pixmap" {
  109.     image {
  110.       function = SHADOW
  111.       detail   = "entry"
  112.       file     = "assets/frame.png"
  113.       border   = { 1, 1, 1, 1 }
  114.       stretch  = TRUE
  115.     }
  116.     image {
  117.       function = FLAT_BOX
  118.       detail   = "entry_bg"
  119.       file     = "assets/null.png"
  120.       border   = { 0, 0, 0, 0 }
  121.       stretch  = TRUE
  122.     }
  123.   }
  124. }
  125.  
  126. widget "*xchat-inputbox" style "chat-entry"
  127. class "SexySpellEntry"   style:highest "chat-entry"

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN