-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.axaml
More file actions
82 lines (81 loc) · 4.41 KB
/
App.axaml
File metadata and controls
82 lines (81 loc) · 4.41 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:converters="using:LuckyLilliaDesktop.Converters"
x:Class="LuckyLilliaDesktop.App"
RequestedThemeVariant="Dark">
<Application.Resources>
<ResourceDictionary>
<converters:EqualToIntConverter x:Key="EqualToIntConverter"/>
<ResourceDictionary.ThemeDictionaries>
<!-- 深色主题 -->
<ResourceDictionary x:Key="Dark">
<SolidColorBrush x:Key="PrimaryBrush">#6366F1</SolidColorBrush>
<SolidColorBrush x:Key="SidebarBackground">#000000</SolidColorBrush>
<SolidColorBrush x:Key="MainBackground">#000000</SolidColorBrush>
<SolidColorBrush x:Key="CardBackground">#000000</SolidColorBrush>
<SolidColorBrush x:Key="CardBackgroundSecondary">#1a1a1a</SolidColorBrush>
<SolidColorBrush x:Key="TextPrimary">#e0e0e0</SolidColorBrush>
<SolidColorBrush x:Key="TextSecondary">#9e9e9e</SolidColorBrush>
<SolidColorBrush x:Key="BorderColor">#333333</SolidColorBrush>
<SolidColorBrush x:Key="HoverBackground">#1a1a1a</SolidColorBrush>
<SolidColorBrush x:Key="SelectedBackground">#2a2a2a</SolidColorBrush>
<SolidColorBrush x:Key="SuccessColor">#10B981</SolidColorBrush>
<SolidColorBrush x:Key="DangerColor">#EF4444</SolidColorBrush>
</ResourceDictionary>
<!-- 浅色主题 -->
<ResourceDictionary x:Key="Light">
<SolidColorBrush x:Key="PrimaryBrush">#5E35B1</SolidColorBrush>
<SolidColorBrush x:Key="SidebarBackground">#f5f5f5</SolidColorBrush>
<SolidColorBrush x:Key="MainBackground">#ffffff</SolidColorBrush>
<SolidColorBrush x:Key="CardBackground">#fafafa</SolidColorBrush>
<SolidColorBrush x:Key="CardBackgroundSecondary">#f0f0f0</SolidColorBrush>
<SolidColorBrush x:Key="TextPrimary">#212121</SolidColorBrush>
<SolidColorBrush x:Key="TextSecondary">#757575</SolidColorBrush>
<SolidColorBrush x:Key="BorderColor">#e0e0e0</SolidColorBrush>
<SolidColorBrush x:Key="HoverBackground">#eeeeee</SolidColorBrush>
<SolidColorBrush x:Key="SelectedBackground">#e0e0e0</SolidColorBrush>
<SolidColorBrush x:Key="SuccessColor">#059669</SolidColorBrush>
<SolidColorBrush x:Key="DangerColor">#DC2626</SolidColorBrush>
</ResourceDictionary>
</ResourceDictionary.ThemeDictionaries>
</ResourceDictionary>
</Application.Resources>
<Application.Styles>
<FluentTheme />
<StyleInclude Source="/Styles/AppStyles.axaml"/>
<Style Selector="TextBlock">
<Setter Property="FontFamily" Value="Microsoft YaHei,Segoe UI Emoji"/>
</Style>
<Style Selector="Button">
<Setter Property="FontFamily" Value="Microsoft YaHei,Segoe UI Emoji"/>
</Style>
<Style Selector="TextBox">
<Setter Property="FontFamily" Value="Microsoft YaHei,Segoe UI Emoji"/>
</Style>
<Style Selector="CheckBox">
<Setter Property="FontFamily" Value="Microsoft YaHei,Segoe UI Emoji"/>
</Style>
<Style Selector="ComboBox">
<Setter Property="FontFamily" Value="Microsoft YaHei,Segoe UI Emoji"/>
</Style>
<Style Selector="TabItem">
<Setter Property="FontFamily" Value="Microsoft YaHei,Segoe UI Emoji"/>
</Style>
</Application.Styles>
<!-- 托盘图标 -->
<TrayIcon.Icons>
<TrayIcons>
<TrayIcon Icon="avares://LuckyLilliaDesktop/Assets/Icons/icon.ico"
ToolTipText="LLBot"
Clicked="TrayIcon_Clicked">
<TrayIcon.Menu>
<NativeMenu>
<NativeMenuItem Header="显示主窗口" Click="ShowWindow_Click"/>
<NativeMenuItemSeparator/>
<NativeMenuItem Header="退出" Click="Exit_Click"/>
</NativeMenu>
</TrayIcon.Menu>
</TrayIcon>
</TrayIcons>
</TrayIcon.Icons>
</Application>