桌面主题系统

This commit is contained in:
2026-03-26 20:43:52 +08:00
parent 2c2ee0f1de
commit 312acd90f2
9 changed files with 257 additions and 26 deletions

View File

@@ -39,6 +39,7 @@ namespace CMLeonOS.Settings
{ "GUI_ScreenWidth", "1280" },
{ "GUI_ScreenHeight", "800" },
{ "GUI_WallpaperPath", "" },
{ "GUI_Theme", "Default" },
{ "GUI_DarkNotepad", "false" },
{ "SkipToGui", "false" }
};
@@ -208,6 +209,23 @@ namespace CMLeonOS.Settings
}
}
public static string GUI_Theme
{
get
{
if (settings.TryGetValue("GUI_Theme", out string value))
{
return string.IsNullOrWhiteSpace(value) ? "Default" : value;
}
return "Default";
}
set
{
settings["GUI_Theme"] = string.IsNullOrWhiteSpace(value) ? "Default" : value;
SaveSettings();
}
}
public static bool GUI_DarkNotepad
{
get