Open main menu

Difference between revisions of "GUI Themes/Specs"

723 bytes added ,  18:49, 30 May 2006
Update with new additions
(Added font constants)
(Update with new additions)
Line 102: Line 102:
  ListWidget.hlRightPadding=0                                                     
  ListWidget.hlRightPadding=0                                                     


''leftPadding'', ''rightPadding'', ''topPadding'' and ''bottomPadding'' specify list contents (text) padding from widget endges. Default values are 0.
''leftPadding'', ''rightPadding'', ''topPadding'' and ''bottomPadding'' specify list contents (text) padding from widget edges. Default values are 0.


''hlLeftPadding'', ''hlRightPadding'' specify padding of selected text highlight, i.e. green bar in ''modern'' theme. Default values are 0.
''hlLeftPadding'', ''hlRightPadding'' specify padding of selected text highlight, i.e. green bar in ''modern'' theme. Default values are 0.
Line 109: Line 109:
This is drop-down list used to select one item out of several. In inactive state it displays only selected item.
This is drop-down list used to select one item out of several. In inactive state it displays only selected item.
  PopUpWidget.leftPadding=7                                                       
  PopUpWidget.leftPadding=7                                                       
  PopUpWidget.rightPadding=7
  PopUpWidget.rightPadding=5
PopUpWidget.labelSpacing=3


''leftPadding'' and ''rightPadding'' specify list contents (text) padding from widget endges. Default values are 0.
''leftPadding'' and ''rightPadding'' specify list contents (text) padding from widget endges. Default values are 0.
''labelSpacing'' is used to specify space between text label and widget itself.


==== EditTextWidget ====
==== EditTextWidget ====
This is editable text.
This is editable text.
  EditTextWidget.leftPadding=7                                                       
  EditTextWidget.leftPadding=7                                                       
  EditTextWidget.rightPadding=7
  EditTextWidget.rightPadding=5
EditTextWidget.font=kFontStyleNormal


''leftPadding'' and ''rightPadding'' specify list contents (text) padding from widget endges. Default values are 0.
''leftPadding'' and ''rightPadding'' specify list contents (text) padding from widget endges. Default values are 0.
''font'' is used to specify font used by the widget.


==== Console ====
==== Console ====
This is our debug console
This is our debug console
  Console.font=kFontStyleFixedNormal
Console.font=kFontStyleFixedNormal
Console.leftPadding=7
Console.rightPadding=5
Console.topPadding=5
Console.bottomPadding=5
 
''font'' is used to specify font for console. Note, that console uses fixed font.
 
''leftPadding'', ''rightPadding'', ''topPadding'' and ''bottomPadding'' specify console contents (text) padding from widget edges. Default values are 0.


Specify font for console. Note, that console uses fixed font.


=== Special variables ===
=== Special variables ===
Line 195: Line 208:


In this example for 320xY resolution chooser_headline and chooser_list will be loaded from [640xY] section, though buttonHeight and kLineHeight will be different. listW will get the value.
In this example for 320xY resolution chooser_headline and chooser_list will be loaded from [640xY] section, though buttonHeight and kLineHeight will be different. listW will get the value.
=== USEASIS keyword ===
Same as USE keyword above but without def_ valuse skipped. Used for weird resolution alisase
Example:
  # MM NES resolution
  [256x240]
  useAsIs=320xY


=== USEWITHPREFIX keyword ===
=== USEWITHPREFIX keyword ===
Line 216: Line 238:


   [XxY]
   [XxY]
   skipFor=320xY
   skipFor=320xY,256x240
   def_blah=22
   def_blah=22


In above case section [XxY] will not be loaded for 320x200 or 320x240 resolutions.
In above case section [XxY] will not be loaded for 320x200, 320x240 or 256x240 resolutions. No spaces are allowed in specified value, only [0-9XxYx,]


=== Modern Theme configuration ===
=== Modern Theme configuration ===