dotfiles

config files for my linux setup
git clone git://edryd.org/dotfiles
Log | Files | Refs | README

notebook-pixmap.rc (6272B)


      1 ##########################################
      2 # NOTEBOOK (TABS)	
      3 ##########################################
      4 style "notebook"
      5 {
      6 
      7 
      8 	GtkNotebook::tab-overlap 		= 0
      9 	GtkNotebook::tab-curvature 		= 6
     10 	xthickness    		        	= 4
     11 	ythickness    		        	= 3
     12 bg [NORMAL] = shade (0.95, @bg_color)
     13 	engine "pixmap" 
     14 	{
     15 		image
     16 		{
     17 			function		= FOCUS
     18 		}
     19 		# How to draw boxes with a gap on one side (ie the page of a notebook)
     20 		image 
     21 		{
     22 			function		= BOX_GAP
     23 			recolorable		= TRUE
     24 			file			= "Notebook/notebook-new.png" 
     25 			border			= { 10, 10, 10, 10}
     26 			stretch			= TRUE
     27 		}
     28 		image 
     29 		{
     30 			function		= BOX
     31 			recolorable		= TRUE
     32 			file			= "Notebook/notebook-new.png" 
     33 			border			= { 10, 10, 10, 10}
     34 			stretch			= TRUE
     35 		}
     36 		image
     37 		{
     38 			function		= ARROW
     39 			recolorable		= TRUE
     40 			overlay_file		= "Arrows/arrow-up.png"
     41 			overlay_border		= { 0, 0, 0, 0}
     42 			overlay_stretch		= FALSE
     43 			arrow_direction		= UP
     44 		}    
     45 		image
     46 		{
     47 			function		= ARROW
     48 			recolorable		= TRUE
     49 			overlay_file		= "Arrows/arrow-down.png"
     50 			overlay_border		= { 0, 0, 0, 0}
     51 			overlay_stretch		= FALSE
     52 			arrow_direction		= DOWN
     53 		}    
     54 		image
     55 		{
     56 			function		= ARROW
     57 			recolorable		= TRUE
     58 			overlay_file		= "Arrows/arrow-left.png"
     59 			overlay_border		= { 0, 0, 0, 0}
     60 			overlay_stretch		= FALSE
     61 			arrow_direction		= LEFT
     62 		}
     63 		image
     64 		{
     65 			function		= ARROW
     66 			recolorable		= TRUE
     67 			overlay_file		= "Arrows/arrow-right.png"
     68 			overlay_border		= { 0, 0, 0, 0}
     69 			overlay_stretch		= FALSE
     70 			arrow_direction		= RIGHT
     71 		}
     72 image
     73 		{
     74 			function		= FOCUS
     75 		}
     76 		image 
     77 		{
     78 			function		= EXTENSION
     79 			recolorable		= TRUE
     80 			state			= ACTIVE
     81 			file			= "Notebook/tab-inactive.png"
     82 			border			= { 10, 10, 10, 10}
     83 			stretch			= TRUE
     84 			gap_side		= TOP
     85 		}
     86 		image 
     87 		{
     88 			function		= EXTENSION
     89 			recolorable		= TRUE
     90 			state			= ACTIVE
     91 			file			= "Notebook/tab-inactive.png"
     92 			border			= { 10, 10, 10, 10}
     93 			stretch			= TRUE
     94 			gap_side		= BOTTOM
     95 		}
     96 		image 
     97 		{
     98 			function		= EXTENSION
     99 			recolorable		= TRUE
    100 			state			= ACTIVE
    101 			file			= "Notebook/tab-inactive.png"
    102 			border			= { 10, 10, 10, 10}
    103 			stretch			= TRUE
    104 			gap_side		= RIGHT
    105 		}
    106 		image 
    107 		{
    108 			function		= EXTENSION
    109 			recolorable		= TRUE
    110 			state			= ACTIVE
    111 			file			= "Notebook/tab-inactive.png"
    112 			border			= { 10, 10, 10, 10}
    113 			stretch			= TRUE
    114 			gap_side		= LEFT
    115 		}	
    116 		image 
    117 		{
    118 			function		= EXTENSION
    119 			recolorable		= TRUE
    120 			file			= "Notebook/tab-active.png"
    121 			border			= { 10, 10, 10, 10}
    122 			stretch			= TRUE
    123 			gap_side		= BOTTOM
    124 		}
    125 		image 
    126 		{
    127 			function		= EXTENSION
    128 			recolorable		= TRUE
    129 			file			= "Notebook/tab-active.png"
    130 			border			= { 10, 10, 10, 10}
    131 			stretch			= TRUE
    132 			gap_side		= TOP
    133 		}
    134 		image 
    135 		{
    136 			function		= EXTENSION
    137 			recolorable		= TRUE
    138 			file			= "Notebook/tab-active.png"
    139 			border			= { 10, 10, 10, 10}
    140 			stretch			= TRUE
    141 			gap_side		= RIGHT
    142 		}
    143 		image 
    144 		{
    145 			function		= EXTENSION
    146 			recolorable		= TRUE
    147 			file			= "Notebook/tab-active.png"
    148 			border			= { 10, 10, 10, 10}
    149 			stretch			= TRUE
    150 			gap_side		= LEFT
    151 		}
    152 	}
    153 }
    154 
    155 style "notebook_bg" 
    156 {
    157 	xthickness				= 1
    158 	ythickness				= 1
    159 
    160 	bg[NORMAL] 				= shade (0.95, @bg_color)
    161 	bg[ACTIVE] 				= shade (0.97, @bg_color)
    162 	fg[ACTIVE] 				= mix (0.8, @fg_color, shade (0.97, @bg_color))
    163 
    164 }
    165 
    166 
    167 style "notebook-border" = "notebook"
    168 {
    169 
    170 	engine "pixmap" 
    171 	{
    172 		image 
    173 		{
    174 			function		= BOX_GAP
    175 			recolorable		= TRUE
    176 			file			= "Notebook/notebook-blank.png" 
    177 			border			= { 10, 10, 10, 10}
    178 			stretch			= TRUE
    179 		}
    180 		image 
    181 		{
    182 			function		= BOX
    183 			recolorable		= TRUE
    184 			file			= "Notebook/notebook-blank.png" 
    185 			border			= { 10, 10, 10, 10}
    186 			stretch			= TRUE
    187 		}
    188 	}
    189 }
    190 style "gedit-frame"
    191 {	
    192 xthickness = 1
    193 ythickness = 1
    194 }
    195 
    196 
    197 
    198 
    199 style "gtk-frame" = "default"
    200 {
    201 
    202     xthickness = 6
    203     ythickness = 3
    204     engine "pixmap"
    205     {
    206           image
    207           {
    208 			function		= SHADOW
    209 			recolorable		= TRUE
    210 	    		file			= ""
    211 			border			= { 5, 5, 5, 6}
    212 			stretch			= TRUE
    213           }
    214 
    215          image
    216           {
    217 	    		function		= SHADOW_GAP
    218 			shadow			= ETCHED_IN
    219 	    		recolorable		= TRUE
    220 	    		file			= "Notebook/frame.png"
    221 	    		border			= { 4, 4, 6, 0}
    222 	    		stretch			= TRUE
    223 	    		gap_start_file		= "Notebook/frame-gap-start.png"
    224 	    		gap_start_border	= { 7, 0, 6, 0}
    225 	    		gap_end_file		= "Notebook/frame-gap-end.png"
    226 	    		gap_end_border		= { 0, 7, 6, 0}
    227 	    		gap_side		= TOP
    228           }
    229     }
    230 }
    231 style "gtk-viewport" = "default"
    232 {
    233 
    234     xthickness = 6
    235     ythickness = 3
    236     engine "pixmap"
    237     {
    238           image
    239           {
    240 			function		= SHADOW
    241 			recolorable		= TRUE
    242 	    		file			= "Notebook/frame-new.png"
    243 			border			= { 5, 5, 5, 6}
    244 			stretch			= TRUE
    245           }
    246     }
    247 }
    248 
    249 style "gtk-noframe" = "gtk-frame"
    250 {
    251 
    252     xthickness = 1
    253     ythickness = 1
    254  
    255 }
    256 
    257 
    258 ##########################################
    259 # MATCHES	
    260 ##########################################
    261 widget_class "*.<GtkNotebook>"			style "notebook"
    262 widget_class "*.<GtkNotebook>*<GtkEventBox>" 	style "notebook_bg"
    263 widget_class "*.<GtkNotebook>*<GtkDrawingArea>" 	style "notebook_bg"
    264 widget_class "*.<GtkNotebook>*<GtkLayout>" 	style "notebook_bg"
    265 widget_class "*.<GtkNotebook>*<GtkLabel>" 		style "notebook_bg"
    266 widget_class "*Nautilus*<GtkNotebook>"		style "notebook-border"
    267 widget_class "*Gedit*<GtkNotebook>"		style "notebook-border"
    268 
    269 #widget_class "*Gedit*.<GtkFrame>*"  	   		style "gedit-frame" # STATUS
    270 #widget_class "*Gedit*.<GtkNotebook>"     		style "gedit-frame"
    271 #widget_class "*Gedit*.<GtkScrolledWindow>"     	style "gedit-frame"
    272 
    273 widget_class "*.<GtkFrame>" 			style:highest "gtk-frame"
    274 widget_class "*.<GtkButton>*<GtkFrame>" 		style:highest "gtk-noframe"
    275 widget_class "*.<GtkViewport>" 			style:highest "gtk-viewport"
    276 
    277 
    278 ##########################################
    279 # SCROLLED WINDOW
    280 ##########################################
    281 style "scrolledwindow-raised" = "default"
    282 {
    283 
    284     xthickness = 2
    285     ythickness = 3
    286     GtkScrolledWindow ::scrollbars-within-bevel = 0
    287     GtkScrolledWindow ::scrollbar-spacing = 3
    288 
    289     engine "pixmap"
    290     {
    291           image
    292           {
    293                 function = SHADOW
    294                 file = "Notebook/scrolled.png"
    295                 border = {8, 8, 8, 8}
    296                 detail = "scrolled_window"
    297           }
    298     }
    299 }
    300 
    301 widget_class "*.<GtkScrolledWindow>" 		style:highest "scrolledwindow-raised"