Allow to configure window shadow style with: window-shadow-color, window-shadow-offset, window-shadow-size.

This commit is contained in:
Martín Lucas Golini
2026-02-16 13:32:14 -03:00
parent 106af2f060
commit a9901ef23b
6 changed files with 74 additions and 9 deletions

View File

@@ -152,10 +152,13 @@ enum class PropertyId : Uint32 {
WindowTitlebarSize = String::hash( "window-titlebar-size" ),
WindowBorderSize = String::hash( "window-border-size" ),
WindowMinSize = String::hash( "window-min-size" ),
WindowBorderAutoSize = String::hash( "window-border-auto-size" ),
WindowButtonsSeparation = String::hash( "window-buttons-separation" ),
WindowCornerDistance = String::hash( "window-corner-distance" ),
WindowTitlebarAutoSize = String::hash( "window-decoration-auto-size" ),
WindowBorderAutoSize = String::hash( "window-border-auto-size" ),
WindowShadowColor = String::hash( "window-shadow-color" ),
WindowShadowOffset = String::hash( "window-shadow-offset" ),
WindowShadowSize = String::hash( "window-shadow-size" ),
Hint = String::hash( "hint" ),
HintColor = String::hash( "hint-color" ),
HintShadowColor = String::hash( "hint-shadow-color" ),

View File

@@ -235,7 +235,11 @@ class EE_API UIWindow : public UIWidget {
UI_RESIZE_TYPE mResizeType;
Vector2f mResizePos;
bool mFrameBufferBound;
Color mShadowColor{ 0, 0, 0, 25 };
CSS::StyleSheetLength mShadowSize{ "16dp" };
Vector2f mShadowOffset{ 0, PixelDensity::dpToPx( 16.f ) };
bool mFrameBufferBound{ false };
bool mWindowReady{ false };
bool mShowWhenReady{ false };
bool mStealFocusOnShow{ true };