Skip to content

Commit 3f1f23b

Browse files
committed
Change Bookmark layout to responsive
1 parent 6095d0b commit 3f1f23b

File tree

2 files changed

+48
-34
lines changed

2 files changed

+48
-34
lines changed

Plugins/Flow.Launcher.Plugin.BrowserBookmark/Views/CustomBrowserSetting.xaml

Lines changed: 46 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
xmlns:local="clr-namespace:Flow.Launcher.Plugin.BrowserBookmark.Models"
77
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
88
Title="{DynamicResource BookmarkDataSetting}"
9-
Width="500"
9+
Width="520"
1010
Background="{DynamicResource PopuBGColor}"
1111
Foreground="{DynamicResource PopupTextColor}"
1212
KeyDown="WindowKeyDown"
13+
ResizeMode="NoResize"
1314
SizeToContent="Height"
1415
WindowStartupLocation="CenterScreen"
1516
mc:Ignorable="d">
@@ -70,35 +71,50 @@
7071
TextAlignment="Left" />
7172
</StackPanel>
7273

73-
<StackPanel Margin="0,10,0,0" Orientation="Horizontal">
74-
<TextBlock
75-
Width="140"
76-
HorizontalAlignment="Left"
77-
VerticalAlignment="Center"
78-
FontSize="14"
79-
Text="{DynamicResource flowlauncher_plugin_browserbookmark_browserName}" />
80-
<TextBox
81-
Width="120"
82-
Height="30"
83-
Margin="50,0,0,0"
84-
HorizontalAlignment="Left"
85-
VerticalAlignment="Center"
86-
Text="{Binding Name}" />
87-
</StackPanel>
88-
<StackPanel Margin="0,14,0,24" Orientation="Horizontal">
89-
<TextBlock
90-
Width="140"
91-
HorizontalAlignment="Left"
92-
VerticalAlignment="Center"
93-
FontSize="14"
94-
Text="{DynamicResource flowlauncher_plugin_browserbookmark_browserBookmarkDataDirectory}" />
95-
<TextBox
96-
Width="250"
97-
Height="30"
98-
Margin="50,0,0,0"
99-
HorizontalAlignment="Left"
100-
VerticalAlignment="Center"
101-
Text="{Binding DataDirectoryPath}" />
74+
<StackPanel Margin="0,10,0,20" Orientation="Horizontal">
75+
<Grid Width="444" HorizontalAlignment="Stretch">
76+
<Grid.ColumnDefinitions>
77+
<ColumnDefinition MinWidth="120" />
78+
<ColumnDefinition Width="*" />
79+
</Grid.ColumnDefinitions>
80+
<Grid.RowDefinitions>
81+
<RowDefinition />
82+
<RowDefinition />
83+
</Grid.RowDefinitions>
84+
<TextBlock
85+
Grid.Row="0"
86+
Grid.Column="0"
87+
Margin="5,0,0,0"
88+
HorizontalAlignment="Left"
89+
VerticalAlignment="Center"
90+
FontSize="14"
91+
Text="{DynamicResource flowlauncher_plugin_browserbookmark_browserName}" />
92+
<TextBox
93+
Grid.Row="0"
94+
Grid.Column="1"
95+
Width="120"
96+
Height="34"
97+
Margin="5,0,0,0"
98+
HorizontalAlignment="Left"
99+
VerticalAlignment="Center"
100+
Text="{Binding Name}" />
101+
<TextBlock
102+
Grid.Row="1"
103+
Grid.Column="0"
104+
Margin="5,10,0,0"
105+
HorizontalAlignment="Left"
106+
VerticalAlignment="Center"
107+
FontSize="14"
108+
Text="{DynamicResource flowlauncher_plugin_browserbookmark_browserBookmarkDataDirectory}" />
109+
<TextBox
110+
Grid.Row="1"
111+
Grid.Column="1"
112+
Height="34"
113+
Margin="5,10,0,0"
114+
HorizontalAlignment="Stretch"
115+
VerticalAlignment="Center"
116+
Text="{Binding DataDirectoryPath}" />
117+
</Grid>
102118
</StackPanel>
103119
</StackPanel>
104120
</StackPanel>
@@ -111,14 +127,12 @@
111127
<Button
112128
x:Name="btnCancel"
113129
Width="145"
114-
Height="30"
115130
Margin="0,0,5,0"
116131
Click="ConfirmCancelEditCustomBrowser"
117132
Content="{DynamicResource cancel}" />
118133
<Button
119134
Name="btnConfirm"
120135
Width="145"
121-
Height="30"
122136
Margin="5,0,0,0"
123137
Click="ConfirmCancelEditCustomBrowser"
124138
Style="{StaticResource AccentButtonStyle}">

Plugins/Flow.Launcher.Plugin.BrowserBookmark/Views/SettingsControl.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@
3333
</ListView>
3434
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
3535
<Button
36-
Width="110"
36+
MinWidth="120"
3737
Margin="10"
3838
Click="NewCustomBrowser"
3939
Content="{DynamicResource flowlauncher_plugin_browserbookmark_addBrowserBookmark}" />
4040
<Button
41-
Width="110"
41+
MinWidth="120"
4242
Margin="10"
4343
Click="DeleteCustomBrowser"
4444
Content="{DynamicResource flowlauncher_plugin_browserbookmark_removeBrowserBookmark}" />

0 commit comments

Comments
 (0)