Add blur and shadow to window component

This commit is contained in:
Luke Street
2026-04-27 23:44:58 -06:00
parent 8fb4ba8924
commit 6503b4e7eb
4 changed files with 3 additions and 3 deletions
+1 -1
-1
View File
@@ -281,7 +281,6 @@ private:
{"justify-content", "center"},
{"box-sizing", "border-box"},
{"padding", "32dp"},
{"background-color", rgba(ModalOverlay)},
});
return screen;
}
-1
View File
@@ -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};
+2
View File
@@ -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"},
});