|
| 1 | +<Window |
| 2 | + x:Class="Flow.Launcher.PluginSettingsWindow" |
| 3 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 4 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 5 | + xmlns:cc="clr-namespace:Flow.Launcher.Resources.Controls" |
| 6 | + Width="920" |
| 7 | + Height="320" |
| 8 | + MinWidth="720" |
| 9 | + MinHeight="230" |
| 10 | + ResizeMode="CanResize" |
| 11 | + SnapsToDevicePixels="True" |
| 12 | + Loaded="OnLoaded" |
| 13 | + StateChanged="Window_StateChanged" |
| 14 | + UseLayoutRounding="True" |
| 15 | + WindowStartupLocation="CenterScreen"> |
| 16 | + <WindowChrome.WindowChrome> |
| 17 | + <WindowChrome CaptionHeight="32" ResizeBorderThickness="{x:Static SystemParameters.WindowResizeBorderThickness}" /> |
| 18 | + </WindowChrome.WindowChrome> |
| 19 | + <Window.InputBindings> |
| 20 | + <KeyBinding Key="Escape" Command="Close" /> |
| 21 | + </Window.InputBindings> |
| 22 | + <Window.CommandBindings> |
| 23 | + <CommandBinding Command="Close" Executed="OnCloseExecuted" /> |
| 24 | + </Window.CommandBindings> |
| 25 | + |
| 26 | + <Grid> |
| 27 | + <Border Style="{StaticResource WindowMainPanelStyle}"> |
| 28 | + <Grid Background="{DynamicResource Color01B}"> |
| 29 | + <Grid.ColumnDefinitions> |
| 30 | + <ColumnDefinition Width="Auto" /> |
| 31 | + <ColumnDefinition Width="*" /> |
| 32 | + <ColumnDefinition Width="Auto" /> |
| 33 | + <ColumnDefinition Width="Auto" /> |
| 34 | + <ColumnDefinition Width="Auto" /> |
| 35 | + </Grid.ColumnDefinitions> |
| 36 | + <Grid.RowDefinitions> |
| 37 | + <RowDefinition Height="32" /> |
| 38 | + <RowDefinition Height="*" /> |
| 39 | + </Grid.RowDefinitions> |
| 40 | + |
| 41 | + <Image |
| 42 | + Grid.Row="0" |
| 43 | + Grid.Column="0" |
| 44 | + Width="16" |
| 45 | + Height="16" |
| 46 | + Margin="10 4 4 4" |
| 47 | + RenderOptions.BitmapScalingMode="HighQuality" |
| 48 | + Source="/Images/app.png" /> |
| 49 | + <TextBlock |
| 50 | + Grid.Row="0" |
| 51 | + Grid.Column="1" |
| 52 | + Margin="4 0 0 0" |
| 53 | + VerticalAlignment="Center" |
| 54 | + FontSize="12" |
| 55 | + Foreground="{DynamicResource Color05B}" |
| 56 | + Text="{Binding RelativeSource={RelativeSource AncestorType={x:Type Window}}, Path=Title}" /> |
| 57 | + |
| 58 | + <Button |
| 59 | + Grid.Row="0" |
| 60 | + Grid.Column="2" |
| 61 | + Click="OnMinimizeButtonClick" |
| 62 | + RenderOptions.EdgeMode="Aliased" |
| 63 | + Style="{DynamicResource TitleBarButtonStyle}"> |
| 64 | + <Path |
| 65 | + Width="46" |
| 66 | + Height="32" |
| 67 | + Data="M 18,15 H 28" |
| 68 | + Stroke="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type Button}}}" |
| 69 | + StrokeThickness="1"> |
| 70 | + <Path.Style> |
| 71 | + <Style TargetType="Path"> |
| 72 | + <Style.Triggers> |
| 73 | + <DataTrigger Binding="{Binding Path=IsActive, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" Value="False"> |
| 74 | + <Setter Property="Opacity" Value="0.5" /> |
| 75 | + </DataTrigger> |
| 76 | + </Style.Triggers> |
| 77 | + </Style> |
| 78 | + </Path.Style> |
| 79 | + </Path> |
| 80 | + </Button> |
| 81 | + <Button |
| 82 | + Name="MaximizeButton" |
| 83 | + Grid.Row="0" |
| 84 | + Grid.Column="3" |
| 85 | + Click="OnMaximizeRestoreButtonClick" |
| 86 | + Style="{StaticResource TitleBarButtonStyle}"> |
| 87 | + <Path |
| 88 | + Width="46" |
| 89 | + Height="32" |
| 90 | + Data="M 18.5,10.5 H 27.5 V 19.5 H 18.5 Z" |
| 91 | + Stroke="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type Button}}}" |
| 92 | + StrokeThickness="1"> |
| 93 | + <Path.Style> |
| 94 | + <Style TargetType="Path"> |
| 95 | + <Style.Triggers> |
| 96 | + <DataTrigger Binding="{Binding Path=IsActive, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" Value="False"> |
| 97 | + <Setter Property="Opacity" Value="0.5" /> |
| 98 | + </DataTrigger> |
| 99 | + </Style.Triggers> |
| 100 | + </Style> |
| 101 | + </Path.Style> |
| 102 | + </Path> |
| 103 | + </Button> |
| 104 | + <Button |
| 105 | + Grid.Row="0" |
| 106 | + Name="RestoreButton" |
| 107 | + Grid.Column="3" |
| 108 | + Click="OnMaximizeRestoreButtonClick" |
| 109 | + Style="{StaticResource TitleBarButtonStyle}"> |
| 110 | + <Path |
| 111 | + Width="46" |
| 112 | + Height="32" |
| 113 | + Data="M 18.5,12.5 H 25.5 V 19.5 H 18.5 Z M 20.5,12.5 V 10.5 H 27.5 V 17.5 H 25.5" |
| 114 | + Stroke="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type Button}}}" |
| 115 | + StrokeThickness="1"> |
| 116 | + <Path.Style> |
| 117 | + <Style TargetType="Path"> |
| 118 | + <Style.Triggers> |
| 119 | + <DataTrigger Binding="{Binding Path=IsActive, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" Value="False"> |
| 120 | + <Setter Property="Opacity" Value="0.5" /> |
| 121 | + </DataTrigger> |
| 122 | + </Style.Triggers> |
| 123 | + </Style> |
| 124 | + </Path.Style> |
| 125 | + </Path> |
| 126 | + </Button> |
| 127 | + <Button |
| 128 | + Grid.Row="0" |
| 129 | + Grid.Column="4" |
| 130 | + Click="OnCloseButtonClick" |
| 131 | + Style="{StaticResource TitleBarCloseButtonStyle}"> |
| 132 | + <Path |
| 133 | + Width="46" |
| 134 | + Height="32" |
| 135 | + Data="M 18,11 27,20 M 18,20 27,11" |
| 136 | + Stroke="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type Button}}}" |
| 137 | + StrokeThickness="1"> |
| 138 | + <Path.Style> |
| 139 | + <Style TargetType="Path"> |
| 140 | + <Style.Triggers> |
| 141 | + <DataTrigger Binding="{Binding Path=IsActive, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" Value="False"> |
| 142 | + <Setter Property="Opacity" Value="0.5" /> |
| 143 | + </DataTrigger> |
| 144 | + </Style.Triggers> |
| 145 | + </Style> |
| 146 | + </Path.Style> |
| 147 | + </Path> |
| 148 | + </Button> |
| 149 | + |
| 150 | + <Border |
| 151 | + Grid.Row="1" |
| 152 | + Grid.Column="0" |
| 153 | + Grid.ColumnSpan="5" |
| 154 | + Margin="20 8 20 16" |
| 155 | + Background="{DynamicResource Color01B}"> |
| 156 | + <ListBox |
| 157 | + x:Name="PluginListBox" |
| 158 | + Padding="0 0 7 0" |
| 159 | + Background="{DynamicResource Color01B}" |
| 160 | + FontSize="14" |
| 161 | + ItemContainerStyle="{DynamicResource PluginList}" |
| 162 | + ScrollViewer.HorizontalScrollBarVisibility="Disabled" |
| 163 | + SnapsToDevicePixels="True" |
| 164 | + Style="{DynamicResource PluginListStyle}" |
| 165 | + VirtualizingPanel.ScrollUnit="Pixel" |
| 166 | + VirtualizingStackPanel.IsVirtualizing="True" |
| 167 | + VirtualizingStackPanel.VirtualizationMode="Recycling"> |
| 168 | + <ListBox.ItemTemplate> |
| 169 | + <DataTemplate> |
| 170 | + <cc:InstalledPluginDisplay /> |
| 171 | + </DataTemplate> |
| 172 | + </ListBox.ItemTemplate> |
| 173 | + </ListBox> |
| 174 | + </Border> |
| 175 | + </Grid> |
| 176 | + </Border> |
| 177 | + </Grid> |
| 178 | +</Window> |
0 commit comments