PageRenderTime 22ms CodeModel.GetById 2ms app.highlight 16ms RepoModel.GetById 1ms app.codeStats 0ms

/examples_and_tutorials/data/gui/theme.py

http://pyggel.googlecode.com/
Python | 152 lines | 152 code | 0 blank | 0 comment | 0 complexity | c8b49e488a418abbc60546f8c5565fde MD5 | raw file
  1"Fonts":{ #create all the fonts the gui will use

  2    "default":{ #font "default"

  3        "fontfile":None, #None loads the system default, otherwise just make a .ttf file in the same dir

  4        "fontsize":32,#size

  5        "images":{"XD":"smiley.gif"} #embedded smileys!

  6        }
  7    },
  8"App":{}, #Theme stuff for Apps, nothing is used ;)

  9"Widget":{}, #idget, again, uses nothing because on it's own it does nothing!

 10"Frame":{ #Frame

 11    "size":(100,100), #default size for frames

 12    "background-image":"base.png" #background image for the frame

 13    },
 14"Label":{ #Label

 15    "font":"default", #what font to use?

 16    "text":"label...", #default text

 17    "background-image":"base.png",
 18    "font-color":(1,1,1,1), #font color

 19    "font-color-inactive":(1,1,1,.5), #font color when widget is inactive

 20    "font-underline":False, #underline text?

 21    "font-italic":False, #italicize text?

 22    "font-bold":False #bold text?

 23    },
 24"Button":{ #Button

 25    "font":"default",
 26    "text":"button...",
 27    "background-image":"base.png",
 28    "background-image-hover":"base.png", #different bg image for different states (regular, hover, click)

 29    "background-image-click":"base.png",
 30    "font-color":(1,1,1,1),
 31    "font-color-hover":(0,1,0,1), #different font color for different states

 32    "font-color-click":(1,0,0,1),
 33    "font-underline":False,
 34    "font-italic":False,
 35    "font-bold":False,
 36    "font-underline-hover":False, #different font attributes for different states

 37    "font-italic-hover":False,
 38    "font-bold-hover":False,
 39    "font-underline-click":False,
 40    "font-italic-click":False,
 41    "font-bold-click":False
 42    },
 43"Checkbox":{ #Checkbox

 44    "background-image":"check_open.png", #image when not checked

 45    "check-image":"check_closed.png" #image when checked

 46    },
 47"Radio":{ #Radio

 48    "font":"default",
 49    "background-image":"base.png",
 50    "option-background-image":"check_open.png", #background image for checkboxes

 51    "option-check-image":"check_closed.png", #check image for checkboxes

 52    "font-color":(1,1,1,1),
 53    "font-color-inactive":(1,1,1,.5),
 54    "font-underline":False,
 55    "font-italic":False,
 56    "font-bold":False
 57    },
 58"MultiChoiceRadio":{
 59    "font":"default",
 60    "background-image":"base.png",
 61    "option-background-image":"check_open.png",
 62    "option-check-image":"check_closed.png",
 63    "font-color":(1,1,1,1),
 64    "font-color-inactive":(1,1,1,.5),
 65    "font-underline":False,
 66    "font-italic":False,
 67    "font-bold":False
 68    },
 69"Input":{
 70    "font":"default",
 71    "text":"input...", #start text

 72    "width":100, #width of widget

 73    "background-image":"base.png",
 74    "font-color":(1,1,1,1),
 75    "font-color-inactive":(1,1,1,.5),
 76    "font-underline":False,
 77    "font-italic":False,
 78    "font-bold":False
 79    },
 80"MoveBar":{
 81    "font":"default",
 82    "font-color":(1,1,1,1),
 83    "font-color-inactive":(1,1,1,.5),
 84    "font-underline":False,
 85    "font-italic":False,
 86    "font-bold":False,
 87    "title":"Window...", #title of bar

 88    "width":100, #width of bar

 89    "background-image":"base.png"
 90    },
 91"Window":{
 92    "font":"default",
 93    "font-color":(1,1,1,1),
 94    "font-color-inactive":(1,1,1,.5),
 95    "font-underline":False,
 96    "font-italic":False,
 97    "font-bold":False,
 98    "size":(100,100), #size of Frame, and [0] is width of MoveBar

 99    "background-image":"base.png", #Frame background image

100    "movebar-background-image":"base.png" #MoveBar background image

101    },
102"Menu":{
103    "name":"menu...",
104    "font":"default",
105    "font-color":(1,1,1,1), #attributes for Button that activates menu

106    "font-color-hover":(0,1,0,1),
107    "font-color-click":(1,0,0,1),
108    "background-image":"base.png",
109    "background-image-hover":"base.png",
110    "background-image-click":"base.png",
111    "menu-background-image":"base.png", #background for menu frames

112    "option-background-image":"base.png", #attributes for each option (not sub-menu) button

113    "option-background-image-hover":"base.png",
114    "option-background-image-click":"base.png",
115    "option-font-color":(1,1,1,1),
116    "option-font-color-hover":(0,1,0,1),
117    "option-font-color-click":(1,0,0,1),
118    "sub-background-image":"base.png", #attributes for each option (only sub-menu) button

119    "sub-background-image-hover":"base.png",
120    "sub-background-image-click":"base.png",
121    "sub-icon":"menu_icon.png", #image for right/left arrows indicating sub-menu

122    "sub-font-color":(0,0,1,1),
123    "sub-font-color-hover":(0,1,1,1),
124    "sub-font-color-click":(1,1,0,1),
125    "font-underline":False,
126    "font-italic":False,
127    "font-bold":False,
128    "font-underline-hover":False,
129    "font-italic-hover":False,
130    "font-bold-hover":False,
131    "font-underline-click":False,
132    "font-italic-click":False,
133    "font-bold-click":False,
134    "option-font-underline":False,
135    "option-font-italic":False,
136    "option-font-bold":False,
137    "option-font-underline-hover":False,
138    "option-font-italic-hover":False,
139    "option-font-bold-hover":False,
140    "option-font-underline-click":False,
141    "option-font-italic-click":False,
142    "option-font-bold-click":False,
143    "sub-font-underline":True,
144    "sub-font-italic":False,
145    "sub-font-bold":False,
146    "sub-font-underline-hover":False,
147    "sub-font-italic-hover":False,
148    "sub-font-bold-hover":False,
149    "sub-font-underline-click":False,
150    "sub-font-italic-click":False,
151    "sub-font-bold-click":False
152    }