Skip to content

Commit

Permalink
Preparing Backgroundog
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiizor committed Sep 19, 2023
1 parent 10a9bdd commit b5ef1f8
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/Library/Sucrose.Manager/Manage/Internal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ public static class Internal

public static readonly SMSM WebsiteManager = new("Website.json");

public static readonly SMSM CoreSettingManager = new("Core.json");

public static readonly SMSM HookSettingManager = new("Hook.json");

public static readonly SMLM UpdateLogManager = new("Update-{0}.log");
Expand Down
2 changes: 2 additions & 0 deletions src/Library/Sucrose.Memory/Constant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ public static class Constant

public const string TitleLength = "TitleLength";

public const string Information = "Information";

public const string BackdropType = "BackdropType";

public const string CefArguments = "CefArguments";
Expand Down
20 changes: 20 additions & 0 deletions src/Portal/Sucrose.Portal/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using Wpf.Ui;
using SEWTT = Skylark.Enum.WindowsThemeType;
using SHC = Skylark.Helper.Culture;
using SMC = Sucrose.Memory.Constant;
using SMMI = Sucrose.Manager.Manage.Internal;
using SMMM = Sucrose.Manager.Manage.Manager;
using SMR = Sucrose.Memory.Readonly;
Expand Down Expand Up @@ -36,7 +37,11 @@
using SPVPSWSP = Sucrose.Portal.Views.Pages.Setting.WallpaperSettingPage;
using SPVWMW = Sucrose.Portal.Views.Windows.MainWindow;
using SSRHR = Sucrose.Shared.Resources.Helper.Resources;
using SSSHA = Sucrose.Shared.Core.Helper.Architecture;
using SSSHF = Sucrose.Shared.Core.Helper.Framework;
using SSSHOS = Sucrose.Shared.Core.Helper.OperatingSystem;
using SSSHP = Sucrose.Shared.Space.Helper.Processor;
using SSSHV = Sucrose.Shared.Core.Helper.Version;
using SSWDEMB = Sucrose.Shared.Watchdog.DarkErrorMessageBox;
using SSWLEMB = Sucrose.Shared.Watchdog.LightErrorMessageBox;
using SSWW = Sucrose.Shared.Watchdog.Watch;
Expand Down Expand Up @@ -220,12 +225,27 @@ protected void Message(string Message)

protected void Configure()
{
Information();

_host.Start();

//Main Interface = new();
//Interface.Show();
}

protected void Information()
{
Dictionary<string, string> Information = new()
{
["Version"] = SSSHV.GetText(),
["Framework"] = SSSHF.GetName(),
["Architecture"] = SSSHA.GetText(),
["OperatingSystem"] = SSSHOS.GetText()
};

SMMI.CoreSettingManager.SetSetting(SMC.Information, Information);
}

/// <summary>
/// Occurs when the application is closing.
/// </summary>
Expand Down
1 change: 0 additions & 1 deletion src/Shared/Sucrose.Shared.Core/Helper/Memory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ namespace Sucrose.Shared.Core.Helper
{
internal static class Memory
{

public static string Get()
{
Process CurrentProcess = Process.GetCurrentProcess();
Expand Down
2 changes: 1 addition & 1 deletion src/Sucrose.sln
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sucrose.Live.MpvPlayer", "L
EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Sucrose.Shared.Engine.MpvPlayer", "Shared\Engine\Sucrose.Shared.Engine.MpvPlayer\Sucrose.Shared.Engine.MpvPlayer.shproj", "{6D8A6597-DA61-4972-A978-2942F076E4A4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sucrose.Backgroundog", "Project\Sucrose.Backgroundog\Sucrose.Backgroundog.csproj", "{68FA689E-F4C8-4A71-A603-ED5773E29F9A}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sucrose.Backgroundog", "Project\Sucrose.Backgroundog\Sucrose.Backgroundog.csproj", "{68FA689E-F4C8-4A71-A603-ED5773E29F9A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down

0 comments on commit b5ef1f8

Please sign in to comment.