diff options
-rw-r--r-- | graphics/VectorRenderer.h | 5 | ||||
-rw-r--r-- | gui/ThemeDefaultXML.cpp | 25 |
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' \ |