mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
- Add Author name in plugin list
This commit is contained in:
parent
e48761a296
commit
2d98dcbfd8
2 changed files with 227 additions and 1 deletions
|
|
@ -53,7 +53,7 @@
|
|||
<system:String x:Key="newPriority">New Priority:</system:String>
|
||||
<system:String x:Key="priority">Priority</system:String>
|
||||
<system:String x:Key="pluginDirectory">Plugin Directory</system:String>
|
||||
<system:String x:Key="author">Author</system:String>
|
||||
<system:String x:Key="author">Author:</system:String>
|
||||
<system:String x:Key="plugin_init_time">Init time:</system:String>
|
||||
<system:String x:Key="plugin_query_time">Query time:</system:String>
|
||||
|
||||
|
|
|
|||
|
|
@ -806,6 +806,232 @@
|
|||
-->
|
||||
</Grid>
|
||||
</TabItem>
|
||||
|
||||
<TabItem>
|
||||
<TabItem.Header>
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Grid.Column="0" FontFamily="/Resources/#Segoe Fluent Icons" FontSize="20"
|
||||
Margin="0 0 12 0">
|
||||

|
||||
</TextBlock>
|
||||
<TextBlock Grid.Column="1" Text="Plugin Store" />
|
||||
</Grid>
|
||||
</TabItem.Header>
|
||||
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition></ColumnDefinition>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="74"></RowDefinition>
|
||||
<RowDefinition Height="*"></RowDefinition>
|
||||
</Grid.RowDefinitions>
|
||||
<Border Grid.Row="0" Background="#f3f3f3" Padding="5 18 0 0">
|
||||
<TextBlock Text="Plugin Store" TextAlignment="left" FontSize="30" Margin="0 5 0 5"/>
|
||||
</Border>
|
||||
<Border Grid.Column="0" Grid.Row="1" Background="#f3f3f3">
|
||||
<ListBox SelectedItem="{Binding SelectedPlugin}"
|
||||
ItemsSource="{Binding PluginViewModels}"
|
||||
Margin="6, 0, 0, 0" ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
||||
ItemContainerStyle="{StaticResource PluginList}"
|
||||
ScrollViewer.IsDeferredScrollingEnabled="True" ScrollViewer.CanContentScroll="False"
|
||||
Padding="0 0 0 18" Width="Auto" HorizontalAlignment="Stretch">
|
||||
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Expander Grid.Column="4" x:Name="expanderHeader"
|
||||
IsExpanded="{Binding Mode=TwoWay, Path=IsSelected, RelativeSource={RelativeSource AncestorType=ListBoxItem, Mode=FindAncestor}}"
|
||||
FlowDirection="RightToLeft" Background="Transparent" Padding="0"
|
||||
Style="{StaticResource ExpanderStyle1}">
|
||||
<Expander.Header>
|
||||
<Grid FlowDirection="LeftToRight" HorizontalAlignment="Left"
|
||||
Width="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Expander}}, Path=ActualWidth}">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="100" MinWidth="100" />
|
||||
<ColumnDefinition Width="*" MinWidth="350" MaxWidth="700" />
|
||||
<ColumnDefinition MaxWidth="1400" />
|
||||
<ColumnDefinition Width="100" />
|
||||
<ColumnDefinition Width="80" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<StackPanel FlowDirection="LeftToRight" Grid.Column="0" Margin="24 0 0 0"
|
||||
VerticalAlignment="Center">
|
||||
<Image Source="{Binding Image, IsAsync=True}"
|
||||
Width="32" Height="32" Margin="32 0 0 0"
|
||||
FlowDirection="LeftToRight" />
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Column="1" Margin="12 0 14 0">
|
||||
<TextBlock Text="{Binding PluginPair.Metadata.Name}"
|
||||
TextWrapping="Wrap"
|
||||
ToolTip="{Binding PluginPair.Metadata.Version}" />
|
||||
<TextBlock Opacity="0.5" TextWrapping="Wrap" Margin="0 2 0 0">
|
||||
<Run Text="{Binding PluginPair.Metadata.Description}" FontSize="12" />
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Column="3" Orientation="Horizontal">
|
||||
<TextBlock Text="{DynamicResource priority}" Margin="0,0,8,0"
|
||||
MaxWidth="100" VerticalAlignment="Center" FontSize="12"/>
|
||||
<Border CornerRadius="5">
|
||||
<Button x:Name="PriorityButton" Content="{Binding Priority, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Center"
|
||||
ToolTip="Change Plugin Results Priority"
|
||||
Margin="5 0 0 0" Cursor="Hand"
|
||||
Click="OnPluginPriorityClick">
|
||||
<!--#region Priority Button Style-->
|
||||
<Button.Resources>
|
||||
<Style TargetType="Border">
|
||||
<Setter Property="CornerRadius" Value="2"/>
|
||||
</Style>
|
||||
</Button.Resources>
|
||||
<Button.Style>
|
||||
<Style TargetType="Button">
|
||||
<Setter Property="Padding" Value="12 8 12 8" />
|
||||
<Setter Property="BorderThickness" Value="0" />
|
||||
<Setter Property="FontWeight" Value="DemiBold" />
|
||||
<Setter Property="Foreground" Value="Black" />
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding ElementName=PriorityButton, UpdateSourceTrigger=PropertyChanged, Path=Content}" Value="0">
|
||||
<Setter Property="Foreground" Value="#878787" />
|
||||
<Setter Property="FontWeight" Value="Normal" />
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</Button.Style>
|
||||
<!--#endregion-->
|
||||
</Button>
|
||||
</Border>
|
||||
</StackPanel>
|
||||
<ui:ToggleSwitch Grid.Column="4" OffContent="{DynamicResource disable}"
|
||||
OnContent="{DynamicResource enable}"
|
||||
MaxWidth="110" HorizontalAlignment="Right"
|
||||
IsOn="{Binding PluginState}" />
|
||||
</Grid>
|
||||
|
||||
</Expander.Header>
|
||||
|
||||
<Grid FlowDirection="LeftToRight">
|
||||
<StackPanel Orientation="Vertical" Margin="0 12 0 0">
|
||||
<StackPanel>
|
||||
<Border Style="{DynamicResource SettingGroupBox}"
|
||||
Visibility="{Binding ActionKeywordsVisibility}" Height="52" Padding="0"
|
||||
Width="auto" BorderThickness="0 1 0 0" CornerRadius="0">
|
||||
<ItemsControl VerticalAlignment="Center" Padding="22 0 18 0">
|
||||
<DockPanel>
|
||||
<TextBlock FontFamily="/Resources/#Segoe Fluent Icons" FontSize="20" DockPanel.Dock="Left"
|
||||
VerticalAlignment="Center" Margin="48 0 10 0"></TextBlock>
|
||||
<TextBlock Grid.Column="0" Text="{DynamicResource actionKeywords}"
|
||||
Style="{DynamicResource SettingTitleLabel}"
|
||||
Margin="0 0 0 0" VerticalAlignment="Center" HorizontalAlignment="Left" DockPanel.Dock="Left"/>
|
||||
|
||||
|
||||
<Button Grid.Column="2" Content="{Binding ActionKeywordsText}"
|
||||
DockPanel.Dock="Right"
|
||||
Visibility="{Binding ActionKeywordsVisibility}"
|
||||
ToolTip="Change Action Keywords"
|
||||
Margin="5 0 0 0" Cursor="Hand" FontWeight="Bold"
|
||||
Click="OnPluginActionKeywordsClick" HorizontalAlignment="Right"
|
||||
Width="100" Height="40">
|
||||
|
||||
<Button.Resources>
|
||||
<Style TargetType="Border">
|
||||
<Setter Property="CornerRadius" Value="2"/>
|
||||
<Setter Property="BorderThickness" Value="1 1 1 2"/>
|
||||
<Setter Property="BorderBrush" Value="#ececec"/>
|
||||
<Setter Property="Background" Value="#ffffff"/>
|
||||
|
||||
</Style>
|
||||
</Button.Resources>
|
||||
</Button>
|
||||
</DockPanel>
|
||||
|
||||
</ItemsControl>
|
||||
</Border>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel>
|
||||
|
||||
|
||||
<Border Background="White" Padding="0"
|
||||
BorderThickness="0 1 0 0" BorderBrush="#e6e6e6"
|
||||
VerticalAlignment="Center" HorizontalAlignment="Stretch">
|
||||
<!--#region SubInfo Styling -->
|
||||
<Border.Style>
|
||||
<Style TargetType="{x:Type Border}">
|
||||
<Setter Property="Visibility" Value="Visible" />
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding ElementName=SettingControl, Path=ActualHeight}" Value="0">
|
||||
<Setter Property="Visibility" Value="Collapsed" />
|
||||
<Setter Property="BorderThickness" Value="0" />
|
||||
<Setter Property="Padding" Value="0" />
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</Border.Style>
|
||||
</Border>
|
||||
<!--#endregion-->
|
||||
<ContentControl x:Name="SettingControl"
|
||||
Content="{Binding SettingControl}"
|
||||
Padding="1" Margin="0" VerticalAlignment="Stretch"
|
||||
MaxWidth="750" MaxHeight="550">
|
||||
</ContentControl>
|
||||
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel>
|
||||
<Border Style="{DynamicResource SettingGroupBox}" CornerRadius="0"
|
||||
Visibility="{Binding ActionKeywordsVisibility}"
|
||||
VerticalAlignment="Center" Margin="0" BorderThickness="0 1 0 0"
|
||||
Padding="0 12 0 0" >
|
||||
<ItemsControl Style="{DynamicResource SettingGrid}">
|
||||
<StackPanel Style="{StaticResource TextPanel}"
|
||||
Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 -14 0">
|
||||
<TextBlock Text="{DynamicResource author}"
|
||||
FontSize="11" Margin="10 0 0 0" MaxWidth="100" Foreground="#8F8F8F" />
|
||||
<TextBlock Text="{Binding PluginPair.Metadata.Author}" FontSize="11" Foreground="#8F8F8F"
|
||||
Margin="5 0 0 0" MaxWidth="100" />
|
||||
<TextBlock Text="|"
|
||||
FontSize="11" Margin="5 0 0 0" MaxWidth="100" Foreground="#8F8F8F"
|
||||
VerticalAlignment="Center" />
|
||||
<TextBlock Text="{DynamicResource plugin_init_time}"
|
||||
FontSize="11" Margin="10 0 0 0" MaxWidth="100" Foreground="#8F8F8F" />
|
||||
<TextBlock Text="{Binding InitilizaTime}" FontSize="11" Foreground="#8F8F8F"
|
||||
Margin="5 0 0 0" MaxWidth="100" />
|
||||
<TextBlock Text="|"
|
||||
FontSize="11" Margin="5 0 0 0" MaxWidth="100" Foreground="#8F8F8F"
|
||||
VerticalAlignment="Center" />
|
||||
<TextBlock Text="{DynamicResource plugin_query_time}"
|
||||
FontSize="11" Margin="5 0 0 0" MaxWidth="100" Foreground="#8F8F8F" />
|
||||
<TextBlock Text="{Binding QueryTime}" FontSize="11" Foreground="#8F8F8F"
|
||||
Margin="5 0 0 0" MaxWidth="100" />
|
||||
<TextBlock Text="| version"
|
||||
FontSize="11" Margin="5 0 0 0" MaxWidth="100" Foreground="#8F8F8F"
|
||||
VerticalAlignment="Center" />
|
||||
<TextBlock Text="{Binding PluginPair.Metadata.Version}" Foreground="#8F8F8F"
|
||||
FontSize="11" Margin="5 0 0 0" MaxWidth="100"
|
||||
VerticalAlignment="Center" />
|
||||
<TextBlock Text="{DynamicResource pluginDirectory}"
|
||||
MaxWidth="120" Cursor="Hand" Margin="10,0,0,0"
|
||||
MouseUp="OnPluginDirecotyClick" Foreground="Blue"
|
||||
HorizontalAlignment="Right" FontSize="12" VerticalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
|
||||
</ItemsControl>
|
||||
</Border>
|
||||
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Expander>
|
||||
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
</Border>
|
||||
</Grid>
|
||||
</TabItem>
|
||||
|
||||
<TabItem>
|
||||
<TabItem.Header>
|
||||
<Grid>
|
||||
|
|
|
|||
Loading…
Reference in a new issue