aboutsummaryrefslogtreecommitdiff
path: root/gui/theme.h
AgeCommit message (Collapse)Author
2006-06-15- Adds 'THEME_HINT_NO_BACKGROUND_RESTORE' for buttons which don't want ↵Johannes Schickel
restored background (example: the tab scrolling buttons). - Call _theme->drawAll() at the end of the redraw method of NewGui svn-id: r23134
2006-06-15Fix drawing of tab widget. Now it matches mock-ups. Added tab scrolling.Eugene Sandulenko
svn-id: r23116
2006-06-14Implements new Tab drawing for modern theme (nearlly matches mockups now)Johannes Schickel
svn-id: r23106
2006-06-10This may cut down a little on unnecessary strings / mallocs:Torbjörn Andersson
* Only create the self.[xywh] aliases and its variables if prefixedname has no periods in it, e.g. MusicText.x, but not MusicText.align.x * Set the .r, .g and .b variables directly, rather than aliasing them through .x, .y and .w svn-id: r23000
2006-06-06Move whole theme ini file to evaluator. Next step is caching. Also now it isEugene Sandulenko
possible to use per-resolution gfx and colors, i.e. complete customization. svn-id: r22964
2006-06-05Fixing some more typenames to comply to the ScummVM coding guidelinesMax Horn
svn-id: r22929
2006-06-05Fix various typenames to comply to the ScummVM coding guidelinesMax Horn
svn-id: r22928
2006-06-03*Loads* of Common::String related optimizations. Woa, *tons* of methods were ↵Max Horn
copying strings needlessly svn-id: r22873
2006-05-29Introduces special switch for GraphicsWidget for use of theme transparency ↵Johannes Schickel
again. svn-id: r22746
2006-05-29- changes transparency parameter of Theme::drawSurface to alpha parameter.Johannes Schickel
- adds possibility to draw GraphicsWidgets with alpha values. svn-id: r22738
2006-05-29Removes leftover comment.Johannes Schickel
svn-id: r22737
2006-05-29- Fixes disabled transparency for classic theme.Johannes Schickel
- Introduces check for define 'CT_NO_TRANSPARENCY' to disable transparency support. svn-id: r22735
2006-05-27Major GUI update:Eugene Sandulenko
- Implemented padding in console - Update only current line in console instead of whole screen - Fixed caret positioning in edit text widget - Improved buttons drawing, now they look more realistic - Added label spacing in popup widget - Correct shadow in popup widget - Fixed up with selected popup widget being drawn on wrong tab - Added shading to list dialog - Adjusted shading of inactive widgets - Proper coloring of browset (add game) dialog - Introduced Container widget - Used Container widget in scumm save/load dialog. Now it looks properly - Adjusted button colors even more. Now they match almost perfectly albeit with banding - Made scrollbar appear only when it is really needed svn-id: r22670
2006-05-26Use Courier 12pt (free one) for 2x and 3x console. Looks much more useable now.Eugene Sandulenko
svn-id: r22644
2006-05-18Proper rendering of slider widget.Eugene Sandulenko
svn-id: r22527
2006-05-18- Fix spelling in theme configEugene Sandulenko
- Introduce embossing shadow - Less round corners in popup widget - Custom border in editable text widget - Matched color in popup widget and editable text widget with mock-ups - Less round corners in editable text widget - Text padding in editable text widget svn-id: r22525
2006-05-18Better cursor imageEugene Sandulenko
svn-id: r22507
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-25- minor cleanup in modern.iniEugene Sandulenko
- implement skipFor theme section keyword svn-id: r22151
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-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-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-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-11Fixes disappearing borders with classic theme.Johannes Schickel
svn-id: r21795
2006-04-11Makes classic theme compile without OLDGUI_TRANSPARENCY again.Johannes Schickel
svn-id: r21790
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-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-24Reduce (indirect) dependencies on gui/eval.h (and thus common/assocarray.h) ↵Max Horn
to a minimum svn-id: r21426
2006-03-14Rearrange launcher.Eugene Sandulenko
Logo is still shown weirdly. svn-id: r21268
2006-03-09Moved typedef Common::String into class declaration.Lars Persson
svn-id: r21187
2006-03-08o Converted most (all?) widgets to new scheme.Eugene Sandulenko
o Converted global options dialog to new scheme. svn-id: r21137
2006-03-07o More widgets fot alternative constructorsEugene Sandulenko
o Cleanup of launcher dialog o Implemented useWithPrefix keyword svn-id: r21131
2006-03-07More work on customizable GUI.Eugene Sandulenko
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-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-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-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-31Implements the usage of cached backgrounds in the old theme as well,Johannes Schickel
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-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-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-27Proper RCS IDs.Eugene Sandulenko
svn-id: r20235
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