aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Marti2008-08-01 21:51:30 +0000
committerVicent Marti2008-08-01 21:51:30 +0000
commit01b7d26956fddc58a4471516efc44596a19ccc50 (patch)
treeee03874b74d388855e26da9cc5f2368ba14e9d9b
parent44d91bfa81d638a75b81a079edaa046ff4778194 (diff)
downloadscummvm-rg350-01b7d26956fddc58a4471516efc44596a19ccc50.tar.gz
scummvm-rg350-01b7d26956fddc58a4471516efc44596a19ccc50.tar.bz2
scummvm-rg350-01b7d26956fddc58a4471516efc44596a19ccc50.zip
Replicating the trunk GUI theme. WIP.
svn-id: r33508
-rw-r--r--graphics/VectorRenderer.h5
-rw-r--r--gui/ThemeDefaultXML.cpp25
2 files changed, 17 insertions, 13 deletions
diff --git a/graphics/VectorRenderer.h b/graphics/VectorRenderer.h
index 8a02d7fc21..60ab8797ef 100644
--- a/graphics/VectorRenderer.h
+++ b/graphics/VectorRenderer.h
@@ -856,6 +856,11 @@ protected:
* @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
diff --git a/gui/ThemeDefaultXML.cpp b/gui/ThemeDefaultXML.cpp
index 298f26e782..42a6efa7c3 100644
--- a/gui/ThemeDefaultXML.cpp
+++ b/gui/ThemeDefaultXML.cpp
@@ -248,16 +248,15 @@ bool ThemeRenderer::loadDefaultXML() {
</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 @@ bool ThemeRenderer::loadDefaultXML() {
\
\
<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' \