Skip to content

Commit 05044ae

Browse files
authored
Merge pull request #1355 from onesounds/LimitWidth
Adjust Max Width Window Size
2 parents fabb396 + 2f7e8e4 commit 05044ae

File tree

2 files changed

+10
-15
lines changed

2 files changed

+10
-15
lines changed

Flow.Launcher/ResultListBox.xaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
<ListBox.ItemTemplate>
3232
<DataTemplate>
33-
<Button>
33+
<Button HorizontalAlignment="Stretch">
3434
<Button.Template>
3535
<ControlTemplate>
3636
<ContentPresenter Content="{TemplateBinding Button.Content}" />
@@ -39,7 +39,7 @@
3939
<Button.Content>
4040
<Grid
4141
Margin="0"
42-
HorizontalAlignment="Left"
42+
HorizontalAlignment="Stretch"
4343
VerticalAlignment="Stretch"
4444
Cursor="Hand"
4545
UseLayoutRounding="False">
@@ -50,7 +50,7 @@
5050
</Grid.Resources>
5151
<Grid.ColumnDefinitions>
5252
<ColumnDefinition Width="60" />
53-
<ColumnDefinition Width="*" />
53+
<ColumnDefinition Width="9*" />
5454
<ColumnDefinition Width="Auto" />
5555
</Grid.ColumnDefinitions>
5656
<StackPanel
@@ -129,12 +129,9 @@
129129
<TextBlock
130130
x:Name="SubTitle"
131131
Grid.Row="1"
132-
MinWidth="750"
133132
Style="{DynamicResource ItemSubTitleStyle}"
134133
Text="{Binding Result.SubTitle}"
135-
ToolTip="{Binding ShowSubTitleToolTip}">
136-
137-
</TextBlock>
134+
ToolTip="{Binding ShowSubTitleToolTip}" />
138135

139136
</Grid>
140137

Flow.Launcher/SettingWindow.xaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -597,9 +597,7 @@
597597
<StackPanel Style="{StaticResource TextPanel}">
598598
<TextBlock Style="{DynamicResource SettingTitleLabel}" Text="{DynamicResource startFlowLauncherOnSystemStartup}" />
599599
</StackPanel>
600-
<CheckBox
601-
IsChecked="{Binding StartFlowLauncherOnSystemStartup}"
602-
Style="{DynamicResource SideControlCheckBox}" />
600+
<CheckBox IsChecked="{Binding StartFlowLauncherOnSystemStartup}" Style="{DynamicResource SideControlCheckBox}" />
603601
<TextBlock Style="{StaticResource Glyph}">
604602
&#xe8fc;
605603
</TextBlock>
@@ -1621,7 +1619,7 @@
16211619
Margin="0,0,18,0"
16221620
IsMoveToPointEnabled="True"
16231621
IsSnapToTickEnabled="True"
1624-
Maximum="900"
1622+
Maximum="1920"
16251623
Minimum="400"
16261624
TickFrequency="10"
16271625
Value="{Binding WindowWidthSize, Mode=TwoWay}" />
@@ -1792,9 +1790,9 @@
17921790
Margin="20,0,0,0"
17931791
HorizontalAlignment="Left"
17941792
VerticalAlignment="Top"
1793+
IsSynchronizedWithCurrentItem="False"
17951794
ItemsSource="{Binding Source={StaticResource SortedFonts}}"
1796-
SelectedItem="{Binding SelectedQueryBoxFont}"
1797-
IsSynchronizedWithCurrentItem="False" />
1795+
SelectedItem="{Binding SelectedQueryBoxFont}" />
17981796
<ComboBox
17991797
Width="130"
18001798
Margin="10,0,0,0"
@@ -1843,9 +1841,9 @@
18431841
Margin="20,-2,0,0"
18441842
HorizontalAlignment="Left"
18451843
VerticalAlignment="Top"
1844+
IsSynchronizedWithCurrentItem="False"
18461845
ItemsSource="{Binding Source={StaticResource SortedFonts}}"
1847-
SelectedItem="{Binding SelectedResultFont}"
1848-
IsSynchronizedWithCurrentItem="False" />
1846+
SelectedItem="{Binding SelectedResultFont}" />
18491847
<ComboBox
18501848
Width="130"
18511849
Margin="10,-2,0,0"

0 commit comments

Comments
 (0)