Commit Graph

20 Commits

Author SHA1 Message Date
Johannes Schickel
d0b8efd575 - moves some code in ThemeNew.cpp (calcGradient and calcAlpha to the bottom)
- added possibility to use a shading effect on inactive dialogs (luminance and dim are builtin, and special ablility to specifiy a own expression, evaluated via the evaluator)
- adds also a color cache (atm it's generated on startup)
- uses luminance effect by default
- bumps theme config version to 7

svn-id: r21544
2006-04-02 00:56:21 +00:00
Max Horn
08ad918af6 Reduce (indirect) dependencies on gui/eval.h (and thus common/assocarray.h) to a minimum
svn-id: r21426
2006-03-24 14:15:45 +00:00
Eugene Sandulenko
c9970b78b5 Rearrange launcher.
Logo is still shown weirdly.

svn-id: r21268
2006-03-14 02:19:38 +00:00
Lars Persson
96e87cdfe7 Moved typedef Common::String into class declaration.
svn-id: r21187
2006-03-09 22:40:21 +00:00
Eugene Sandulenko
a8a8624511 o Converted most (all?) widgets to new scheme.
o Converted global options dialog to new scheme.

svn-id: r21137
2006-03-08 01:42:02 +00:00
Eugene Sandulenko
fc84c7fc1d o More widgets fot alternative constructors
o Cleanup of launcher dialog
o Implemented useWithPrefix keyword

svn-id: r21131
2006-03-07 19:02:42 +00:00
Eugene Sandulenko
018c93b14a More work on customizable GUI.
o Implemented special alias 'prev'
o Added new calling scheme to several widgets
o Partially converted launcher dialog to new scheme
o Converted couple widgets of chooser dialog

svn-id: r21118
2006-03-07 05:39:52 +00:00
Eugene Sandulenko
ebd5833335 WIP for arbitrary widget positions. See
http://wiki.scummvm.org/index.php/GUI_Themes
Code is not yet used.

svn-id: r21115
2006-03-07 03:31:31 +00:00
Johannes Schickel
4fb6c18f0e Oops, fixes problems with disabled widgets (they need full drawn shadows).
svn-id: r21083
2006-03-04 21:25:11 +00:00
Johannes Schickel
91fbb6b7ae Improved shadow drawing (it's faster now since it doesn't draw the whole rect like before)
'cleaned up' the drawSurfaceMasked function a bit.

svn-id: r21082
2006-03-04 20:45:59 +00:00
Johannes Schickel
6010d48a8e Removed colorToRGB and RGBToColor calls when calculating alpha
and disabled the complete new theme if 'DISABLE_FANCY_THEMES' is defined.

svn-id: r21078
2006-03-04 18:34:28 +00:00
Johannes Schickel
e067a7f288 Implemented new tab drawing, should look nicer now. (The border under the active tab isn't drawn anymore)
svn-id: r20669
2006-02-13 18:00:04 +00:00
Max Horn
b34e207dbb Change CVS keywords to SVN keywords
svn-id: r20518
2006-02-11 10:08:56 +00:00
Johannes Schickel
129e7846b5 Implemented shadow drawing, also extended the theme config again
(new color entries for highlighted buttons and for other widgets).
Also added a 'highlight' check to the CheckBox widget.
Changed the PopUpDialog to use a shadow around itself.

svn-id: r20341
2006-02-01 15:11:39 +00:00
Johannes Schickel
da9b8d71ae Fixes color bugs with the new theme when switching to fullscreen on Mac OS X.
svn-id: r20338
2006-01-31 21:31:31 +00:00
Johannes Schickel
669f86705d Implements the usage of cached backgrounds in the old theme as well,
that should fix redrawing bugs with the about dialog.
Also I displayed cached background usage in the console for now, since
it produces redraw bugs with the old theme (maybe someone with knowledge how
redrawing of that dialog is handled should look at that).

svn-id: r20337
2006-01-31 20:19:47 +00:00
Johannes Schickel
1976ac6250 Adds more configureable options to the config file of the new theme,
also update the default theme zip file for that.
Also it changes the way the tab buttons get drawn, now they have
only rounded corners at the top.

svn-id: r20336
2006-01-31 19:35:33 +00:00
Johannes Schickel
5fda0cc6f1 - Fixes a bug that the debugger crashed while opening
- Changed gradient calculating
- added background saving for all dialog/widget backgrounds for now (change that later maybe)
- changed ScummDialog to use the colors of our launcher dialog

svn-id: r20276
2006-01-28 23:03:39 +00:00
Eugene Sandulenko
095199da54 Proper RCS IDs.
svn-id: r20235
2006-01-27 19:04:15 +00:00
Johannes Schickel
5051b080a2 - adds the new gui renderer also a new implementation for the classic gui
- adds a ImageMan and ImageDec class for loading and managing image files
 - adds a loader for zip files which is used by the new theme and the image manager
 - changes the widgets to use the new gui code
 - changes the scumm dialogs to use the new gui code
 - fixes a #include problem in the sky debugger with the new gui code

 To use the new gui copy gui/themes/default-theme.zip to your extrapath.
If the theme zip can not be found the gui will fallback to the classic theme.
If you want to change the gui styles use "gui_theme=classic" for the classic theme
and "gui_theme=default-theme" for the new theme.

Thanks to eriktorbjorn for testing and help with the new theme and to sev for
reviewing this patch.

svn-id: r20227
2006-01-27 15:43:23 +00:00