From f860d86c0031cba4eb441a6043a7a13919550cb2 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 6 May 2026 07:48:50 +0800 Subject: [PATCH] fix: replace background with bgcolor, unwrap widgettype:Page to promote subwidgets to top level --- wwwroot/index.ui | 12 ++++++------ wwwroot/login.ui | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/wwwroot/index.ui b/wwwroot/index.ui index e662e6c..1006634 100644 --- a/wwwroot/index.ui +++ b/wwwroot/index.ui @@ -12,11 +12,11 @@ "widgettype": "HBox", "options": { "height": "56px", - "background": "#1a73e8", "color": "white", "alignItems": "center", "padding": "0 16px", - "boxShadow": "0 2px 4px rgba(0,0,0,0.1)" + "boxShadow": "0 2px 4px rgba(0,0,0,0.1)", + "bgcolor": "#1a73e8" }, "subwidgets": [ { @@ -63,10 +63,10 @@ "widgettype": "VBox", "options": { "width": "220px", - "background": "#f5f5f5", "borderRight": "1px solid #e0e0e0", "overflowY": "auto", - "padding": "8px 0" + "padding": "8px 0", + "bgcolor": "#f5f5f5" }, "subwidgets": [ { @@ -121,7 +121,7 @@ "options": { "flex": 1, "overflow": "hidden", - "background": "#fafafa" + "bgcolor": "#fafafa" }, "subwidgets": [ { @@ -151,4 +151,4 @@ } } ] -} +} \ No newline at end of file diff --git a/wwwroot/login.ui b/wwwroot/login.ui index dcb4e38..cd4942a 100644 --- a/wwwroot/login.ui +++ b/wwwroot/login.ui @@ -4,19 +4,19 @@ "options": { "width": "100%", "height": "100vh", - "background": "linear-gradient(135deg, #667eea 0%, #764ba2 100%)", "alignItems": "center", - "justifyContent": "center" + "justifyContent": "center", + "bgcolor": "linear-gradient(135deg, #667eea 0%, #764ba2 100%)" }, "subwidgets": [ { "widgettype": "VBox", "options": { "width": "400px", - "background": "white", "borderRadius": "12px", "boxShadow": "0 8px 32px rgba(0,0,0,0.15)", - "padding": "40px 32px" + "padding": "40px 32px", + "bgcolor": "white" }, "subwidgets": [ {