diff --git a/app/main.py b/app/main.py
index f800ce5..4387724 100644
--- a/app/main.py
+++ b/app/main.py
@@ -85,7 +85,7 @@ async def login(
{
"request": request,
"message": "连接成功",
- "success": True,
+ "message_type": "success",
"theme": server_config.theme,
"path": "/login",
"token": token,
@@ -100,7 +100,7 @@ async def login(
{
"request": request,
"message": f"连接失败:{str(e)}",
- "success": False,
+ "message_type": "danger",
"theme": server_config.theme,
"path": "/login",
"scheme": scheme,
@@ -128,6 +128,7 @@ async def set_playlist(
{
"request": request,
"message": f"设置成功:地址 {address},间隔 {interval} 分钟",
+ "message_type": "info",
"theme": server_config.theme,
"path": "/playlist",
},
diff --git a/app/static/styles.css b/app/static/styles.css
index f23944f..4e45fc8 100644
--- a/app/static/styles.css
+++ b/app/static/styles.css
@@ -1,3 +1,20 @@
.custom-sidebar {
max-width: 300px !important; /* 设置最大宽度为 300px */
-}
\ No newline at end of file
+}
+
+/* Toast with frosted glass effect */
+.glass-toast {
+ backdrop-filter: blur(5px);
+}
+
+.glass-toast-success {
+ background-color: rgba(var(--bs-success-rgb), 0.75) !important;
+}
+
+.glass-toast-danger {
+ background-color: rgba(var(--bs-danger-rgb), 0.75) !important;
+}
+
+.glass-toast-info {
+ background-color: rgba(var(--bs-info-rgb), 0.75) !important;
+}
diff --git a/app/templates/base.html b/app/templates/base.html
index 828078a..6f4f810 100644
--- a/app/templates/base.html
+++ b/app/templates/base.html
@@ -87,6 +87,18 @@