mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
- Remove WPF views (ActionKeywordSetting, ExplorerSettings, PreviewPanel, QuickAccessLinkSettings) - Fix NullReferenceException in ActionKeywordModel by initializing settings - Fix (false,false) crash case in EditActionKeywordAsync - Add null-safe dialog patterns for owner window - Move Focus() to OnOpened for reliable control attachment - Add using for Avalonia PreviewPanel namespace in ResultManager - Update Main.cs to use AvaloniaControl return type
60 lines
2.9 KiB
XML
60 lines
2.9 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
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"
|
|
mc:Ignorable="d" d:DesignWidth="400" d:DesignHeight="255"
|
|
x:Class="Flow.Launcher.Plugin.Explorer.Views.Avalonia.ActionKeywordSetting"
|
|
Title="{DynamicResource plugin_explorer_manageactionkeywords_header}"
|
|
Width="400"
|
|
Height="255"
|
|
WindowStartupLocation="CenterScreen"
|
|
CanResize="False">
|
|
|
|
<Grid RowDefinitions="*,80">
|
|
<StackPanel Grid.Row="0" Margin="26,20,26,0" Spacing="15">
|
|
<TextBlock FontSize="20"
|
|
FontWeight="SemiBold"
|
|
Text="{DynamicResource plugin_explorer_manageactionkeywords_header}" />
|
|
|
|
<Grid ColumnDefinitions="150,*" RowDefinitions="Auto,Auto" Margin="0,10,0,0">
|
|
<TextBlock Grid.Row="0" Grid.Column="0"
|
|
VerticalAlignment="Center"
|
|
Text="{DynamicResource plugin_explorer_actionkeyword_current}" />
|
|
<TextBox Grid.Row="0" Grid.Column="1"
|
|
x:Name="TxtCurrentActionKeyword"
|
|
Text="{Binding ActionKeyword, Mode=TwoWay}"
|
|
KeyDown="TxtCurrentActionKeyword_OnKeyDown" />
|
|
|
|
<TextBlock Grid.Row="1" Grid.Column="0"
|
|
Margin="0,15,0,0"
|
|
VerticalAlignment="Center"
|
|
Text="{DynamicResource plugin_explorer_actionkeyword_enabled}" />
|
|
<CheckBox Grid.Row="1" Grid.Column="1"
|
|
Margin="0,15,0,0"
|
|
IsChecked="{Binding KeywordEnabled, Mode=TwoWay}"
|
|
ToolTip.Tip="{DynamicResource plugin_explorer_actionkeyword_enabled_tooltip}" />
|
|
</Grid>
|
|
</StackPanel>
|
|
|
|
<Border Grid.Row="1"
|
|
BorderThickness="0,1,0,0"
|
|
BorderBrush="{DynamicResource SystemControlForegroundBaseMediumLowBrush}">
|
|
<StackPanel Orientation="Horizontal"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Spacing="10">
|
|
<Button x:Name="btnCancel"
|
|
Width="145"
|
|
Height="30"
|
|
Content="{DynamicResource cancel}"
|
|
Click="BtnCancel_OnClick" />
|
|
<Button x:Name="btnDone"
|
|
Width="145"
|
|
Height="30"
|
|
Classes="accent"
|
|
Content="{DynamicResource plugin_explorer_actionkeyword_done}"
|
|
Click="OnDoneButtonClick" />
|
|
</StackPanel>
|
|
</Border>
|
|
</Grid>
|
|
</Window>
|