From f1b0bb82e091466a6606857b1075b76384fda1f1 Mon Sep 17 00:00:00 2001 From: DB p Date: Thu, 10 Apr 2025 01:42:35 +0900 Subject: [PATCH] Remove namespace Add Default Case --- Flow.Launcher/Resources/Controls/InfoBar.xaml | 3 ++- Flow.Launcher/Resources/Controls/InfoBar.xaml.cs | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher/Resources/Controls/InfoBar.xaml b/Flow.Launcher/Resources/Controls/InfoBar.xaml index 3c6780690..2ddcbdd0c 100644 --- a/Flow.Launcher/Resources/Controls/InfoBar.xaml +++ b/Flow.Launcher/Resources/Controls/InfoBar.xaml @@ -3,7 +3,6 @@ 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:converters="clr-namespace:Flow.Launcher.Converters" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:ui="http://schemas.modernwpf.com/2019" @@ -69,10 +68,12 @@ Width="32" Height="32" VerticalAlignment="Center" + AutomationProperties.Name="Close InfoBar" Click="PART_CloseButton_Click" Content="" FontFamily="Segoe MDL2 Assets" FontSize="12" + ToolTip="Close" Visibility="Visible" /> diff --git a/Flow.Launcher/Resources/Controls/InfoBar.xaml.cs b/Flow.Launcher/Resources/Controls/InfoBar.xaml.cs index 77470dbc2..ebf763e22 100644 --- a/Flow.Launcher/Resources/Controls/InfoBar.xaml.cs +++ b/Flow.Launcher/Resources/Controls/InfoBar.xaml.cs @@ -175,6 +175,11 @@ namespace Flow.Launcher.Resources.Controls PART_IconBorder.Background = (Brush)FindResource("InfoBarErrorIcon"); PART_Icon.Glyph = "\xF13D"; break; + default: + PART_Border.Background = (Brush)FindResource("InfoBarInfoBG"); + PART_IconBorder.Background = (Brush)FindResource("InfoBarInfoIcon"); + PART_Icon.Glyph = "\xF13F"; + break; } }