mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-18 06:55:48 +03:00
Allow to configure window shadow style with: window-shadow-color, window-shadow-offset, window-shadow-size.
This commit is contained in:
@@ -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" ),
|
||||
|
||||
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user