[Scummvm-cvs-logs] SF.net SVN: scummvm:[33508] scummvm/branches/gsoc2008-gui
Tanoku at users.sourceforge.net
Tanoku at users.sourceforge.net
Fri Aug 1 23:51:31 CEST 2008
Revision: 33508
http://scummvm.svn.sourceforge.net/scummvm/?rev=33508&view=rev
Author: Tanoku
Date: 2008-08-01 21:51:30 +0000 (Fri, 01 Aug 2008)
Log Message:
-----------
Replicating the trunk GUI theme. WIP.
Modified Paths:
--------------
scummvm/branches/gsoc2008-gui/graphics/VectorRenderer.h
scummvm/branches/gsoc2008-gui/gui/ThemeDefaultXML.cpp
Modified: scummvm/branches/gsoc2008-gui/graphics/VectorRenderer.h
===================================================================
--- scummvm/branches/gsoc2008-gui/graphics/VectorRenderer.h 2008-08-01 20:19:37 UTC (rev 33507)
+++ scummvm/branches/gsoc2008-gui/graphics/VectorRenderer.h 2008-08-01 21:51:30 UTC (rev 33508)
@@ -856,6 +856,11 @@
* @see VectorRenderer::drawRoundedAlg()
*/
virtual void drawRoundedSquareAlg(int x1, int y1, int r, int w, int h, PixelType color, VectorRenderer::FillMode fill_m);
+
+ virtual void drawRoundedSquareShadow(int x, int y, int r, int w, int h, int blur) {
+ Base::drawRoundedSquareShadow(x, y, r, w, h, blur);
+ VectorRenderer::applyConvolutionMatrix(VectorRenderer::kConvolutionHardBlur, Common::Rect(x, y, x + w + blur * 2, y + h + blur * 2));
+ }
};
} // end of namespace Graphics
Modified: scummvm/branches/gsoc2008-gui/gui/ThemeDefaultXML.cpp
===================================================================
--- scummvm/branches/gsoc2008-gui/gui/ThemeDefaultXML.cpp 2008-08-01 20:19:37 UTC (rev 33507)
+++ scummvm/branches/gsoc2008-gui/gui/ThemeDefaultXML.cpp 2008-08-01 21:51:30 UTC (rev 33508)
@@ -248,16 +248,15 @@
</drawdata> \
\
<drawdata id = 'popup_idle' cache = false> \
- <drawstep func = 'square' \
+ <drawstep func = 'roundedsq' \
stroke = 0 \
- fg_color = '0, 0, 0' \
- fill = 'gradient' \
- gradient_start = '214, 113, 8' \
- gradient_end = '240, 200, 25' \
- shadow = 3 \
+ radius = 4 \
+ fill = 'foreground' \
+ fg_color = '250, 237, 190' \
+ shadow = 2 \
/> \
<drawstep func = 'triangle' \
- fg_color = '0, 0, 0' \
+ fg_color = '63, 60, 52' \
fill = 'foreground' \
width = 'height' \
height = 'auto' \
@@ -273,16 +272,16 @@
\
\
<drawdata id = 'popup_hover' cache = false> \
- <drawstep func = 'square' \
+ <drawstep func = 'roundedsq' \
stroke = 0 \
- fg_color = 'black' \
+ radius = 4 \
fill = 'gradient' \
- gradient_start = '214, 113, 8' \
- gradient_end = '240, 200, 25' \
+ gradient_start = 'blandyellow' \
+ gradient_end = '250, 237, 190' \
shadow = 0 \
- /> \
+ /> \
<drawstep func = 'triangle' \
- fg_color = '0, 0, 0' \
+ fg_color = '63, 60, 52' \
fill = 'foreground' \
width = 'height' \
height = 'auto' \
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list