mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
121 lines
5.3 KiB
Text
121 lines
5.3 KiB
Text
|
|
<Window
|
||
|
|
x:Class="Flow.Launcher.Plugin.Sys.CommandKeywordSettingWindow"
|
||
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
|
|
Title="{DynamicResource lowlauncher_plugin_sys_command_keyword_setting_window_title}"
|
||
|
|
Width="550"
|
||
|
|
Background="{DynamicResource PopupBGColor}"
|
||
|
|
Foreground="{DynamicResource PopupTextColor}"
|
||
|
|
ResizeMode="NoResize"
|
||
|
|
SizeToContent="Height"
|
||
|
|
WindowStartupLocation="CenterScreen"
|
||
|
|
mc:Ignorable="d">
|
||
|
|
<WindowChrome.WindowChrome>
|
||
|
|
<WindowChrome CaptionHeight="32" ResizeBorderThickness="{x:Static SystemParameters.WindowResizeBorderThickness}" />
|
||
|
|
</WindowChrome.WindowChrome>
|
||
|
|
<Grid>
|
||
|
|
<Grid.RowDefinitions>
|
||
|
|
<RowDefinition />
|
||
|
|
<RowDefinition Height="80" />
|
||
|
|
</Grid.RowDefinitions>
|
||
|
|
|
||
|
|
<StackPanel Grid.Row="0">
|
||
|
|
<StackPanel>
|
||
|
|
<Grid>
|
||
|
|
<Grid.ColumnDefinitions>
|
||
|
|
<ColumnDefinition Width="*" />
|
||
|
|
<ColumnDefinition Width="Auto" />
|
||
|
|
</Grid.ColumnDefinitions>
|
||
|
|
<Button
|
||
|
|
Grid.Column="1"
|
||
|
|
Click="OnCancelButtonClick"
|
||
|
|
Style="{StaticResource TitleBarCloseButtonStyle}">
|
||
|
|
<Path
|
||
|
|
Width="46"
|
||
|
|
Height="32"
|
||
|
|
Data="M 18,11 27,20 M 18,20 27,11"
|
||
|
|
Stroke="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type Button}}}"
|
||
|
|
StrokeThickness="1">
|
||
|
|
<Path.Style>
|
||
|
|
<Style TargetType="Path">
|
||
|
|
<Style.Triggers>
|
||
|
|
<DataTrigger Binding="{Binding Path=IsActive, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" Value="False">
|
||
|
|
<Setter Property="Opacity" Value="0.5" />
|
||
|
|
</DataTrigger>
|
||
|
|
</Style.Triggers>
|
||
|
|
</Style>
|
||
|
|
</Path.Style>
|
||
|
|
</Path>
|
||
|
|
</Button>
|
||
|
|
</Grid>
|
||
|
|
</StackPanel>
|
||
|
|
<StackPanel Margin="26 12 26 0">
|
||
|
|
<StackPanel Margin="0 0 0 12">
|
||
|
|
<TextBlock
|
||
|
|
Grid.Column="0"
|
||
|
|
Margin="0 0 0 0"
|
||
|
|
FontSize="20"
|
||
|
|
FontWeight="SemiBold"
|
||
|
|
Text="{DynamicResource flowlauncher_plugin_sys_custom_command_keyword}"
|
||
|
|
TextAlignment="Left" />
|
||
|
|
</StackPanel>
|
||
|
|
|
||
|
|
<StackPanel>
|
||
|
|
<TextBlock
|
||
|
|
x:Name="CommandKeywordTips"
|
||
|
|
FontSize="14"
|
||
|
|
TextAlignment="Left"
|
||
|
|
TextWrapping="WrapWithOverflow" />
|
||
|
|
</StackPanel>
|
||
|
|
|
||
|
|
<Grid Margin="0 24 0 24">
|
||
|
|
<Grid.ColumnDefinitions>
|
||
|
|
<ColumnDefinition Width="Auto" />
|
||
|
|
<ColumnDefinition Width="*" />
|
||
|
|
<ColumnDefinition Width="Auto" />
|
||
|
|
</Grid.ColumnDefinitions>
|
||
|
|
<TextBlock
|
||
|
|
Grid.Column="0"
|
||
|
|
HorizontalAlignment="Right"
|
||
|
|
VerticalAlignment="Center"
|
||
|
|
FontSize="14"
|
||
|
|
Text="{DynamicResource flowlauncher_plugin_sys_command_keyword}" />
|
||
|
|
<TextBox
|
||
|
|
x:Name="CommandKeyword"
|
||
|
|
Grid.Column="1"
|
||
|
|
Margin="10"
|
||
|
|
HorizontalAlignment="Stretch" />
|
||
|
|
<Button
|
||
|
|
x:Name="btnTestActionKeyword"
|
||
|
|
Grid.Row="1"
|
||
|
|
Grid.Column="2"
|
||
|
|
Margin="0 0 10 0"
|
||
|
|
Padding="10 5 10 5"
|
||
|
|
Click="OnResetButtonClick"
|
||
|
|
Content="{DynamicResource flowlauncher_plugin_sys_reset}" />
|
||
|
|
</Grid>
|
||
|
|
</StackPanel>
|
||
|
|
</StackPanel>
|
||
|
|
<Border
|
||
|
|
Grid.Row="1"
|
||
|
|
Background="{DynamicResource PopupButtonAreaBGColor}"
|
||
|
|
BorderBrush="{DynamicResource PopupButtonAreaBorderColor}"
|
||
|
|
BorderThickness="0 1 0 0">
|
||
|
|
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
|
||
|
|
<Button
|
||
|
|
MinWidth="140"
|
||
|
|
Margin="10 0 5 0"
|
||
|
|
Click="OnCancelButtonClick"
|
||
|
|
Content="{DynamicResource flowlauncher_plugin_sys_cancel}" />
|
||
|
|
<Button
|
||
|
|
MinWidth="140"
|
||
|
|
Margin="5 0 10 0"
|
||
|
|
Click="OnConfirmButtonClick"
|
||
|
|
Content="{DynamicResource flowlauncher_plugin_sys_confirm}"
|
||
|
|
Style="{DynamicResource AccentButtonStyle}" />
|
||
|
|
</StackPanel>
|
||
|
|
</Border>
|
||
|
|
</Grid>
|
||
|
|
</Window>
|