mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Adjust Button Size
This commit is contained in:
parent
264aed9408
commit
594075deba
1 changed files with 129 additions and 98 deletions
|
|
@ -1,100 +1,122 @@
|
||||||
<UserControl x:Class="Flow.Launcher.Plugin.Program.Views.ProgramSetting"
|
<UserControl
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
x:Class="Flow.Launcher.Plugin.Program.Views.ProgramSetting"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:program="clr-namespace:Flow.Launcher.Plugin.Program"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
Height="520"
|
xmlns:program="clr-namespace:Flow.Launcher.Plugin.Program"
|
||||||
DataContext="{Binding RelativeSource={RelativeSource Self}}"
|
Height="520"
|
||||||
mc:Ignorable="d">
|
DataContext="{Binding RelativeSource={RelativeSource Self}}"
|
||||||
|
mc:Ignorable="d">
|
||||||
<Grid Margin="0">
|
<Grid Margin="0">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="170" />
|
<RowDefinition Height="170" />
|
||||||
<RowDefinition Height="*" />
|
<RowDefinition Height="*" />
|
||||||
<RowDefinition Height="60" />
|
<RowDefinition Height="60" />
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<StackPanel Grid.Row="0" HorizontalAlignment="Stretch" Orientation="Vertical">
|
<StackPanel
|
||||||
|
Grid.Row="0"
|
||||||
|
HorizontalAlignment="Stretch"
|
||||||
|
Orientation="Vertical">
|
||||||
<StackPanel Width="Auto" Orientation="Vertical">
|
<StackPanel Width="Auto" Orientation="Vertical">
|
||||||
<StackPanel Width="Auto" Orientation="Horizontal">
|
<StackPanel Width="Auto" Orientation="Horizontal">
|
||||||
<CheckBox Name="StartMenuEnabled"
|
<CheckBox
|
||||||
Width="200"
|
Name="StartMenuEnabled"
|
||||||
Margin="70,8,10,8"
|
Width="200"
|
||||||
Content="{DynamicResource flowlauncher_plugin_program_index_start}"
|
Margin="70,8,10,8"
|
||||||
IsChecked="{Binding EnableStartMenuSource}"
|
Content="{DynamicResource flowlauncher_plugin_program_index_start}"
|
||||||
ToolTip="{DynamicResource flowlauncher_plugin_program_index_start_tooltip}" />
|
IsChecked="{Binding EnableStartMenuSource}"
|
||||||
<CheckBox Name="RegistryEnabled"
|
ToolTip="{DynamicResource flowlauncher_plugin_program_index_start_tooltip}" />
|
||||||
Margin="70,8,10,8"
|
<CheckBox
|
||||||
Content="{DynamicResource flowlauncher_plugin_program_index_registry}"
|
Name="RegistryEnabled"
|
||||||
IsChecked="{Binding EnableRegistrySource}"
|
Margin="70,8,10,8"
|
||||||
ToolTip="{DynamicResource flowlauncher_plugin_program_index_registry_tooltip}" />
|
Content="{DynamicResource flowlauncher_plugin_program_index_registry}"
|
||||||
|
IsChecked="{Binding EnableRegistrySource}"
|
||||||
|
ToolTip="{DynamicResource flowlauncher_plugin_program_index_registry_tooltip}" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<Separator Height="1" BorderBrush="{DynamicResource Color03B}" BorderThickness="1" />
|
<Separator
|
||||||
|
Height="1"
|
||||||
|
BorderBrush="{DynamicResource Color03B}"
|
||||||
|
BorderThickness="1" />
|
||||||
<StackPanel Width="Auto" Orientation="Horizontal">
|
<StackPanel Width="Auto" Orientation="Horizontal">
|
||||||
<CheckBox Name="HideLnkEnabled"
|
<CheckBox
|
||||||
Width="200"
|
Name="HideLnkEnabled"
|
||||||
Margin="70,8,10,8"
|
Width="200"
|
||||||
Content="{DynamicResource flowlauncher_plugin_program_enable_hidelnkpath}"
|
Margin="70,8,10,8"
|
||||||
IsChecked="{Binding HideAppsPath}"
|
Content="{DynamicResource flowlauncher_plugin_program_enable_hidelnkpath}"
|
||||||
ToolTip="{DynamicResource flowlauncher_plugin_program_enable_hidelnkpath_tooltip}" />
|
IsChecked="{Binding HideAppsPath}"
|
||||||
<CheckBox Name="DescriptionEnabled"
|
ToolTip="{DynamicResource flowlauncher_plugin_program_enable_hidelnkpath_tooltip}" />
|
||||||
Margin="70,8,10,8"
|
<CheckBox
|
||||||
Content="{DynamicResource flowlauncher_plugin_program_enable_description}"
|
Name="DescriptionEnabled"
|
||||||
IsChecked="{Binding EnableDescription}"
|
Margin="70,8,10,8"
|
||||||
ToolTip="{DynamicResource flowlauncher_plugin_program_enable_description_tooltip}" />
|
Content="{DynamicResource flowlauncher_plugin_program_enable_description}"
|
||||||
|
IsChecked="{Binding EnableDescription}"
|
||||||
|
ToolTip="{DynamicResource flowlauncher_plugin_program_enable_description_tooltip}" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<Separator Height="1" BorderBrush="{DynamicResource Color03B}" BorderThickness="1" />
|
<Separator
|
||||||
|
Height="1"
|
||||||
|
BorderBrush="{DynamicResource Color03B}"
|
||||||
|
BorderThickness="1" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<StackPanel Width="Auto"
|
<StackPanel
|
||||||
Margin="10,6,0,0"
|
Width="Auto"
|
||||||
HorizontalAlignment="Left"
|
Margin="10,6,0,0"
|
||||||
Orientation="Horizontal">
|
HorizontalAlignment="Left"
|
||||||
<Button x:Name="btnLoadAllProgramSource"
|
Orientation="Horizontal">
|
||||||
Width="100"
|
<Button
|
||||||
Margin="10"
|
x:Name="btnLoadAllProgramSource"
|
||||||
HorizontalAlignment="Right"
|
Width="120"
|
||||||
Click="btnLoadAllProgramSource_OnClick"
|
Margin="10,10,5,10"
|
||||||
Content="{DynamicResource flowlauncher_plugin_program_all_programs}" />
|
HorizontalAlignment="Right"
|
||||||
<Button x:Name="btnProgramSuffixes"
|
Click="btnLoadAllProgramSource_OnClick"
|
||||||
Width="100"
|
Content="{DynamicResource flowlauncher_plugin_program_all_programs}" />
|
||||||
Margin="10"
|
<Button
|
||||||
HorizontalAlignment="Right"
|
x:Name="btnProgramSuffixes"
|
||||||
Click="BtnProgramSuffixes_OnClick"
|
Width="120"
|
||||||
Content="{DynamicResource flowlauncher_plugin_program_suffixes}" />
|
Margin="5,10,5,10"
|
||||||
<Button x:Name="btnReindex"
|
HorizontalAlignment="Right"
|
||||||
Width="100"
|
Click="BtnProgramSuffixes_OnClick"
|
||||||
Margin="10"
|
Content="{DynamicResource flowlauncher_plugin_program_suffixes}" />
|
||||||
HorizontalAlignment="Right"
|
<Button
|
||||||
Click="btnReindex_Click"
|
x:Name="btnReindex"
|
||||||
Content="{DynamicResource flowlauncher_plugin_program_reindex}" />
|
Width="120"
|
||||||
<StackPanel x:Name="indexingPanel"
|
Margin="5,10,5,10"
|
||||||
HorizontalAlignment="Left"
|
HorizontalAlignment="Right"
|
||||||
Orientation="Horizontal"
|
Click="btnReindex_Click"
|
||||||
Visibility="Hidden">
|
Content="{DynamicResource flowlauncher_plugin_program_reindex}" />
|
||||||
<ProgressBar x:Name="progressBarIndexing"
|
<StackPanel
|
||||||
Width="80"
|
x:Name="indexingPanel"
|
||||||
Height="20"
|
HorizontalAlignment="Left"
|
||||||
IsIndeterminate="True"
|
Orientation="Horizontal"
|
||||||
Maximum="100"
|
Visibility="Hidden">
|
||||||
Minimum="0" />
|
<ProgressBar
|
||||||
<TextBlock Height="20"
|
x:Name="progressBarIndexing"
|
||||||
Margin="10,0,0,0"
|
Width="80"
|
||||||
HorizontalAlignment="Center"
|
Height="20"
|
||||||
Text="{DynamicResource flowlauncher_plugin_program_indexing}" />
|
IsIndeterminate="True"
|
||||||
|
Maximum="100"
|
||||||
|
Minimum="0" />
|
||||||
|
<TextBlock
|
||||||
|
Height="20"
|
||||||
|
Margin="10,0,0,0"
|
||||||
|
HorizontalAlignment="Center"
|
||||||
|
Text="{DynamicResource flowlauncher_plugin_program_indexing}" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<ListView x:Name="programSourceView"
|
<ListView
|
||||||
Grid.Row="1"
|
x:Name="programSourceView"
|
||||||
Margin="20,0,20,0"
|
Grid.Row="1"
|
||||||
AllowDrop="True"
|
Margin="20,0,20,0"
|
||||||
BorderBrush="DarkGray"
|
AllowDrop="True"
|
||||||
BorderThickness="1"
|
BorderBrush="DarkGray"
|
||||||
DragEnter="programSourceView_DragEnter"
|
BorderThickness="1"
|
||||||
Drop="programSourceView_Drop"
|
DragEnter="programSourceView_DragEnter"
|
||||||
GridViewColumnHeader.Click="GridViewColumnHeaderClickedHandler"
|
Drop="programSourceView_Drop"
|
||||||
PreviewMouseRightButtonUp="ProgramSourceView_PreviewMouseRightButtonUp"
|
GridViewColumnHeader.Click="GridViewColumnHeaderClickedHandler"
|
||||||
SelectionMode="Extended">
|
PreviewMouseRightButtonUp="ProgramSourceView_PreviewMouseRightButtonUp"
|
||||||
|
SelectionMode="Extended">
|
||||||
<ListView.View>
|
<ListView.View>
|
||||||
<GridView>
|
<GridView>
|
||||||
<GridViewColumn Width="150" Header="Name">
|
<GridViewColumn Width="150" Header="Name">
|
||||||
|
|
@ -107,7 +129,10 @@
|
||||||
<GridViewColumn Header="Enabled">
|
<GridViewColumn Header="Enabled">
|
||||||
<GridViewColumn.CellTemplate>
|
<GridViewColumn.CellTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<TextBlock MaxWidth="60" Text="{Binding Enabled}" TextAlignment="Center" />
|
<TextBlock
|
||||||
|
MaxWidth="60"
|
||||||
|
Text="{Binding Enabled}"
|
||||||
|
TextAlignment="Center" />
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</GridViewColumn.CellTemplate>
|
</GridViewColumn.CellTemplate>
|
||||||
</GridViewColumn>
|
</GridViewColumn>
|
||||||
|
|
@ -121,23 +146,29 @@
|
||||||
</GridView>
|
</GridView>
|
||||||
</ListView.View>
|
</ListView.View>
|
||||||
</ListView>
|
</ListView>
|
||||||
<DockPanel Grid.Row="2" Grid.RowSpan="1" Margin="0,0,20,10">
|
<DockPanel
|
||||||
|
Grid.Row="2"
|
||||||
|
Grid.RowSpan="1"
|
||||||
|
Margin="0,0,20,10">
|
||||||
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
||||||
<Button x:Name="btnProgramSourceStatus"
|
<Button
|
||||||
Width="100"
|
x:Name="btnProgramSourceStatus"
|
||||||
Margin="10"
|
Width="100"
|
||||||
Click="btnProgramSourceStatus_OnClick"
|
Margin="10"
|
||||||
Content="{DynamicResource flowlauncher_plugin_program_disable}" />
|
Click="btnProgramSourceStatus_OnClick"
|
||||||
<Button x:Name="btnEditProgramSource"
|
Content="{DynamicResource flowlauncher_plugin_program_disable}" />
|
||||||
Width="100"
|
<Button
|
||||||
Margin="10"
|
x:Name="btnEditProgramSource"
|
||||||
Click="btnEditProgramSource_OnClick"
|
Width="100"
|
||||||
Content="{DynamicResource flowlauncher_plugin_program_edit}" />
|
Margin="10"
|
||||||
<Button x:Name="btnAddProgramSource"
|
Click="btnEditProgramSource_OnClick"
|
||||||
Width="100"
|
Content="{DynamicResource flowlauncher_plugin_program_edit}" />
|
||||||
Margin="10,10,0,10"
|
<Button
|
||||||
Click="btnAddProgramSource_OnClick"
|
x:Name="btnAddProgramSource"
|
||||||
Content="{DynamicResource flowlauncher_plugin_program_add}" />
|
Width="100"
|
||||||
|
Margin="10,10,0,10"
|
||||||
|
Click="btnAddProgramSource_OnClick"
|
||||||
|
Content="{DynamicResource flowlauncher_plugin_program_add}" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue