From 5cd8fa9d0b3f7f8b56cf27aec79d06c992a4d714 Mon Sep 17 00:00:00 2001 From: DB p Date: Sun, 21 Apr 2024 21:29:13 +0900 Subject: [PATCH] - Adjust Welcome Window's Hotkey Layout - Remove Comment in Card Control --- Flow.Launcher/Resources/Controls/Card.xaml | 84 ----- .../Resources/Controls/HotkeyDisplay.xaml | 39 +- .../Resources/Controls/HotkeyDisplay.xaml.cs | 11 +- .../Resources/Pages/WelcomePage3.xaml | 355 ++++-------------- Flow.Launcher/WelcomeWindow.xaml | 4 + 5 files changed, 115 insertions(+), 378 deletions(-) diff --git a/Flow.Launcher/Resources/Controls/Card.xaml b/Flow.Launcher/Resources/Controls/Card.xaml index 83449feb0..24a895485 100644 --- a/Flow.Launcher/Resources/Controls/Card.xaml +++ b/Flow.Launcher/Resources/Controls/Card.xaml @@ -114,88 +114,4 @@ - - diff --git a/Flow.Launcher/Resources/Controls/HotkeyDisplay.xaml b/Flow.Launcher/Resources/Controls/HotkeyDisplay.xaml index 1fce67917..9fbbbc1eb 100644 --- a/Flow.Launcher/Resources/Controls/HotkeyDisplay.xaml +++ b/Flow.Launcher/Resources/Controls/HotkeyDisplay.xaml @@ -19,11 +19,22 @@ + + + @@ -37,12 +48,22 @@ - + + + + diff --git a/Flow.Launcher/Resources/Controls/HotkeyDisplay.xaml.cs b/Flow.Launcher/Resources/Controls/HotkeyDisplay.xaml.cs index 7ffd90d5f..063966dc6 100644 --- a/Flow.Launcher/Resources/Controls/HotkeyDisplay.xaml.cs +++ b/Flow.Launcher/Resources/Controls/HotkeyDisplay.xaml.cs @@ -42,7 +42,16 @@ namespace Flow.Launcher.Resources.Controls DependencyProperty.Register("Keys", typeof(string), typeof(HotkeyDisplay), new PropertyMetadata(string.Empty, keyChanged)); - + public string Type + { + get { return (string)GetValue(TypeValueProperty); } + set { SetValue(TypeValueProperty, value); } + } + + public static readonly DependencyProperty TypeValueProperty = + DependencyProperty.Register("Type", typeof(string), typeof(HotkeyDisplay), + new PropertyMetadata(null)); + private static void keyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { var control = d as UserControl; diff --git a/Flow.Launcher/Resources/Pages/WelcomePage3.xaml b/Flow.Launcher/Resources/Pages/WelcomePage3.xaml index e7920d34e..a9e3fa696 100644 --- a/Flow.Launcher/Resources/Pages/WelcomePage3.xaml +++ b/Flow.Launcher/Resources/Pages/WelcomePage3.xaml @@ -2,11 +2,13 @@ x:Class="Flow.Launcher.Resources.Pages.WelcomePage3" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:cc="clr-namespace:Flow.Launcher.Resources.Controls" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="clr-namespace:Flow.Launcher.Resources.Pages" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:ui="http://schemas.modernwpf.com/2019" Title="WelcomePage3" + VerticalAlignment="Stretch" mc:Ignorable="d"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + - - - - - , - - - - - - - + - - - + + - - - - - , - - - - - - - + - - - + + - - - Enter - - - - - - + - - - + + + + + - - - - - - - - + - - - + + - - - - - - - - + - - - + + - - - - - + - - - - - - - + - - - - - - - - - + - - - - - - - - - - - - - - - - - + - - - - + - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - + - - - - - + + + + diff --git a/Flow.Launcher/WelcomeWindow.xaml b/Flow.Launcher/WelcomeWindow.xaml index c7820d436..003dac5bc 100644 --- a/Flow.Launcher/WelcomeWindow.xaml +++ b/Flow.Launcher/WelcomeWindow.xaml @@ -10,6 +10,10 @@ Title="{DynamicResource Welcome_Page1_Title}" Width="550" Height="650" + MinWidth="550" + MinHeight="650" + MaxWidth="550" + MaxHeight="650" Activated="OnActivated" Background="{DynamicResource Color00B}" Foreground="{DynamicResource PopupTextColor}"