27 Commits

Author SHA1 Message Date
Torbjörn Andersson
2cb8832991 Fixed redraw glitch. Our editable widgets were asking the theme to draw a very
wide caret. Changed that width to 1.

svn-id: r20842
2006-02-24 20:25:34 +00:00
Torbjörn Andersson
66b5b7b3f3 Cleanup.
svn-id: r20841
2006-02-24 19:38:16 +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
Eugene Sandulenko
aae00f629c Change behaviour of checkboxes to more logical.
svn-id: r20416
2006-02-05 18:46:51 +00:00
Paweł Kołodziejski
2ebdbbf5e0 fixes allow compile with emsvc4 again
svn-id: r20355
2006-02-03 07:30:29 +00:00
Torbjörn Andersson
d6e141cc35 Fix glitch when moving the mouse over a disabled, checked checkbox. (The
check mark would become brighter, and I think it was because a transparent
mark was drawn over a transparent mark, thus "amplifying" it.)

svn-id: r20344
2006-02-01 22:39:54 +00:00
Eugene Sandulenko
12133dfb4f Much improved how shadows look. However it is done with a really dirty
hack as tehre is lots of overdraw, abuse of shadow width and code
duplication. Anyway shadow drawing code will go to separate functioMuch improved how shadows look. However it is done with a really dirty
hack as tehre is lots of overdraw, abuse of shadow width and code
duplication. Anyway shadow drawing code will go to separate function.

svn-id: r20343
2006-02-01 16:42:42 +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
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
Torbjörn Andersson
484fca6549 Tabs look better with dialog surfaces than with widget surfaces. There's
still room for improvements, though...

svn-id: r20330
2006-01-31 09:45:36 +00:00
Torbjörn Andersson
74dd2e133d I didn't realize that disabled widgets were transparent, rather than just
faded. In those cases, I guess the background should be restored before
drawing. But that can probably be done in the drawSurface / drawRect
functions instead, like this.

svn-id: r20329
2006-01-31 08:41:51 +00:00
Torbjörn Andersson
9246a7a532 I assume this call to restoreBackground() is unnecessary.
svn-id: r20328
2006-01-31 08:03:21 +00:00
Chris Apers
afaf1d0ab9 Replace use of sscanf
svn-id: r20311
2006-01-30 19:02:33 +00:00
Johannes Schickel
e5e7587443 Ok this should fix now all problems with drawing bugs of texts.
svn-id: r20298
2006-01-29 16:12:59 +00:00
Johannes Schickel
7eaa5b99b5 Fixes redraw bugs with the about dialog and the new theme.
svn-id: r20297
2006-01-29 15:07:03 +00:00
Johannes Schickel
f509762f99 Fixes transparency and enabled transparency for disabled buttons.
svn-id: r20295
2006-01-29 12:41:58 +00:00
Johannes Schickel
f404f6ffaf Changed calcGradient again, should look nicer now.
svn-id: r20280
2006-01-28 23:56:12 +00:00
Johannes Schickel
8776ea6d18 Fixes a bug while loading the theme config from the zip file (now the caret should be black).
svn-id: r20277
2006-01-28 23:11:52 +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
Johannes Schickel
0a40639af2 This should fix bug # 1416862 (new theme: changing overlay size).
svn-id: r20253
2006-01-27 23:13:51 +00:00
Eugene Sandulenko
095199da54 Proper RCS IDs.
svn-id: r20235
2006-01-27 19:04:15 +00:00
Eugene Sandulenko
118ce529b1 Fix crash on platforms which do not initialize memory with zeroes.
svn-id: r20234
2006-01-27 19:01:02 +00:00
Paweł Kołodziejski
4938b93f34 fixed warning
svn-id: r20231
2006-01-27 16:46:56 +00:00
Johannes Schickel
1f7bd7a726 Oops forgot to change calcColor to calcGradient before commiting.
svn-id: r20230
2006-01-27 15:59:29 +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