mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Redesgin settings panel for program plugin
This commit is contained in:
parent
6d4919f15e
commit
ac956bccef
2 changed files with 33 additions and 43 deletions
|
|
@ -5588,10 +5588,18 @@
|
||||||
|
|
||||||
<!-- Settings Panel -->
|
<!-- Settings Panel -->
|
||||||
<Thickness x:Key="SettingPanelMargin">70,9,18,9</Thickness>
|
<Thickness x:Key="SettingPanelMargin">70,9,18,9</Thickness>
|
||||||
|
|
||||||
<Thickness x:Key="SettingPanelItemLeftMargin">9,0,0,0</Thickness>
|
<Thickness x:Key="SettingPanelItemLeftMargin">9,0,0,0</Thickness>
|
||||||
<Thickness x:Key="SettingPanelItemRightMargin">0,0,9,0</Thickness>
|
<Thickness x:Key="SettingPanelItemRightMargin">0,0,9,0</Thickness>
|
||||||
<Thickness x:Key="SettingPanelItemTopBottomMargin">0,9,0,9</Thickness>
|
<Thickness x:Key="SettingPanelItemTopBottomMargin">0,9,0,9</Thickness>
|
||||||
|
|
||||||
<Thickness x:Key="SettingPanelItemLeftTopBottomMargin">9,9,0,9</Thickness>
|
<Thickness x:Key="SettingPanelItemLeftTopBottomMargin">9,9,0,9</Thickness>
|
||||||
<Thickness x:Key="SettingPanelItemRightTopBottomMargin">0,9,9,9</Thickness>
|
<Thickness x:Key="SettingPanelItemRightTopBottomMargin">0,9,9,9</Thickness>
|
||||||
|
|
||||||
|
<Style x:Key="SettingPanelSeperatorStyle" TargetType="Separator">
|
||||||
|
<Setter Property="Margin" Value="-70 9 -18 9" />
|
||||||
|
<Setter Property="Height" Value="1" />
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource Color03B}" />
|
||||||
|
<Setter Property="BorderThickness" Value="1" />
|
||||||
|
</Style>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
|
|
|
||||||
|
|
@ -10,124 +10,108 @@
|
||||||
<UserControl.Resources>
|
<UserControl.Resources>
|
||||||
<BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
|
<BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
|
||||||
</UserControl.Resources>
|
</UserControl.Resources>
|
||||||
<Grid Margin="0">
|
<Grid Margin="{StaticResource SettingPanelMargin}">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="Auto" />
|
<RowDefinition Height="Auto" />
|
||||||
<RowDefinition Height="Auto" />
|
<RowDefinition Height="Auto" />
|
||||||
<RowDefinition Height="*" />
|
<RowDefinition Height="*" />
|
||||||
<RowDefinition Height="Auto" />
|
<RowDefinition Height="Auto" />
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<DockPanel
|
<DockPanel HorizontalAlignment="Stretch" LastChildFill="True">
|
||||||
Margin="70 10 0 8"
|
|
||||||
HorizontalAlignment="Stretch"
|
|
||||||
LastChildFill="True">
|
|
||||||
<TextBlock
|
<TextBlock
|
||||||
MinWidth="120"
|
MinWidth="120"
|
||||||
Margin="0 5 10 0"
|
Margin="{StaticResource SettingPanelItemRightTopBottomMargin}"
|
||||||
Text="{DynamicResource flowlauncher_plugin_program_index_source}" />
|
Text="{DynamicResource flowlauncher_plugin_program_index_source}" />
|
||||||
<WrapPanel
|
<WrapPanel
|
||||||
Width="Auto"
|
Width="Auto"
|
||||||
Margin="0 0 14 0"
|
Margin="{StaticResource SettingPanelItemTopBottomMargin}"
|
||||||
HorizontalAlignment="Right"
|
HorizontalAlignment="Right"
|
||||||
DockPanel.Dock="Right">
|
DockPanel.Dock="Right">
|
||||||
<CheckBox
|
<CheckBox
|
||||||
Name="UWPEnabled"
|
Name="UWPEnabled"
|
||||||
Margin="12 0 12 0"
|
Margin="{StaticResource SettingPanelItemRightMargin}"
|
||||||
Content="{DynamicResource flowlauncher_plugin_program_index_uwp}"
|
Content="{DynamicResource flowlauncher_plugin_program_index_uwp}"
|
||||||
IsChecked="{Binding EnableUWP}"
|
IsChecked="{Binding EnableUWP}"
|
||||||
ToolTip="{DynamicResource flowlauncher_plugin_program_index_uwp_tooltip}"
|
ToolTip="{DynamicResource flowlauncher_plugin_program_index_uwp_tooltip}"
|
||||||
Visibility="{Binding ShowUWPCheckbox, Converter={StaticResource BooleanToVisibilityConverter}}" />
|
Visibility="{Binding ShowUWPCheckbox, Converter={StaticResource BooleanToVisibilityConverter}}" />
|
||||||
<CheckBox
|
<CheckBox
|
||||||
Name="StartMenuEnabled"
|
Name="StartMenuEnabled"
|
||||||
Margin="12 0 12 0"
|
Margin="{StaticResource SettingPanelItemRightMargin}"
|
||||||
Content="{DynamicResource flowlauncher_plugin_program_index_start}"
|
Content="{DynamicResource flowlauncher_plugin_program_index_start}"
|
||||||
IsChecked="{Binding EnableStartMenuSource}"
|
IsChecked="{Binding EnableStartMenuSource}"
|
||||||
ToolTip="{DynamicResource flowlauncher_plugin_program_index_start_tooltip}" />
|
ToolTip="{DynamicResource flowlauncher_plugin_program_index_start_tooltip}" />
|
||||||
<CheckBox
|
<CheckBox
|
||||||
Name="RegistryEnabled"
|
Name="RegistryEnabled"
|
||||||
Margin="12 0 12 0"
|
Margin="{StaticResource SettingPanelItemRightMargin}"
|
||||||
Content="{DynamicResource flowlauncher_plugin_program_index_registry}"
|
Content="{DynamicResource flowlauncher_plugin_program_index_registry}"
|
||||||
IsChecked="{Binding EnableRegistrySource}"
|
IsChecked="{Binding EnableRegistrySource}"
|
||||||
ToolTip="{DynamicResource flowlauncher_plugin_program_index_registry_tooltip}" />
|
ToolTip="{DynamicResource flowlauncher_plugin_program_index_registry_tooltip}" />
|
||||||
<CheckBox
|
<CheckBox
|
||||||
Name="PATHEnabled"
|
Name="PATHEnabled"
|
||||||
Margin="12 0 12 0"
|
|
||||||
Content="{DynamicResource flowlauncher_plugin_program_index_PATH}"
|
Content="{DynamicResource flowlauncher_plugin_program_index_PATH}"
|
||||||
IsChecked="{Binding EnablePATHSource}"
|
IsChecked="{Binding EnablePATHSource}"
|
||||||
ToolTip="{DynamicResource flowlauncher_plugin_program_index_PATH_tooltip}" />
|
ToolTip="{DynamicResource flowlauncher_plugin_program_index_PATH_tooltip}" />
|
||||||
</WrapPanel>
|
</WrapPanel>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
|
|
||||||
<StackPanel
|
<StackPanel
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
Orientation="Vertical">
|
Orientation="Vertical">
|
||||||
<Separator
|
<Separator Style="{StaticResource SettingPanelSeperatorStyle}" />
|
||||||
Height="1"
|
<DockPanel HorizontalAlignment="Stretch" LastChildFill="True">
|
||||||
BorderBrush="{DynamicResource Color03B}"
|
|
||||||
BorderThickness="1" />
|
|
||||||
<DockPanel
|
|
||||||
Margin="70 10 0 8"
|
|
||||||
HorizontalAlignment="Stretch"
|
|
||||||
LastChildFill="True">
|
|
||||||
<TextBlock
|
<TextBlock
|
||||||
MinWidth="120"
|
MinWidth="120"
|
||||||
Margin="0 5 10 0"
|
Margin="{StaticResource SettingPanelItemRightTopBottomMargin}"
|
||||||
Text="{DynamicResource flowlauncher_plugin_program_index_option}" />
|
Text="{DynamicResource flowlauncher_plugin_program_index_option}" />
|
||||||
<WrapPanel
|
<WrapPanel
|
||||||
Width="Auto"
|
Width="Auto"
|
||||||
Margin="0 0 14 0"
|
Margin="{StaticResource SettingPanelItemTopBottomMargin}"
|
||||||
HorizontalAlignment="Right"
|
HorizontalAlignment="Right"
|
||||||
DockPanel.Dock="Right">
|
DockPanel.Dock="Right">
|
||||||
<CheckBox
|
<CheckBox
|
||||||
Margin="12 0 12 0"
|
Margin="{StaticResource SettingPanelItemRightMargin}"
|
||||||
Content="{DynamicResource flowlauncher_plugin_program_enable_hidelnkpath}"
|
Content="{DynamicResource flowlauncher_plugin_program_enable_hidelnkpath}"
|
||||||
IsChecked="{Binding HideAppsPath}"
|
IsChecked="{Binding HideAppsPath}"
|
||||||
ToolTip="{DynamicResource flowlauncher_plugin_program_enable_hidelnkpath_tooltip}" />
|
ToolTip="{DynamicResource flowlauncher_plugin_program_enable_hidelnkpath_tooltip}" />
|
||||||
<CheckBox
|
<CheckBox
|
||||||
Margin="12 0 12 0"
|
Margin="{StaticResource SettingPanelItemRightMargin}"
|
||||||
Content="{DynamicResource flowlauncher_plugin_program_enable_hideuninstallers}"
|
Content="{DynamicResource flowlauncher_plugin_program_enable_hideuninstallers}"
|
||||||
IsChecked="{Binding HideUninstallers}"
|
IsChecked="{Binding HideUninstallers}"
|
||||||
ToolTip="{DynamicResource flowlauncher_plugin_program_enable_hideuninstallers_tooltip}" />
|
ToolTip="{DynamicResource flowlauncher_plugin_program_enable_hideuninstallers_tooltip}" />
|
||||||
<CheckBox
|
<CheckBox
|
||||||
Margin="12 0 12 0"
|
Margin="{StaticResource SettingPanelItemRightMargin}"
|
||||||
Content="{DynamicResource flowlauncher_plugin_program_enable_description}"
|
Content="{DynamicResource flowlauncher_plugin_program_enable_description}"
|
||||||
IsChecked="{Binding EnableDescription}"
|
IsChecked="{Binding EnableDescription}"
|
||||||
ToolTip="{DynamicResource flowlauncher_plugin_program_enable_description_tooltip}" />
|
ToolTip="{DynamicResource flowlauncher_plugin_program_enable_description_tooltip}" />
|
||||||
<CheckBox
|
<CheckBox
|
||||||
Margin="12 0 12 0"
|
|
||||||
Content="{DynamicResource flowlauncher_plugin_program_enable_hideduplicatedwindowsapp}"
|
Content="{DynamicResource flowlauncher_plugin_program_enable_hideduplicatedwindowsapp}"
|
||||||
IsChecked="{Binding HideDuplicatedWindowsApp}"
|
IsChecked="{Binding HideDuplicatedWindowsApp}"
|
||||||
ToolTip="{DynamicResource flowlauncher_plugin_program_enable_hideduplicatedwindowsapp_tooltip}" />
|
ToolTip="{DynamicResource flowlauncher_plugin_program_enable_hideduplicatedwindowsapp_tooltip}" />
|
||||||
</WrapPanel>
|
</WrapPanel>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
<Separator
|
<Separator Style="{StaticResource SettingPanelSeperatorStyle}" />
|
||||||
Height="1"
|
|
||||||
BorderBrush="{DynamicResource Color03B}"
|
|
||||||
BorderThickness="1" />
|
|
||||||
<StackPanel
|
<StackPanel
|
||||||
Margin="60 0 0 2"
|
|
||||||
HorizontalAlignment="Left"
|
HorizontalAlignment="Left"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Orientation="Horizontal">
|
Orientation="Horizontal">
|
||||||
<Button
|
<Button
|
||||||
x:Name="btnLoadAllProgramSource"
|
x:Name="btnLoadAllProgramSource"
|
||||||
MinWidth="120"
|
MinWidth="120"
|
||||||
Margin="10 10 5 10"
|
Margin="{StaticResource SettingPanelItemRightTopBottomMargin}"
|
||||||
HorizontalAlignment="Right"
|
HorizontalAlignment="Right"
|
||||||
Click="btnLoadAllProgramSource_OnClick"
|
Click="btnLoadAllProgramSource_OnClick"
|
||||||
Content="{DynamicResource flowlauncher_plugin_program_all_programs}" />
|
Content="{DynamicResource flowlauncher_plugin_program_all_programs}" />
|
||||||
<Button
|
<Button
|
||||||
x:Name="btnProgramSuffixes"
|
x:Name="btnProgramSuffixes"
|
||||||
MinWidth="120"
|
MinWidth="120"
|
||||||
Margin="5 10 5 10"
|
Margin="{StaticResource SettingPanelItemRightTopBottomMargin}"
|
||||||
HorizontalAlignment="Right"
|
HorizontalAlignment="Right"
|
||||||
Click="BtnProgramSuffixes_OnClick"
|
Click="BtnProgramSuffixes_OnClick"
|
||||||
Content="{DynamicResource flowlauncher_plugin_program_suffixes}" />
|
Content="{DynamicResource flowlauncher_plugin_program_suffixes}" />
|
||||||
<Button
|
<Button
|
||||||
x:Name="btnReindex"
|
x:Name="btnReindex"
|
||||||
MinWidth="120"
|
MinWidth="120"
|
||||||
Margin="5 10 5 10"
|
Margin="{StaticResource SettingPanelItemRightTopBottomMargin}"
|
||||||
HorizontalAlignment="Right"
|
HorizontalAlignment="Right"
|
||||||
Click="btnReindex_Click"
|
Click="btnReindex_Click"
|
||||||
Content="{DynamicResource flowlauncher_plugin_program_reindex}" />
|
Content="{DynamicResource flowlauncher_plugin_program_reindex}" />
|
||||||
|
|
@ -140,12 +124,13 @@
|
||||||
x:Name="progressBarIndexing"
|
x:Name="progressBarIndexing"
|
||||||
Width="80"
|
Width="80"
|
||||||
Height="20"
|
Height="20"
|
||||||
|
Margin="{StaticResource SettingPanelItemRightTopBottomMargin}"
|
||||||
IsIndeterminate="True"
|
IsIndeterminate="True"
|
||||||
Maximum="100"
|
Maximum="100"
|
||||||
Minimum="0" />
|
Minimum="0" />
|
||||||
<TextBlock
|
<TextBlock
|
||||||
Height="20"
|
Height="20"
|
||||||
Margin="10 0 0 0"
|
Margin="{StaticResource SettingPanelItemTopBottomMargin}"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
Text="{DynamicResource flowlauncher_plugin_program_indexing}" />
|
Text="{DynamicResource flowlauncher_plugin_program_indexing}" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
@ -154,7 +139,7 @@
|
||||||
<ListView
|
<ListView
|
||||||
x:Name="programSourceView"
|
x:Name="programSourceView"
|
||||||
Grid.Row="2"
|
Grid.Row="2"
|
||||||
Margin="70 0 20 0"
|
Margin="{StaticResource SettingPanelItemTopBottomMargin}"
|
||||||
AllowDrop="True"
|
AllowDrop="True"
|
||||||
BorderBrush="DarkGray"
|
BorderBrush="DarkGray"
|
||||||
BorderThickness="1"
|
BorderThickness="1"
|
||||||
|
|
@ -203,27 +188,24 @@
|
||||||
</GridView>
|
</GridView>
|
||||||
</ListView.View>
|
</ListView.View>
|
||||||
</ListView>
|
</ListView>
|
||||||
<DockPanel
|
<DockPanel Grid.Row="3">
|
||||||
Grid.Row="3"
|
|
||||||
Grid.RowSpan="1"
|
|
||||||
Margin="0 0 20 0">
|
|
||||||
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
||||||
<Button
|
<Button
|
||||||
x:Name="btnProgramSourceStatus"
|
x:Name="btnProgramSourceStatus"
|
||||||
MinWidth="100"
|
MinWidth="100"
|
||||||
Margin="10"
|
Margin="{StaticResource SettingPanelItemTopBottomMargin}"
|
||||||
Click="btnProgramSourceStatus_OnClick"
|
Click="btnProgramSourceStatus_OnClick"
|
||||||
Content="{DynamicResource flowlauncher_plugin_program_disable}" />
|
Content="{DynamicResource flowlauncher_plugin_program_disable}" />
|
||||||
<Button
|
<Button
|
||||||
x:Name="btnEditProgramSource"
|
x:Name="btnEditProgramSource"
|
||||||
MinWidth="100"
|
MinWidth="100"
|
||||||
Margin="10"
|
Margin="{StaticResource SettingPanelItemLeftTopBottomMargin}"
|
||||||
Click="btnEditProgramSource_OnClick"
|
Click="btnEditProgramSource_OnClick"
|
||||||
Content="{DynamicResource flowlauncher_plugin_program_edit}" />
|
Content="{DynamicResource flowlauncher_plugin_program_edit}" />
|
||||||
<Button
|
<Button
|
||||||
x:Name="btnAddProgramSource"
|
x:Name="btnAddProgramSource"
|
||||||
MinWidth="100"
|
MinWidth="100"
|
||||||
Margin="10 10 0 10"
|
Margin="{StaticResource SettingPanelItemLeftTopBottomMargin}"
|
||||||
Click="btnAddProgramSource_OnClick"
|
Click="btnAddProgramSource_OnClick"
|
||||||
Content="{DynamicResource flowlauncher_plugin_program_add}" />
|
Content="{DynamicResource flowlauncher_plugin_program_add}" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue