From df9ddb06ac6e030f060cc9af85034962d7c2d557 Mon Sep 17 00:00:00 2001 From: DB p Date: Tue, 30 Nov 2021 16:06:30 +0900 Subject: [PATCH] Add Custom TitleBar --- Flow.Launcher/WelcomeWindow.xaml | 70 ++++++++++++++++++++++++++++- Flow.Launcher/WelcomeWindow.xaml.cs | 5 +++ 2 files changed, 74 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher/WelcomeWindow.xaml b/Flow.Launcher/WelcomeWindow.xaml index e23f795f9..e8fdba4d0 100644 --- a/Flow.Launcher/WelcomeWindow.xaml +++ b/Flow.Launcher/WelcomeWindow.xaml @@ -9,7 +9,75 @@ Title="Welcome to Flow Launcher" Width="550" Height="650" + Background="{DynamicResource PopuBGColor}" + Foreground="{DynamicResource PopupTextColor}" + ResizeMode="NoResize" WindowStartupLocation="CenterScreen" mc:Ignorable="d"> - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Flow.Launcher/WelcomeWindow.xaml.cs b/Flow.Launcher/WelcomeWindow.xaml.cs index c946ae900..e150afce6 100644 --- a/Flow.Launcher/WelcomeWindow.xaml.cs +++ b/Flow.Launcher/WelcomeWindow.xaml.cs @@ -23,5 +23,10 @@ namespace Flow.Launcher { InitializeComponent(); } + + private void BtnCancel_OnClick(object sender, RoutedEventArgs e) + { + Close(); + } } }