aboutsummaryrefslogtreecommitdiff
path: root/gui/ThemeNew.cpp
AgeCommit message (Collapse)Author
2006-04-12- some little clean upsJohannes Schickel
- improves speed of the dimming effect (get's rid of divisions in favour of shifts) - improves speed of calcGradient (nearlly twice as fast in my tests now) svn-id: r21817
2006-04-11Checks if something is drawn out of the screen in drawSurfaceMasked (fixes ↵Johannes Schickel
crashes with --force-1x-overlay) svn-id: r21794
2006-04-11- cleans up drawSurfaceMasked a little bitJohannes Schickel
- get rid of getColorAlpha in drawSurfaceMasked if no alpha blending is used svn-id: r21792
2006-04-11Changed drawScrollbar to use drawShadow.Johannes Schickel
svn-id: r21791
2006-04-10Implements saving the color cache to a file (much faster startup for custom ↵Johannes Schickel
effect + less memory while gui isn't shown) svn-id: r21766
2006-04-02With this change, backends are now responsible for instantiating their ↵Max Horn
OSystem class before calling scummvm_main (Note: PalmOS and Symbian are not yet converted, and won't work currently) svn-id: r21557
2006-04-02- moves some code in ThemeNew.cpp (calcGradient and calcAlpha to the bottom)Johannes Schickel
- 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-03-25- Revert my last change with moving addDefaultDirectory() from TheneNew.cppEugene Sandulenko
- Removed locking of further directory adds because it did not work for themes. svn-id: r21452
2006-03-25- Move AddDefaultDirectory() calls in somon engine to constructorEugene Sandulenko
- Move AddDefaultDirectory() from NewTheme.cpp to main.cpp svn-id: r21451
2006-03-24Fix chechbox label alignment.Eugene Sandulenko
svn-id: r21433
2006-03-24o Rearranged options dialogEugene Sandulenko
o Made button corners less round to match mock-ups svn-id: r21423
2006-03-24Bump theme version numberEugene Sandulenko
svn-id: r21421
2006-03-21Fix bug #1455213: "GUI: ExtraPath won't display" and turn theme versionEugene Sandulenko
into #define. svn-id: r21395
2006-03-20Updates the config version for the new theme to 4 in the warning which is ↵Johannes Schickel
printed if the version is too low. svn-id: r21393
2006-03-20Bump theme config version number to avod confusion. A key was added there,Eugene Sandulenko
but I didn't bump it last time. svn-id: r21391
2006-03-14Fix logo drawing.Eugene Sandulenko
svn-id: r21269
2006-03-14Rearrange launcher.Eugene Sandulenko
Logo is still shown weirdly. svn-id: r21268
2006-03-07WIP for arbitrary widget positions. SeeEugene Sandulenko
http://wiki.scummvm.org/index.php/GUI_Themes Code is not yet used. svn-id: r21115
2006-03-04Oops, fixes problems with disabled widgets (they need full drawn shadows).Johannes Schickel
svn-id: r21083
2006-03-04Improved shadow drawing (it's faster now since it doesn't draw the whole ↵Johannes Schickel
rect like before) 'cleaned up' the drawSurfaceMasked function a bit. svn-id: r21082
2006-03-04Removed colorToRGB and RGBToColor calls when calculating alphaJohannes Schickel
and disabled the complete new theme if 'DISABLE_FANCY_THEMES' is defined. svn-id: r21078
2006-02-24Fixed redraw glitch. Our editable widgets were asking the theme to draw a veryTorbjörn Andersson
wide caret. Changed that width to 1. svn-id: r20842
2006-02-24Cleanup.Torbjörn Andersson
svn-id: r20841
2006-02-13Implemented new tab drawing, should look nicer now. (The border under the ↵Johannes Schickel
active tab isn't drawn anymore) svn-id: r20669
2006-02-11Change CVS keywords to SVN keywordsMax Horn
svn-id: r20518
2006-02-05Change behaviour of checkboxes to more logical.Eugene Sandulenko
svn-id: r20416
2006-02-03fixes allow compile with emsvc4 againPaweł Kołodziejski
svn-id: r20355
2006-02-01Fix glitch when moving the mouse over a disabled, checked checkbox. (TheTorbjörn Andersson
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-01Much improved how shadows look. However it is done with a really dirtyEugene Sandulenko
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-01Implemented shadow drawing, also extended the theme config againJohannes Schickel
(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-01-31Fixes color bugs with the new theme when switching to fullscreen on Mac OS X.Johannes Schickel
svn-id: r20338
2006-01-31Adds more configureable options to the config file of the new theme,Johannes Schickel
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-31Tabs look better with dialog surfaces than with widget surfaces. There'sTorbjörn Andersson
still room for improvements, though... svn-id: r20330
2006-01-31I didn't realize that disabled widgets were transparent, rather than justTorbjörn Andersson
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-31I assume this call to restoreBackground() is unnecessary.Torbjörn Andersson
svn-id: r20328
2006-01-30Replace use of sscanfChris Apers
svn-id: r20311
2006-01-29Ok this should fix now all problems with drawing bugs of texts.Johannes Schickel
svn-id: r20298
2006-01-29Fixes redraw bugs with the about dialog and the new theme.Johannes Schickel
svn-id: r20297
2006-01-29Fixes transparency and enabled transparency for disabled buttons.Johannes Schickel
svn-id: r20295
2006-01-28Changed calcGradient again, should look nicer now.Johannes Schickel
svn-id: r20280
2006-01-28Fixes a bug while loading the theme config from the zip file (now the caret ↵Johannes Schickel
should be black). svn-id: r20277
2006-01-28- Fixes a bug that the debugger crashed while openingJohannes Schickel
- 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-27This should fix bug # 1416862 (new theme: changing overlay size).Johannes Schickel
svn-id: r20253
2006-01-27Proper RCS IDs.Eugene Sandulenko
svn-id: r20235
2006-01-27Fix crash on platforms which do not initialize memory with zeroes.Eugene Sandulenko
svn-id: r20234
2006-01-27fixed warningPaweł Kołodziejski
svn-id: r20231
2006-01-27Oops forgot to change calcColor to calcGradient before commiting.Johannes Schickel
svn-id: r20230
2006-01-27 - adds the new gui renderer also a new implementation for the classic guiJohannes Schickel
- 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