68
edits
(Update ToDo. Describe widget class properties) |
Salty-horse (talk | contribs) m (→What to do if I need to add new widgets to GUI: defualt->modern) |
||
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. | 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, | 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 | 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 |
edits