home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / themes / Dust / gtk-2.0 / scrollbars / scrollbar.rc next >
Encoding:
Text File  |  2009-03-11  |  8.8 KB  |  331 lines

  1. ################################################################################
  2. # SCROLLBAR
  3. ################################################################################
  4.  
  5. style "scrollbar"
  6. {
  7.     # The values I set here have to do with the relative size of three graphic elements
  8.     # I have used: the slider, the arrow box, and the trough. They all have the same width
  9.     # of 15 pixels, but gtk wants to put in some spacing between them. It seems like it
  10.     # places the sliders inside the trough with a default 1 pixel border on either side of the slider,
  11.     # so that the trough has its width stretched by an additional two pixels(?). Setting the
  12.     # trough border makes the arrow box sit on top of the trough squarely, by making sure that
  13.     # the trough stays the same width as the arrowbox(?). I could be totally wrong here.
  14.     GtkRange::trough_border = 0
  15.     GtkRange::slider_width = 17
  16.  
  17.     # This sets the size of the steppers (arrow buttons on the end of the scrollbar). 
  18.     # The image I am using is 15x15 pixels, and if I dont set this a one pixel line 
  19.     # gets cut off of the top of the "up" stepper.
  20.     GtkRange::stepper_size = 17
  21.  
  22.     # Set a minimum length for the slider. Since I set the border on the slider 
  23.     # image to 15 pixels on either end of the slider I want the min length to be 
  24.     # at least 30 pixels to avoid an ugly slider when gtk wants to make it smaller 
  25.     # than 30 pixels.
  26.     GtkScrollbar::min_slider_length = 30
  27.  
  28.     engine "pixmap" 
  29.     {
  30.         # Horizontal slider background
  31.         image 
  32.         {
  33.             function        = BOX
  34.             recolorable     = TRUE
  35.             detail          = "trough"
  36.             file            = "scrollbars/trough-scrollbar-horiz.png"
  37.             border          = { 30, 30, 0, 0 }
  38.             stretch         = TRUE
  39.             orientation     = HORIZONTAL
  40.         }
  41.         
  42.         # Vertical slider background
  43.         image 
  44.         {
  45.             function        = BOX
  46.             recolorable     = TRUE
  47.             detail          = "trough"
  48.             file            = "scrollbars/trough-scrollbar-vert.png"
  49.             border          = { 0, 0, 30, 30 }
  50.             stretch         = TRUE
  51.             orientation     = VERTICAL
  52.         }
  53.  
  54.         # Normal horizontal slider
  55.         image 
  56.         {
  57.             function        = SLIDER
  58.             recolorable     = TRUE
  59.             state           = NORMAL
  60.             file            = "scrollbars/slider-horiz.png"
  61.             border          = { 15, 15, 6, 6 }
  62.             stretch         = TRUE
  63.             orientation     = HORIZONTAL
  64.         }
  65.         
  66.         # Horizontal slider (active)
  67.         image 
  68.         {
  69.             function        = SLIDER
  70.             recolorable     = TRUE
  71.             state           = ACTIVE
  72.             file            = "scrollbars/slider-horiz-prelight.png"
  73.             border          = { 15, 15, 6, 6 }
  74.             stretch         = TRUE
  75.             orientation     = HORIZONTAL
  76.         }
  77.  
  78.         # Horizontal slider (mouse over)
  79.         image 
  80.         {
  81.             function        = SLIDER 
  82.             recolorable     = TRUE
  83.             state           = PRELIGHT
  84.             file            = "scrollbars/slider-horiz-prelight.png"
  85.             border          = { 15, 15, 6, 6 }
  86.             stretch         = TRUE
  87.             orientation     = HORIZONTAL
  88.         }
  89.         
  90.         # Horizontal slider (Insesitive)
  91.         image 
  92.         {
  93.             function        = SLIDER 
  94.             recolorable     = TRUE
  95.             state           = INSENSITIVE
  96.             file            = "scrollbars/slider-horiz.png"
  97.             border          = { 15, 15, 6, 6 }
  98.             stretch         = TRUE
  99.             orientation     = HORIZONTAL
  100.         }
  101.  
  102.         # Normal vertical slider
  103.         image 
  104.         {
  105.             function        = SLIDER
  106.             recolorable     = TRUE
  107.             state           = NORMAL
  108.             file            = "scrollbars/slider-vert.png"
  109.             border          = { 6, 6, 15, 15 }
  110.             stretch         = TRUE
  111.             orientation     = VERTICAL
  112.         }
  113.         
  114.         # Vertical slider (Active)
  115.         image 
  116.         {
  117.             function        = SLIDER
  118.             recolorable     = TRUE
  119.             state           = ACTIVE
  120.             file            = "scrollbars/slider-vert.png"
  121.             border          = { 6, 6, 15, 15 }
  122.             stretch         = TRUE
  123.             orientation     = VERTICAL
  124.         }
  125.  
  126.         # Vertical slider (mouse over)
  127.         image 
  128.         {
  129.             function        = SLIDER 
  130.             recolorable     = TRUE
  131.             state           = PRELIGHT
  132.             file            = "scrollbars/slider-vert-prelight.png"
  133.             border          = { 6, 6, 15, 15 }
  134.             stretch         = TRUE
  135.             orientation     = VERTICAL
  136.         }
  137.         
  138.         # Vertical slider (Insesitive)
  139.         image 
  140.         {
  141.             function        = SLIDER 
  142.             recolorable     = TRUE
  143.             state           = INSENSITIVE
  144.             file            = "scrollbars/slider-vert-prelight.png"
  145.             border          = { 6, 6, 15, 15 }
  146.             stretch         = TRUE
  147.             orientation     = VERTICAL
  148.         }
  149.  
  150. ################################################################################
  151. # SCROLLBAR STEPPERS
  152. ################################################################################
  153.  
  154.     # Up
  155.     image 
  156.     {
  157.       function            = STEPPER
  158.       recolorable        = TRUE
  159.       state                = NORMAL
  160.       file                = "scrollbars/stepper-up.png"
  161.       #border            = { 2, 2, 2, 2 }
  162.       stretch            = TRUE
  163.       arrow_direction    = UP
  164.     }
  165.      image 
  166.     {
  167.       function            = STEPPER
  168.       recolorable        = TRUE
  169.       state                = PRELIGHT
  170.       file                = "scrollbars/stepper-up.png"
  171.       #border            = { 12, 2, 2, 9 }
  172.       stretch            = TRUE
  173.       arrow_direction    = UP
  174.     }
  175.  image 
  176.     {
  177.       function            = STEPPER
  178.       recolorable        = TRUE
  179.       state                = ACTIVE
  180.       file                = "scrollbars/stepper-up.png"
  181.       #border            = { 12, 2, 2, 9 }
  182.       stretch            = TRUE
  183.       arrow_direction    = UP
  184.     }
  185.  image 
  186.     {
  187.       function            = STEPPER
  188.       recolorable        = TRUE
  189.       state                = INSENSITIVE
  190.       file                = "scrollbars/stepper-up.png"
  191.       #border            = { 12, 2, 2, 9 }
  192.       stretch            = TRUE
  193.       arrow_direction    = UP
  194.     }
  195.  
  196.  ######### DOWN ############
  197.  
  198.  
  199.     image 
  200.     {
  201.       function            = STEPPER
  202.       recolorable        = TRUE
  203.       state                = NORMAL
  204.       file                = "scrollbars/stepper-down.png"
  205.       #border            = { 12, 2, 10, 2 }
  206.       stretch            = TRUE
  207.       arrow_direction    = DOWN
  208.     }
  209.  image 
  210.     {
  211.       function            = STEPPER
  212.       recolorable        = TRUE
  213.       state                = PRELIGHT
  214.       file                = "scrollbars/stepper-down.png"
  215.       #border            = { 12, 2, 10, 2 }
  216.       stretch            = TRUE
  217.       arrow_direction    = DOWN
  218.     }
  219.  image 
  220.     {
  221.       function            = STEPPER
  222.       recolorable        = TRUE
  223.       state                = ACTIVE
  224.       file                = "scrollbars/stepper-down.png"
  225.       #border            = { 12, 2, 10, 2 }
  226.       stretch            = TRUE
  227.       arrow_direction    = DOWN
  228.     }
  229.  image 
  230.     {
  231.       function            = STEPPER
  232.       recolorable        = TRUE
  233.       state                = INSENSITIVE
  234.       file                = "scrollbars/stepper-down.png"
  235.       #border            = { 12, 2, 10, 2 }
  236.       stretch            = TRUE
  237.       arrow_direction    = DOWN
  238.     }
  239.  
  240. ############ RIGHT ################
  241.  
  242.     image 
  243.     {
  244.       function            = STEPPER
  245.       recolorable        = TRUE
  246.       state                = NORMAL
  247.       file                = "scrollbars/stepper-right.png"
  248.       #border            = { 2, 9, 2, 13 }
  249.       stretch            = TRUE
  250.       arrow_direction    = RIGHT
  251.     }
  252.  image 
  253.     {
  254.       function            = STEPPER
  255.       recolorable        = TRUE
  256.       state                = PRELIGHT
  257.       file                = "scrollbars/stepper-right.png"
  258.       #border            = { 2, 9, 2, 13 }
  259.       stretch            = TRUE
  260.       arrow_direction    = RIGHT
  261.     }
  262.  image 
  263.     {
  264.       function            = STEPPER
  265.       recolorable        = TRUE
  266.       state                = ACTIVE
  267.       file                = "scrollbars/stepper-right.png"
  268.       #border            = { 2, 9, 2, 13 }
  269.       stretch            = TRUE
  270.       arrow_direction    = RIGHT
  271.     }
  272.  image 
  273.     {
  274.       function            = STEPPER
  275.       recolorable        = TRUE
  276.       state                = INSENSITIVE
  277.       file                = "scrollbars/stepper-right.png"
  278.       #border            = { 2, 9, 2, 13 }
  279.       stretch            = TRUE
  280.       arrow_direction    = RIGHT
  281.     }
  282.  
  283. ############### LEFT ###################
  284.  
  285.  
  286.     image 
  287.     {
  288.       function            = STEPPER
  289.       recolorable        = TRUE
  290.       state                = NORMAL
  291.       file                = "scrollbars/stepper-left.png"
  292.       #border            = { 2, 9, 2, 13 }
  293.       stretch            = TRUE
  294.       arrow_direction    = LEFT
  295.     }
  296.   image 
  297.     {
  298.       function            = STEPPER
  299.       recolorable        = TRUE
  300.       state                = PRELIGHT
  301.       file                = "scrollbars/stepper-left.png"
  302.       #border            = { 2, 9, 2, 13 }
  303.       stretch            = TRUE
  304.       arrow_direction    = LEFT
  305.     }
  306.   image 
  307.     {
  308.       function            = STEPPER
  309.       recolorable        = TRUE
  310.       state                = ACTIVE
  311.       file                = "scrollbars/stepper-left.png"
  312.       #border            = { 2, 9, 2, 13 }
  313.       stretch            = TRUE
  314.       arrow_direction    = LEFT
  315.     }
  316.   image 
  317.     {
  318.       function            = STEPPER
  319.       recolorable        = TRUE
  320.       state                = INSENSITIVE
  321.       file                = "scrollbars/stepper-left.png"
  322.       #border            = { 2, 9, 2, 13 }
  323.       stretch            = TRUE
  324.       arrow_direction    = LEFT
  325.     }
  326.       }
  327. }
  328. class "GtkScrollbar"               style "scrollbar"
  329. class "GtkHScrollbar"           style "scrollbar"
  330. class "GtkVScrollbar"           style "scrollbar"
  331.