mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-04-21 19:24:00 +00:00
桌面主题系统
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user