更换壁纸功能

This commit is contained in:
2026-03-24 17:45:40 +08:00
parent 6c75c51e01
commit fc61afb6a7
5 changed files with 151 additions and 4 deletions

View File

@@ -38,6 +38,7 @@ namespace CMLeonOS.Settings
{ "GUI_MouseSensitivity", "1.0" },
{ "GUI_ScreenWidth", "1280" },
{ "GUI_ScreenHeight", "800" },
{ "GUI_WallpaperPath", "" },
{ "GUI_DarkNotepad", "false" },
{ "SkipToGui", "false" }
};
@@ -190,6 +191,23 @@ namespace CMLeonOS.Settings
}
}
public static string GUI_WallpaperPath
{
get
{
if (settings.TryGetValue("GUI_WallpaperPath", out string value))
{
return value;
}
return string.Empty;
}
set
{
settings["GUI_WallpaperPath"] = value ?? string.Empty;
SaveSettings();
}
}
public static bool GUI_DarkNotepad
{
get