forked from vpnhood/VpnHood
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AppResource.cs
54 lines (46 loc) · 1.98 KB
/
AppResource.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
using System.Drawing;
namespace VpnHood.Client.App;
public class AppResource
{
public byte[]? SpaZipData { get; set; }
public Size WindowSize { get; set; } = new(400, 700);
public AppStrings Strings { get; set; } = new();
public AppColors Colors { get; set; } = new();
public AppIcons Icons { get; set; } = new();
public class AppStrings
{
public string AppName { get; set; } = Resource.AppName;
public string Disconnect { get; set; } = Resource.Disconnect;
public string Connect { get; set; } = Resource.Connect;
public string Disconnected { get; set; } = Resource.Disconnected;
public string Exit { get; set; } = Resource.Exit;
public string Manage { get; set; } = Resource.Manage;
public string MsgAccessKeyAdded { get; set; } = Resource.MsgAccessKeyAdded;
public string MsgAccessKeyUpdated { get; set; } = Resource.MsgAccessKeyUpdated;
public string MsgCantReadAccessKey { get; set; } = Resource.MsgCantReadAccessKey;
public string MsgUnsupportedContent { get; set; } = Resource.MsgUnsupportedContent;
public string Open { get; set; } = Resource.Open;
public string OpenInBrowser { get; set; } = Resource.OpenInBrowser;
}
public class AppColors
{
public Color? NavigationBarColor { get; set; }
public Color? WindowBackgroundColor { get; set; }
}
public class AppIcons
{
public IconData? BadgeConnectedIcon { get; set; } = new(Resource.BadgeConnectedIcon);
public IconData? BadgeConnectingIcon { get; set; } = new(Resource.BadgeConnectingIcon);
public IconData? SystemTrayConnectedIcon { get; set; }
public IconData? SystemTrayConnectingIcon { get; set; }
public IconData? SystemTrayDisconnectedIcon { get; set; }
}
public class IconData(byte[] data)
{
public byte[] Data { get; } = data;
}
public class ImageData(byte[] data)
{
public byte[] Data { get; } = data;
}
}