Skip to content

Commit c332d3e

Browse files
committed
优化
1 parent e3421cd commit c332d3e

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/ComputerLock/Shared/MainLayout.razor.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ protected override async Task OnInitializedAsync()
6464
AppbarText = "#FFA500",
6565
Background = "#FFFFFF",
6666
Surface = "#FFFFFF",
67-
LinesDefault = "#E0E0E0",
67+
LinesDefault = "#E0E0E0",
6868

6969
Success = "#43A047",
7070
Error = "#E53935",
@@ -108,7 +108,15 @@ protected override async Task OnInitializedAsync()
108108

109109
if (await VersionLogChecker.CheckShowUpdateLogAsync())
110110
{
111-
await Dialog.ShowAsync<VersionHistoryDialog>("");
111+
var options = new DialogOptions
112+
{
113+
CloseButton = true,
114+
CloseOnEscapeKey = false,
115+
BackdropClick = false,
116+
BackgroundClass = "dialog-backdrop-filter",
117+
FullWidth = true
118+
};
119+
await Dialog.ShowAsync<VersionHistoryDialog>(Lang["VersionHistory"], options);
112120
}
113121

114122
await SwitchThemeAsync(AppSettings.AppTheme);

0 commit comments

Comments
 (0)