File tree Expand file tree Collapse file tree 3 files changed +17
-7
lines changed
Flow.Launcher.Plugin.Program/Views
Flow.Launcher.Plugin.WebSearch Expand file tree Collapse file tree 3 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 163
163
<GridViewColumn Width =" 90" Header =" {DynamicResource flowlauncher_plugin_program_enabled}" >
164
164
<GridViewColumn .CellTemplate>
165
165
<DataTemplate >
166
- <TextBlock x : Name = " ListViewEnabled " TextAlignment =" Left" >
166
+ <TextBlock TextAlignment =" Left" >
167
167
<TextBlock .Style>
168
168
<Style TargetType =" TextBlock" >
169
169
<Setter Property =" Text" Value =" {DynamicResource flowlauncher_plugin_program_false}" />
Original file line number Diff line number Diff line change 12
12
<system : String x : Key =" flowlauncher_plugin_websearch_delete" >Delete</system : String >
13
13
<system : String x : Key =" flowlauncher_plugin_websearch_edit" >Edit</system : String >
14
14
<system : String x : Key =" flowlauncher_plugin_websearch_add" >Add</system : String >
15
+ <system : String x : Key =" flowlauncher_plugin_websearch_true" >Enabled</system : String >
16
+ <system : String x : Key =" flowlauncher_plugin_websearch_false" >Disabled</system : String >
15
17
<system : String x : Key =" flowlauncher_plugin_websearch_confirm" >Confirm</system : String >
16
18
<system : String x : Key =" flowlauncher_plugin_websearch_action_keyword" >Action Keyword</system : String >
17
19
<system : String x : Key =" flowlauncher_plugin_websearch_url" >URL</system : String >
32
34
33
35
<!-- web search edit -->
34
36
<system : String x : Key =" flowlauncher_plugin_websearch_title" >Title</system : String >
35
- <system : String x : Key =" flowlauncher_plugin_websearch_enable" >Enable </system : String >
37
+ <system : String x : Key =" flowlauncher_plugin_websearch_enable" >Enabled </system : String >
36
38
<system : String x : Key =" flowlauncher_plugin_websearch_select_icon" >Select Icon</system : String >
37
39
<system : String x : Key =" flowlauncher_plugin_websearch_icon" >Icon</system : String >
38
40
<system : String x : Key =" flowlauncher_plugin_websearch_cancel" >Cancel</system : String >
Original file line number Diff line number Diff line change 86
86
</DataTemplate >
87
87
</GridViewColumn .CellTemplate>
88
88
</GridViewColumn >
89
- <GridViewColumn
90
- Width =" 80"
91
- DisplayMemberBinding =" {Binding Enabled}"
92
- Header =" {DynamicResource flowlauncher_plugin_websearch_enable}" >
89
+ <GridViewColumn Width =" 140" Header =" {DynamicResource flowlauncher_plugin_websearch_enable}" >
93
90
<GridViewColumn .CellTemplate>
94
91
<DataTemplate >
95
- <TextBlock Text =" {Binding Enabled}" />
92
+ <TextBlock >
93
+ <TextBlock .Style>
94
+ <Style TargetType =" TextBlock" >
95
+ <Setter Property =" Text" Value =" {DynamicResource flowlauncher_plugin_websearch_false}" />
96
+ <Style .Triggers>
97
+ <DataTrigger Binding =" {Binding Enabled, UpdateSourceTrigger=PropertyChanged}" Value =" True" >
98
+ <Setter Property =" Text" Value =" {DynamicResource flowlauncher_plugin_websearch_true}" />
99
+ </DataTrigger >
100
+ </Style .Triggers>
101
+ </Style >
102
+ </TextBlock .Style>
103
+ </TextBlock >
96
104
</DataTemplate >
97
105
</GridViewColumn .CellTemplate>
98
106
</GridViewColumn >
You can’t perform that action at this time.
0 commit comments