Skip to content

Commit 0fbec35

Browse files
committed
Darkmode CPriority Change Window
1 parent 67a4352 commit 0fbec35

File tree

5 files changed

+889
-832
lines changed

5 files changed

+889
-832
lines changed

Flow.Launcher/PriorityChangeWindow.xaml

Lines changed: 99 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -7,84 +7,117 @@
77
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
88
xmlns:ui="http://schemas.modernwpf.com/2019"
99
Title="{DynamicResource changePriorityWindow}"
10-
Background="#F3F3F3"
11-
BorderBrush="#cecece"
10+
Width="350"
11+
Background="{DynamicResource PopuBGColor}"
12+
Foreground="{DynamicResource PopupTextColor}"
1213
Loaded="PriorityChangeWindow_Loaded"
1314
MouseDown="window_MouseDown"
1415
ResizeMode="NoResize"
15-
SizeToContent="WidthAndHeight"
16+
SizeToContent="Height"
1617
WindowStartupLocation="CenterScreen"
1718
mc:Ignorable="d">
18-
<Grid Width="350">
19+
<WindowChrome.WindowChrome>
20+
<WindowChrome CaptionHeight="32" ResizeBorderThickness="{x:Static SystemParameters.WindowResizeBorderThickness}" />
21+
</WindowChrome.WindowChrome>
22+
<Grid>
1923
<Grid.RowDefinitions>
2024
<RowDefinition />
2125
<RowDefinition Height="80" />
2226
</Grid.RowDefinitions>
23-
<Border
24-
Padding="26,26,26,0"
25-
Background="#ffffff"
26-
BorderBrush="#e5e5e5"
27-
BorderThickness="0,0,0,1">
28-
<Grid>
27+
28+
<StackPanel Grid.Row="0">
29+
<StackPanel>
30+
<Grid>
31+
<Grid.ColumnDefinitions>
32+
<ColumnDefinition Width="Auto" />
33+
<ColumnDefinition Width="*" />
34+
<ColumnDefinition Width="Auto" />
35+
<ColumnDefinition Width="Auto" />
36+
<ColumnDefinition Width="Auto" />
37+
</Grid.ColumnDefinitions>
38+
<Button
39+
Grid.Column="4"
40+
Click="BtnCancel_OnClick"
41+
Style="{StaticResource TitleBarCloseButtonStyle}">
42+
<Path
43+
Width="46"
44+
Height="32"
45+
Data="M 18,11 27,20 M 18,20 27,11"
46+
Stroke="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type Button}}}"
47+
StrokeThickness="1">
48+
<Path.Style>
49+
<Style TargetType="Path">
50+
<Style.Triggers>
51+
<DataTrigger Binding="{Binding Path=IsActive, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" Value="False">
52+
<Setter Property="Opacity" Value="0.5" />
53+
</DataTrigger>
54+
</Style.Triggers>
55+
</Style>
56+
</Path.Style>
57+
</Path>
58+
</Button>
59+
</Grid>
60+
</StackPanel>
61+
<StackPanel Margin="26,12,26,0">
62+
<StackPanel Margin="0,0,0,12">
63+
<TextBlock
64+
Grid.Column="0"
65+
Margin="0,0,0,0"
66+
FontFamily="Segoe UI"
67+
FontSize="20"
68+
FontWeight="SemiBold"
69+
Text="{DynamicResource changePriorityWindow}"
70+
TextAlignment="Left" />
71+
</StackPanel>
2972
<StackPanel>
30-
<StackPanel Grid.Row="0" Margin="0,0,0,12">
31-
<TextBlock
32-
Grid.Column="0"
33-
Margin="0,0,0,0"
34-
FontFamily="Segoe UI"
35-
FontSize="20"
36-
FontWeight="SemiBold"
37-
Text="{DynamicResource changePriorityWindow}"
38-
TextAlignment="Left" />
39-
</StackPanel>
40-
<StackPanel>
41-
<TextBlock
42-
FontSize="14"
43-
Foreground="#1b1b1b"
44-
Text="{DynamicResource priority_tips}"
45-
TextAlignment="Left"
46-
TextWrapping="WrapWithOverflow" />
47-
</StackPanel>
73+
<TextBlock
74+
FontSize="14"
75+
Text="{DynamicResource priority_tips}"
76+
TextAlignment="Left"
77+
TextWrapping="WrapWithOverflow" />
78+
</StackPanel>
4879

49-
<StackPanel Margin="0,24,0,24" Orientation="Horizontal">
50-
<TextBlock
51-
HorizontalAlignment="Right"
52-
VerticalAlignment="Center"
53-
FontSize="14"
54-
Text="{DynamicResource priority}" />
55-
<ui:NumberBox
56-
x:Name="tbAction"
57-
Width="190"
58-
Height="34"
59-
Margin="10,0,15,0"
60-
HorizontalAlignment="Left"
61-
VerticalAlignment="Center"
62-
Minimum="0"
63-
SmallChange="1"
64-
SpinButtonPlacementMode="Inline" />
65-
</StackPanel>
80+
<StackPanel Margin="0,24,0,24" Orientation="Horizontal">
81+
<TextBlock
82+
HorizontalAlignment="Right"
83+
VerticalAlignment="Center"
84+
FontSize="14"
85+
Text="{DynamicResource priority}" />
86+
<ui:NumberBox
87+
x:Name="tbAction"
88+
Width="200"
89+
Margin="10,0,15,0"
90+
HorizontalAlignment="Left"
91+
VerticalAlignment="Center"
92+
CornerRadius="4"
93+
Minimum="0"
94+
SmallChange="1"
95+
SpinButtonPlacementMode="Inline" />
6696
</StackPanel>
67-
</Grid>
68-
</Border>
69-
<StackPanel
70-
Grid.Row="1"
71-
HorizontalAlignment="Center"
72-
Orientation="Horizontal">
73-
<Button
74-
x:Name="btnCancel"
75-
Width="100"
76-
Height="30"
77-
Margin="0,0,5,0"
78-
Click="BtnCancel_OnClick"
79-
Content="{DynamicResource cancel}" />
80-
<Button
81-
x:Name="btnDone"
82-
Width="100"
83-
Height="30"
84-
Margin="5,0,0,0"
85-
Click="btnDone_OnClick">
86-
<TextBlock x:Name="lblAdd" Text="{DynamicResource done}" />
87-
</Button>
97+
</StackPanel>
8898
</StackPanel>
99+
<Border
100+
Grid.Row="1"
101+
Background="{DynamicResource PopupButtonAreaBGColor}"
102+
BorderBrush="{DynamicResource PopupButtonAreaBorderColor}"
103+
BorderThickness="0,1,0,0">
104+
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
105+
<Button
106+
x:Name="btnCancel"
107+
Width="100"
108+
Height="30"
109+
Margin="0,0,5,0"
110+
Click="BtnCancel_OnClick"
111+
Content="{DynamicResource cancel}" />
112+
<Button
113+
x:Name="btnDone"
114+
Width="100"
115+
Height="30"
116+
Margin="5,0,0,0"
117+
Click="btnDone_OnClick">
118+
<TextBlock x:Name="lblAdd" Text="{DynamicResource done}" />
119+
</Button>
120+
</StackPanel>
121+
</Border>
89122
</Grid>
90123
</Window>

0 commit comments

Comments
 (0)