Skip to content

Commit 182657d

Browse files
committed
up 更新
1 parent d3d23b9 commit 182657d

120 files changed

Lines changed: 606 additions & 530 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/ColorDesktop.Api/ColorDesktop.Api.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<Nullable>enable</Nullable>
77
<Platforms>AnyCPU</Platforms>
88
<Title>ColorDesktop Api</Title>
9-
<Version>4.0.0</Version>
9+
<Version>6.0.0</Version>
1010
<Authors>Coloryr</Authors>
1111
<Company>Coloryr</Company>
1212
<Description>ColorDesktop的API</Description>
@@ -16,7 +16,7 @@
1616
<RepositoryUrl>https://github.com/Coloryr/ColorDesktop</RepositoryUrl>
1717
<RepositoryType>git</RepositoryType>
1818
<PackageTags>colordesktop;api;coloryr</PackageTags>
19-
<PackageReleaseNotes>Version4 API</PackageReleaseNotes>
19+
<PackageReleaseNotes>Version6 API</PackageReleaseNotes>
2020
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
2121
<PackageOutputPath>..\build_out</PackageOutputPath>
2222
</PropertyGroup>

src/ColorDesktop.Api/JsonUtils.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Text.Json;
1+
using System.Text.Json;
62
using System.Text.Json.Nodes;
73
using System.Text.Json.Serialization.Metadata;
8-
using System.Threading.Tasks;
94

105
namespace ColorDesktop.Api;
116

src/ColorDesktop.Launcher/App.axaml.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
using Avalonia.Platform;
1010
using ColorDesktop.Api;
1111
using ColorDesktop.Launcher.Helper;
12-
using ColorDesktop.Launcher.Hook;
1312
using ColorDesktop.Launcher.Manager;
1413
using ColorDesktop.Launcher.Objs;
1514
using ColorDesktop.Launcher.UI.Models.Dialog;

src/ColorDesktop.Launcher/Hook/Linux.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public struct XRectangle
140140

141141
public static void SetMouseThrough(Window window, bool enable)
142142
{
143-
if (window.PlatformImpl is { } platformHandle
143+
if (window.PlatformImpl is { } platformHandle
144144
&& window.TryGetPlatformHandle() is { } handel)
145145
{
146146
Type x11WindowType = platformHandle.GetType();

src/ColorDesktop.Launcher/Hook/MacOs.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
6-
7-
namespace ColorDesktop.Launcher.Hook;
1+
namespace ColorDesktop.Launcher.Hook;
82

93
public static class MacOs
104
{

src/ColorDesktop.Launcher/Hook/Win32.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
22
using System.Runtime.InteropServices;
33
using Avalonia.Controls;
4-
using ColorDesktop.Launcher.Manager;
54
using Microsoft.Win32;
65

76
namespace ColorDesktop.Launcher.Hook;

src/ColorDesktop.Launcher/Manager/InstanceManager.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,14 +158,14 @@ public static void StartInstance()
158158
}
159159
}
160160
}
161-
161+
162162
App.ThisApp.UpdateMenu();
163163
}
164164

165165
public static void CreateGroup(string name)
166166
{
167167
string uuid = MakeUUID();
168-
168+
169169
var obj = new GroupObj()
170170
{
171171
Name = name,
@@ -192,7 +192,7 @@ public static void DeleteGroupUUID(string uuid)
192192
{
193193
SwitchGroup(null);
194194
}
195-
195+
196196
var file = Path.GetFullPath(GroupDir + "/" + uuid + ".json");
197197
if (File.Exists(file))
198198
{
@@ -245,7 +245,7 @@ public static void SwitchGroup(string? uuid)
245245
}
246246
}
247247
}
248-
else if(Groups.TryGetValue(uuid, out var group))
248+
else if (Groups.TryGetValue(uuid, out var group))
249249
{
250250
NowGroup = uuid;
251251
foreach (var item in RunInstances)

src/ColorDesktop.Launcher/Manager/LauncherHook.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
1+
using System.Collections.Generic;
42
using ColorDesktop.Api;
53
using ColorDesktop.Api.Events;
64
using ColorDesktop.Api.Objs;

src/ColorDesktop.Launcher/Manager/PluginManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ private static void EnablePlugin(PluginAssembly plugin)
367367
plugin.Plugin.Enable();
368368
plugin.Enable = true;
369369
SetPluginState(plugin.Obj.ID, PluginState.Enable);
370-
370+
371371
InstanceManager.EnablePlugin(plugin.Obj.ID);
372372
LauncherHook.PluginEnable(plugin.Obj.ID);
373373
}

src/ColorDesktop.Launcher/UI/Controls/Dialog/ChoiseInstanceControl.axaml.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using Avalonia;
21
using Avalonia.Controls;
3-
using Avalonia.Markup.Xaml;
42

53
namespace ColorDesktop.Launcher.UI.Controls.Dialog;
64

0 commit comments

Comments
 (0)