aboutsummaryrefslogtreecommitdiff
path: root/gui/ThemeNew.cpp
AgeCommit message (Collapse)Author
2006-04-25Uses the special cursor color palette for the cursor now (this fixes ↵Johannes Schickel
problems with creation of thumbnails of the scumm engine) svn-id: r22152
2006-04-21Fix valgrind warningTravis Howell
svn-id: r22065
2006-04-19Adds handleScreenChanged() to NewGui, so (scumm) engine can call it when it ↵Johannes Schickel
recives a EVENT_SCREEN_CHANGED. svn-id: r22025
2006-04-19Fixes problems with wrong colors on the overlay in scumm engine.Johannes Schickel
svn-id: r22024
2006-04-19Implements custom cursor support for the new theme and includes a standard ↵Johannes Schickel
cursor (it should be replaced though). svn-id: r22019
2006-04-19Started to prepare the gui for runtime resolution switches.Johannes Schickel
(some little things could be missing yet though) svn-id: r22017
2006-04-18Restores background before drawing a popupwidget.Johannes Schickel
svn-id: r22015
2006-04-18Oops forgot to use shadows for the PopUpWidget.Johannes Schickel
svn-id: r22013
2006-04-18- Fixed popup widget for --force-1x-overlay with new themeJohannes Schickel
- adds support for highlightened popupwidgets svn-id: r22012
2006-04-18- adds own drawing function for (not expanded) popup widgetsJohannes Schickel
- adds pixmaps, colorfades, and gradient factor for the (not expanded) popup widget in new theme - bumps themeconfig version svn-id: r22011
2006-04-17Moved ColorMasks to their own new header graphics/colormasks.h, so that both ↵Max Horn
the scalers and the GUI code can access them. Also added (untested) entries for 1555, 444, 888 and 8888 modes svn-id: r21966
2006-04-16- Moves Graphics::loadFont to Graphics::NewFont::loadFontJohannes Schickel
- adds code for caching of fonts (just for Graphics::NewFont) - implements cache using in the modern theme for custom fonts - adds cache file for current normal font in the theme zip file svn-id: r21952
2006-04-16- Implemented text padding in ListWidget and PopUpWidget. Right padding does ↵Eugene Sandulenko
not work yet. - Implemented highlisght padding in ListWidget - Eval::getVar() method with default value - Removed unused constructors for ListWidget and PoUpWidget - cleanup - bumped theme version svn-id: r21934
2006-04-14- implements .bdf font loader based on convbdf (sure could have some clean up)Johannes Schickel
- adds three different font styles to the themes (normal, bold (default one), italic) - implements code for specifing the font files in the theme config ('fontfile_normal','fontfile_bold' and 'fontfile_italic' in the 'extra' section) - changes EditTextWidget to use the normal font (has some minor aligment problems with the caret now, though) - extends the FontManager (new functions: getFontByName, assignFontToName, removeFontName) - adds the font style constans to the builtin constants for the evaluator) svn-id: r21868
2006-04-13- No longer draws full shadows for disabled widgetsJohannes Schickel
- Implements 'negativ alpha' values for drawSurfaceMasked (from -1 to -100, used to dim the pixels -1 means very very small dim -100 should be black) - Changes drawSurfaceMasked to use macros for easy changing drawing code svn-id: r21852
2006-04-13Deletes color cache and custom dialog shading.Johannes Schickel
svn-id: r21850
2006-04-12Speeds up calcGradient again a little bit.Johannes Schickel
Also this should fix a bug in getColorAlphaImpl (I'm not 100% sure if it was wrong before though) svn-id: r21818
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