[Launcher]Port from WPF-UI to .NET 9 WPF (#36215)

* Initial implementation

* Fix fluent style

* Fix no endline

* Update expect.txt

* Fix formatting

* Fix light theme looking bad on Windows 10

* fix formatting

* test change

* Now really fixed W10

* Add a comment

* Fix typos

* Fix spellcheck errors

* Fix spellcheck pattern for websites

* Change patterns for spellcheck in the right file

* Fix XAML styling

* Fix contrast colors on W11

* Fix formatting

* Removed emty line

* Fix formatting

* Added comment to fluentHC file

* fix comment

* Fix Windows10 again.
Adress feedback.

* W11 fix chaning from high contrast to normal not having correct background

* W10 Fix high contrast not working after switching from light/dark moed

* Address feedback

* Fix formatting

* Second W11 fix chaning from high contrast to normal not having correct background
This commit is contained in:
Ionuț Manța
2024-12-11 11:47:08 +02:00
committed by GitHub
parent bf3474b134
commit 7c6af6580e
20 changed files with 7098 additions and 142 deletions

View File

@@ -6,7 +6,6 @@
xmlns:local="clr-namespace:PowerLauncher"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:p="clr-namespace:PowerLauncher.Properties"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
d:DesignHeight="300"
d:DesignWidth="720"
mc:Ignorable="d">
@@ -40,7 +39,7 @@
<Setter Property="Foreground" Value="Transparent" />
<Style.Triggers>
<DataTrigger Binding="{Binding Path=Text, RelativeSource={RelativeSource TemplatedParent}}" Value="">
<Setter Property="Foreground" Value="{DynamicResource TextPlaceholderColorBrush}" />
<Setter Property="Foreground" Value="{DynamicResource TextControlPlaceholderForeground}" />
</DataTrigger>
</Style.Triggers>
</Style>
@@ -115,11 +114,14 @@
x:FieldModifier="public"
Canvas.ZIndex="-1"
FontSize="{DynamicResource TitleFontSize}"
Foreground="{DynamicResource TextPlaceholderColorBrush}" />
<ui:SymbolIcon
Foreground="{DynamicResource TextControlPlaceholderForeground}" />
<TextBlock
Grid.Column="0"
Margin="10,7,0,0"
AutomationProperties.Name="{x:Static p:Resources.SearchIcon}"
FontFamily="Segoe Fluent Icons, Segoe MDL2 Assets"
FontSize="20"
Foreground="{DynamicResource TextPlaceholderColorBrush}"
Symbol="Search12" />
Foreground="{DynamicResource TextControlPlaceholderForeground}"
Text="&#xE094;" />
</Grid>
</UserControl>