Skip to content

Commit 6095d0b

Browse files
committed
- Change Hardcoded text to string
- Adjust Button size to responsive - Add Accent Button Color
1 parent 0b5c77e commit 6095d0b

File tree

4 files changed

+21
-44
lines changed

4 files changed

+21
-44
lines changed

Plugins/Flow.Launcher.Plugin.Program/AddProgramSource.xaml

Lines changed: 5 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -87,46 +87,20 @@
8787
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
8888
<Button
8989
x:Name="btnCancel"
90-
Width="100"
90+
MinWidth="140"
9191
Margin="0,0,5,0"
9292
Click="BtnCancel_OnClick"
9393
Content="{DynamicResource cancel}" />
9494

9595
<Button
96-
Width="100"
96+
MinWidth="140"
9797
Margin="5,0,0,0"
9898
HorizontalAlignment="Right"
9999
Click="ButtonAdd_OnClick"
100-
Content="{DynamicResource flowlauncher_plugin_program_update}" />
100+
Content="{DynamicResource flowlauncher_plugin_program_update}"
101+
Style="{DynamicResource AccentButtonStyle}" />
101102
</StackPanel>
102103
</Border>
103104
</Grid>
104-
<!--
105-
<StackPanel Orientation="Vertical">
106-
<StackPanel Orientation="Horizontal">
107-
<Label Margin="15,10" Content="{DynamicResource flowlauncher_plugin_program_directory}" />
108-
<TextBox
109-
Name="Directory"
110-
Width="278"
111-
Margin="10,7"
112-
VerticalAlignment="Center" />
113-
</StackPanel>
114-
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
115-
<Button
116-
Width="70"
117-
Height="31"
118-
Margin="10"
119-
HorizontalAlignment="Right"
120-
Click="BrowseButton_Click"
121-
Content="{DynamicResource flowlauncher_plugin_program_browse}" />
122-
<Button
123-
Width="70"
124-
Height="31"
125-
Margin="10"
126-
HorizontalAlignment="Right"
127-
Click="ButtonAdd_OnClick"
128-
Content="{DynamicResource flowlauncher_plugin_program_update}" />
129-
</StackPanel>
130-
</StackPanel>
131-
-->
105+
132106
</Window>

Plugins/Flow.Launcher.Plugin.Program/Languages/en.xaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
<system:String x:Key="flowlauncher_plugin_program_delete">Delete</system:String>
88
<system:String x:Key="flowlauncher_plugin_program_edit">Edit</system:String>
99
<system:String x:Key="flowlauncher_plugin_program_add">Add</system:String>
10+
<system:String x:Key="flowlauncher_plugin_program_name">Name</system:String>
11+
<system:String x:Key="flowlauncher_plugin_program_enable">Enable</system:String>
1012
<system:String x:Key="flowlauncher_plugin_program_disable">Disable</system:String>
1113
<system:String x:Key="flowlauncher_plugin_program_location">Location</system:String>
1214
<system:String x:Key="flowlauncher_plugin_program_all_programs">All Programs</system:String>

Plugins/Flow.Launcher.Plugin.Program/ProgramSuffixes.xaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,19 +80,20 @@
8080
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
8181
<Button
8282
x:Name="btnCancel"
83-
Width="100"
8483
Height="30"
84+
MinWidth="140"
8585
Margin="0,0,5,0"
8686
Click="BtnCancel_OnClick"
8787
Content="{DynamicResource cancel}" />
8888

8989
<Button
90-
Width="100"
9190
Height="30"
91+
MinWidth="140"
9292
Margin="5,0,0,0"
9393
HorizontalAlignment="Right"
9494
Click="ButtonBase_OnClick"
95-
Content="{DynamicResource flowlauncher_plugin_program_update}" />
95+
Content="{DynamicResource flowlauncher_plugin_program_update}"
96+
Style="{DynamicResource AccentButtonStyle}" />
9697
</StackPanel>
9798
</Border>
9899
</Grid>

Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<StackPanel Width="Auto" Orientation="Horizontal">
2323
<CheckBox
2424
Name="StartMenuEnabled"
25-
Width="200"
25+
Width="220"
2626
Margin="70,8,10,8"
2727
Content="{DynamicResource flowlauncher_plugin_program_index_start}"
2828
IsChecked="{Binding EnableStartMenuSource}"
@@ -42,7 +42,7 @@
4242
<StackPanel Width="Auto" Orientation="Horizontal">
4343
<CheckBox
4444
Name="HideLnkEnabled"
45-
Width="200"
45+
Width="220"
4646
Margin="70,8,10,8"
4747
Content="{DynamicResource flowlauncher_plugin_program_enable_hidelnkpath}"
4848
IsChecked="{Binding HideAppsPath}"
@@ -66,21 +66,21 @@
6666
Orientation="Horizontal">
6767
<Button
6868
x:Name="btnLoadAllProgramSource"
69-
Width="120"
69+
MinWidth="120"
7070
Margin="10,10,5,10"
7171
HorizontalAlignment="Right"
7272
Click="btnLoadAllProgramSource_OnClick"
7373
Content="{DynamicResource flowlauncher_plugin_program_all_programs}" />
7474
<Button
7575
x:Name="btnProgramSuffixes"
76-
Width="120"
76+
MinWidth="120"
7777
Margin="5,10,5,10"
7878
HorizontalAlignment="Right"
7979
Click="BtnProgramSuffixes_OnClick"
8080
Content="{DynamicResource flowlauncher_plugin_program_suffixes}" />
8181
<Button
8282
x:Name="btnReindex"
83-
Width="120"
83+
MinWidth="120"
8484
Margin="5,10,5,10"
8585
HorizontalAlignment="Right"
8686
Click="btnReindex_Click"
@@ -119,14 +119,14 @@
119119
SelectionMode="Extended">
120120
<ListView.View>
121121
<GridView>
122-
<GridViewColumn Width="150" Header="Name">
122+
<GridViewColumn Width="150" Header="{DynamicResource flowlauncher_plugin_program_name}">
123123
<GridViewColumn.CellTemplate>
124124
<DataTemplate>
125125
<TextBlock Text="{Binding Name}" />
126126
</DataTemplate>
127127
</GridViewColumn.CellTemplate>
128128
</GridViewColumn>
129-
<GridViewColumn Header="Enabled">
129+
<GridViewColumn Header="{DynamicResource flowlauncher_plugin_program_enable}">
130130
<GridViewColumn.CellTemplate>
131131
<DataTemplate>
132132
<TextBlock
@@ -153,19 +153,19 @@
153153
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
154154
<Button
155155
x:Name="btnProgramSourceStatus"
156-
Width="100"
156+
MinWidth="100"
157157
Margin="10"
158158
Click="btnProgramSourceStatus_OnClick"
159159
Content="{DynamicResource flowlauncher_plugin_program_disable}" />
160160
<Button
161161
x:Name="btnEditProgramSource"
162-
Width="100"
162+
MinWidth="100"
163163
Margin="10"
164164
Click="btnEditProgramSource_OnClick"
165165
Content="{DynamicResource flowlauncher_plugin_program_edit}" />
166166
<Button
167167
x:Name="btnAddProgramSource"
168-
Width="100"
168+
MinWidth="100"
169169
Margin="10,10,0,10"
170170
Click="btnAddProgramSource_OnClick"
171171
Content="{DynamicResource flowlauncher_plugin_program_add}" />

0 commit comments

Comments
 (0)