|
1 |
| -<UserControl x:Class="Flow.Launcher.Plugin.Explorer.Views.ExplorerSettings" |
2 |
| - xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 |
| - xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 |
| - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
5 |
| - xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
6 |
| - xmlns:viewModels="clr-namespace:Flow.Launcher.Plugin.Explorer.ViewModels" |
7 |
| - xmlns:views="clr-namespace:Flow.Launcher.Plugin.Explorer.Views" |
8 |
| - mc:Ignorable="d" |
9 |
| - d:DesignHeight="450" d:DesignWidth="800"> |
| 1 | +<UserControl |
| 2 | + x:Class="Flow.Launcher.Plugin.Explorer.Views.ExplorerSettings" |
| 3 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 4 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 5 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 6 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 7 | + xmlns:viewModels="clr-namespace:Flow.Launcher.Plugin.Explorer.ViewModels" |
| 8 | + xmlns:views="clr-namespace:Flow.Launcher.Plugin.Explorer.Views" |
| 9 | + d:DesignHeight="450" |
| 10 | + d:DesignWidth="800" |
| 11 | + mc:Ignorable="d"> |
10 | 12 | <UserControl.Resources>
|
11 | 13 | <DataTemplate x:Key="ListViewTemplateAccessLinks">
|
12 |
| - <TextBlock |
13 |
| - Text="{Binding Path, Mode=OneTime}" |
14 |
| - Margin="0,5,0,5" /> |
| 14 | + <TextBlock Margin="0,5,0,5" Text="{Binding Path, Mode=OneTime}" /> |
15 | 15 | </DataTemplate>
|
16 | 16 | <DataTemplate x:Key="ListViewTemplateExcludedPaths">
|
17 |
| - <TextBlock |
18 |
| - Text="{Binding Path, Mode=OneTime}" |
19 |
| - Margin="0,5,0,5" /> |
| 17 | + <TextBlock Margin="0,5,0,5" Text="{Binding Path, Mode=OneTime}" /> |
20 | 18 | </DataTemplate>
|
21 |
| - <DataTemplate x:Key="ListViewActionKeywords" |
22 |
| - DataType="views:ActionKeywordView"> |
| 19 | + <DataTemplate x:Key="ListViewActionKeywords" DataType="views:ActionKeywordView"> |
23 | 20 | <Grid>
|
24 |
| - <TextBlock |
25 |
| - Text="{Binding Description, Mode=OneTime}" |
26 |
| - Foreground="{Binding Color, Mode=OneWay}" |
27 |
| - Margin="0,5,0,0" /> |
28 |
| - <TextBlock |
29 |
| - Text="{Binding Keyword, Mode=OneTime}" |
30 |
| - Foreground="{Binding Color, Mode=OneWay}" |
31 |
| - Margin="250,5,0,0" /> |
| 21 | + <TextBlock |
| 22 | + Margin="0,5,0,0" |
| 23 | + IsEnabled="{Binding Enabled}" |
| 24 | + Text="{Binding Description, Mode=OneTime}"> |
| 25 | + <TextBlock.Style> |
| 26 | + <Style TargetType="{x:Type TextBlock}"> |
| 27 | + <Style.Triggers> |
| 28 | + <Trigger Property="IsEnabled" Value="True"> |
| 29 | + <Setter Property="Foreground" Value="{DynamicResource Color05B}" /> |
| 30 | + </Trigger> |
| 31 | + <Trigger Property="IsEnabled" Value="False"> |
| 32 | + <Setter Property="Foreground" Value="{DynamicResource Color18B}" /> |
| 33 | + </Trigger> |
| 34 | + </Style.Triggers> |
| 35 | + </Style> |
| 36 | + </TextBlock.Style> |
| 37 | + </TextBlock> |
| 38 | + <TextBlock |
| 39 | + Margin="250,5,0,0" |
| 40 | + IsEnabled="{Binding Enabled}" |
| 41 | + Text="{Binding Keyword, Mode=OneTime}"> |
| 42 | + <TextBlock.Style> |
| 43 | + <Style TargetType="{x:Type TextBlock}"> |
| 44 | + <Style.Triggers> |
| 45 | + <Trigger Property="IsEnabled" Value="True"> |
| 46 | + <Setter Property="Foreground" Value="{DynamicResource Color05B}" /> |
| 47 | + </Trigger> |
| 48 | + <Trigger Property="IsEnabled" Value="False"> |
| 49 | + <Setter Property="Foreground" Value="{DynamicResource Color18B}" /> |
| 50 | + </Trigger> |
| 51 | + </Style.Triggers> |
| 52 | + </Style> |
| 53 | + </TextBlock.Style> |
| 54 | + </TextBlock> |
32 | 55 | </Grid>
|
33 | 56 | </DataTemplate>
|
34 | 57 | </UserControl.Resources>
|
35 | 58 | <Grid Margin="10">
|
36 | 59 | <Grid.RowDefinitions>
|
37 |
| - <RowDefinition Height="*"/> |
38 |
| - <RowDefinition Height="100"/> |
| 60 | + <RowDefinition Height="*" /> |
| 61 | + <RowDefinition Height="100" /> |
39 | 62 | </Grid.RowDefinitions>
|
40 |
| - <ScrollViewer Margin="20 35 0 0" HorizontalScrollBarVisibility="Hidden" Grid.Row="0" VerticalScrollBarVisibility="Auto"> |
| 63 | + <ScrollViewer |
| 64 | + Grid.Row="0" |
| 65 | + Margin="20,35,0,0" |
| 66 | + HorizontalScrollBarVisibility="Hidden" |
| 67 | + VerticalScrollBarVisibility="Auto"> |
41 | 68 | <StackPanel>
|
42 |
| - <Expander Name="expActionKeywords" Header="{DynamicResource plugin_explorer_manageactionkeywords_header}" |
43 |
| - Expanded="expActionKeywords_Click" Collapsed="expActionKeywords_Collapsed"> |
44 |
| - <ListView x:Name="lbxActionKeywords" |
45 |
| - ItemTemplate="{StaticResource ListViewActionKeywords}"/> |
| 69 | + <Expander |
| 70 | + Name="expActionKeywords" |
| 71 | + Collapsed="expActionKeywords_Collapsed" |
| 72 | + Expanded="expActionKeywords_Click" |
| 73 | + Header="{DynamicResource plugin_explorer_manageactionkeywords_header}"> |
| 74 | + <ListView x:Name="lbxActionKeywords" ItemTemplate="{StaticResource ListViewActionKeywords}" /> |
46 | 75 | </Expander>
|
47 |
| - <Expander Name="expAccessLinks" Header="{DynamicResource plugin_explorer_quickaccesslinks_header}" |
48 |
| - Expanded="expAccessLinks_Click" Collapsed="expAccessLinks_Collapsed" |
49 |
| - Margin="0 10 0 0"> |
| 76 | + <Expander |
| 77 | + Name="expAccessLinks" |
| 78 | + Margin="0,10,0,0" |
| 79 | + Collapsed="expAccessLinks_Collapsed" |
| 80 | + Expanded="expAccessLinks_Click" |
| 81 | + Header="{DynamicResource plugin_explorer_quickaccesslinks_header}"> |
50 | 82 | <ListView
|
51 |
| - x:Name="lbxAccessLinks" AllowDrop="True" |
52 |
| - Drop="lbxAccessLinks_Drop" |
| 83 | + x:Name="lbxAccessLinks" |
| 84 | + AllowDrop="True" |
53 | 85 | DragEnter="lbxAccessLinks_DragEnter"
|
54 |
| - ItemTemplate="{StaticResource ListViewTemplateAccessLinks}"/> |
| 86 | + Drop="lbxAccessLinks_Drop" |
| 87 | + ItemTemplate="{StaticResource ListViewTemplateAccessLinks}" /> |
55 | 88 | </Expander>
|
56 |
| - <Expander x:Name="expExcludedPaths" Header="{DynamicResource plugin_explorer_indexsearchexcludedpaths_header}" |
57 |
| - Expanded="expExcludedPaths_Click" |
58 |
| - Margin="0 10 0 0"> |
| 89 | + <Expander |
| 90 | + x:Name="expExcludedPaths" |
| 91 | + Margin="0,10,0,0" |
| 92 | + Expanded="expExcludedPaths_Click" |
| 93 | + Header="{DynamicResource plugin_explorer_indexsearchexcludedpaths_header}"> |
59 | 94 | <ListView
|
60 |
| - x:Name="lbxExcludedPaths" AllowDrop="True" |
61 |
| - Drop="lbxAccessLinks_Drop" |
| 95 | + x:Name="lbxExcludedPaths" |
| 96 | + AllowDrop="True" |
62 | 97 | DragEnter="lbxAccessLinks_DragEnter"
|
63 |
| - ItemTemplate="{StaticResource ListViewTemplateExcludedPaths}"/> |
| 98 | + Drop="lbxAccessLinks_Drop" |
| 99 | + ItemTemplate="{StaticResource ListViewTemplateExcludedPaths}" /> |
64 | 100 | </Expander>
|
65 | 101 | </StackPanel>
|
66 | 102 | </ScrollViewer>
|
67 | 103 | <Grid Grid.Row="1">
|
68 | 104 | <Grid.ColumnDefinitions>
|
69 |
| - <ColumnDefinition Width="*"/> |
70 |
| - <ColumnDefinition Width="350"/> |
| 105 | + <ColumnDefinition Width="*" /> |
| 106 | + <ColumnDefinition Width="350" /> |
71 | 107 | </Grid.ColumnDefinitions>
|
72 |
| - <StackPanel Grid.Row="1" Grid.Column="0" HorizontalAlignment="Left" Orientation="Horizontal"> |
73 |
| - <Button x:Name="btnIndexingOptions" Click="btnOpenIndexingOptions_Click" Width="130" Margin="10" |
74 |
| - Content="{DynamicResource plugin_explorer_manageindexoptions}"/> |
| 108 | + <StackPanel |
| 109 | + Grid.Row="1" |
| 110 | + Grid.Column="0" |
| 111 | + HorizontalAlignment="Left" |
| 112 | + Orientation="Horizontal"> |
| 113 | + <Button |
| 114 | + x:Name="btnIndexingOptions" |
| 115 | + Width="130" |
| 116 | + Margin="10" |
| 117 | + Click="btnOpenIndexingOptions_Click" |
| 118 | + Content="{DynamicResource plugin_explorer_manageindexoptions}" /> |
75 | 119 | </StackPanel>
|
76 |
| - <StackPanel Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right" Orientation="Horizontal"> |
77 |
| - <Button x:Name="btnDelete" Click="btnDelete_Click" Width="100" Margin="10" Content="{DynamicResource plugin_explorer_delete}"/> |
78 |
| - <Button x:Name="btnEdit" Click="btnEdit_Click" Width="100" Margin="10" Content="{DynamicResource plugin_explorer_edit}"/> |
79 |
| - <Button x:Name="btnAdd" Click="btnAdd_Click" Width="100" Margin="10" Content="{DynamicResource plugin_explorer_add}"/> |
| 120 | + <StackPanel |
| 121 | + Grid.Row="1" |
| 122 | + Grid.Column="1" |
| 123 | + HorizontalAlignment="Right" |
| 124 | + Orientation="Horizontal"> |
| 125 | + <Button |
| 126 | + x:Name="btnDelete" |
| 127 | + Width="100" |
| 128 | + Margin="10" |
| 129 | + Click="btnDelete_Click" |
| 130 | + Content="{DynamicResource plugin_explorer_delete}" /> |
| 131 | + <Button |
| 132 | + x:Name="btnEdit" |
| 133 | + Width="100" |
| 134 | + Margin="10" |
| 135 | + Click="btnEdit_Click" |
| 136 | + Content="{DynamicResource plugin_explorer_edit}" /> |
| 137 | + <Button |
| 138 | + x:Name="btnAdd" |
| 139 | + Width="100" |
| 140 | + Margin="10" |
| 141 | + Click="btnAdd_Click" |
| 142 | + Content="{DynamicResource plugin_explorer_add}" /> |
80 | 143 | </StackPanel>
|
81 | 144 | </Grid>
|
82 | 145 | </Grid>
|
|
0 commit comments