Make title bar use Mica

This commit is contained in:
Lncvrt committed 2026-07-30 10:54:40 -07:00
1 parent 6cc881be30
commit 0332c28683
2 files changed
+14 -1

No files matched your search

+11 -1
View File
@@ -12,8 +12,17 @@
<Window.SystemBackdrop>
<MicaBackdrop />
</Window.SystemBackdrop>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="32"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid Margin="16,0,16,0">
<Grid x:Name="AppTitleBar" Grid.Row="0" Background="Transparent">
<TextBlock Text="Password Generator" VerticalAlignment="Center" Margin="12,0,0,0" FontSize="12"/>
</Grid>
<Grid Grid.Row="1" Margin="16,0,16,0">
<StackPanel Spacing="12" HorizontalAlignment="Center" Margin="0,36,0,0">
<TextBlock Text="Password Generator" FontSize="24" FontWeight="Bold" TextAlignment="Center" />
<TextBlock Text="Select a length, or use the slider for a custom value." TextAlignment="Center" />
@@ -50,4 +59,5 @@
</StackPanel>
</StackPanel>
</Grid>
</Grid>
</Window>
+3
View File
@@ -25,6 +25,9 @@ namespace Password_Generator
public MainWindow()
{
InitializeComponent();
ExtendsContentIntoTitleBar = true;
SetTitleBar(AppTitleBar);
_loaded = true;
GeneratePassword();