Skip to content

Commit 8afe48f

Browse files
onesoundsjjw24
authored andcommitted
- Adjust Priority Button Position
1 parent 8bef59e commit 8afe48f

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

Flow.Launcher/Resources/CustomControlTemplate.xaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,6 +1469,7 @@
14691469
<Setter.Value>
14701470
<ControlTemplate TargetType="ui:ToggleSwitch">
14711471
<Border
1472+
Width="Auto"
14721473
Background="{TemplateBinding Background}"
14731474
BorderBrush="{TemplateBinding BorderBrush}"
14741475
BorderThickness="{TemplateBinding BorderThickness}"
@@ -1498,7 +1499,7 @@
14981499
Visibility="Collapsed" />
14991500
<Grid
15001501
Grid.Row="1"
1501-
MinWidth="{DynamicResource ToggleSwitchThemeMinWidth}"
1502+
MinWidth="10"
15021503
HorizontalAlignment="Right"
15031504
VerticalAlignment="Top">
15041505

@@ -1509,7 +1510,7 @@
15091510
</Grid.RowDefinitions>
15101511

15111512
<Grid.ColumnDefinitions>
1512-
<ColumnDefinition Width="*" />
1513+
<ColumnDefinition Width="Auto" />
15131514
<ColumnDefinition Width="12" MaxWidth="12" />
15141515
<ColumnDefinition Width="Auto" />
15151516
</Grid.ColumnDefinitions>

Flow.Launcher/SettingWindow.xaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@
992992
<Border>
993993
<Button
994994
x:Name="PriorityButton"
995-
Margin="0,0,0,0"
995+
Margin="0,0,18,0"
996996
VerticalAlignment="Center"
997997
Click="OnPluginPriorityClick"
998998
Content="{Binding Priority, UpdateSourceTrigger=PropertyChanged}"
@@ -1023,7 +1023,12 @@
10231023
</Border>
10241024
</StackPanel>
10251025
<DockPanel Grid.Column="3">
1026-
<ui:ToggleSwitch HorizontalAlignment="Right" IsOn="{Binding PluginState}" />
1026+
<ui:ToggleSwitch
1027+
Margin="0,0,6,0"
1028+
HorizontalAlignment="Right"
1029+
IsOn="{Binding PluginState}"
1030+
OffContent="{DynamicResource disable}"
1031+
OnContent="{DynamicResource enable}" />
10271032
</DockPanel>
10281033
</Grid>
10291034

0 commit comments

Comments
 (0)