Difference between revisions of "GUI Themes/Specs"

Jump to navigation Jump to search
9 bytes removed ,  13:40, 16 April 2006
m
(Update ToDo. Describe widget class properties)
Line 299: Line 299:
== What to do if I need to add new widgets to GUI ==
== What to do if I need to add new widgets to GUI ==


First thing to mention, is that all real GU behaviour is not described in theme config. Only thing which you can alter is look, not feel. So all real coding should go to correspondent files in gui/ directory.
First thing to mention, is that all real GU behaviour is not described in theme config. You can only alter the look, not the feel. So all real coding should go in corresponding files in gui/ directory.


When you add new widget, you should check it with following checklist before committing:
When you add a new widget, follow this checklist before committing:


* Does it look right in 320xY (./scummvm --force-1x-overlay)
* Does it look right in 320xY (./scummvm --force-1x-overlay)
** To do this you should either have no absolute positions in your config file or create [320xY] section
** To do this you should either have no absolute positions in your config file or create [320xY] section
* Does it look right with classic theme (./scummvm --gui-theme=classic)
* Does it look right with classic theme (./scummvm --gui-theme=classic)
** that is [XxY] section in gui/theme-config.cpp
** that is the [XxY] section in gui/theme-config.cpp
* Does it look right <u>both</u> with classic theme and 320xY resolution (./scummvm --force-1x-overlay --gui-theme=classic)
* Does it look right <u>both</u> with classic theme and 320xY resolution (./scummvm --force-1x-overlay --gui-theme=classic)
** that is [320xY] section in gui/theme-config.cpp
** that is the [320xY] section in gui/theme-config.cpp


Currently classic theme has following most notable differences from default theme:
Currently the classic theme has the following most notable differences from the modern theme:


* Line spacing everywhere is narrower
* Line spacing everywhere is narrower
* Indentation is lesser in most cases, besides in Game Options dialog
* Indentation is lesser in most cases, besides in Game Options dialog
68

edits

Navigation menu