mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-21 14:53:30 -04:00
Add blur and shadow to window component
This commit is contained in:
Vendored
+1
-1
Submodule extern/aurora updated: a2d024e006...8a2b80ecb1
@@ -281,7 +281,6 @@ private:
|
||||
{"justify-content", "center"},
|
||||
{"box-sizing", "border-box"},
|
||||
{"padding", "32dp"},
|
||||
{"background-color", rgba(ModalOverlay)},
|
||||
});
|
||||
return screen;
|
||||
}
|
||||
|
||||
@@ -12,7 +12,6 @@ struct Color {
|
||||
};
|
||||
|
||||
inline constexpr Color Background1{12, 18, 17, 255};
|
||||
inline constexpr Color ModalOverlay{12, 18, 17, 229};
|
||||
inline constexpr Color Text{225, 236, 231, 255};
|
||||
inline constexpr Color TextActive{248, 255, 251, 255};
|
||||
inline constexpr Color TextDim{160, 191, 182, 255};
|
||||
|
||||
@@ -158,6 +158,8 @@ Window::Window(Rml::Element* parent, std::string_view id, std::function<void()>
|
||||
{"border-radius", dp(BorderRadiusMedium)},
|
||||
{"border-color", rgba(ElevatedBorder)},
|
||||
{"background-color", rgba(WindowSurface)},
|
||||
{"backdrop-filter", "blur(5dp)"},
|
||||
{"box-shadow", "0 0 25dp 5dp"},
|
||||
{"overflow", "hidden"},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user