Files
pokerfreak/winui/MainWindow.xaml
T

76 lines
4.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Window
x:Class="Pokerfreak.Cockpit.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Pokerfreak Cockpit">
<Window.SystemBackdrop>
<DesktopAcrylicBackdrop />
</Window.SystemBackdrop>
<!-- Windows-11-Flaeche ohne Verlauf: Farbe nur, wo sie etwas bedeutet. Ein roter Streifen oben heisst Echtgeld. -->
<Grid x:Name="Wurzel" BorderThickness="1">
<Grid.Background>
<SolidColorBrush Color="#F51B1C1F" />
</Grid.Background>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Rectangle x:Name="Streifen" Height="2" VerticalAlignment="Top" IsHitTestVisible="False" Visibility="Collapsed" Fill="#FFE5484D" />
<!-- Eigene Titelleiste: Verbindung, rechts Klon, Laufzeit; Menue und Zahnrad sitzen als weitere
Systemtasten buendig vor Minimieren/Maximieren/Schliessen (je 46 x 32, Standard-Titelleiste).
Das Menue ist die Menueleiste vom Mac (Laeufer neu starten, Not-Aus, Tische ...). -->
<Grid x:Name="Titelleiste" Height="32" Padding="14,0,138,0" ColumnSpacing="8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<StackPanel Orientation="Horizontal" Spacing="7" VerticalAlignment="Center">
<Ellipse x:Name="VerbindungPunkt" Width="7" Height="7" Fill="#99EBEBF5" />
<TextBlock Text="Cockpit" FontSize="12" FontWeight="SemiBold" Foreground="#99EBEBF5" />
<TextBlock x:Name="VerbindungText" FontSize="11" Foreground="#4DEBEBF5"
TextTrimming="CharacterEllipsis" VerticalAlignment="Center" />
</StackPanel>
<StackPanel x:Name="KopfRechts" Grid.Column="1" Orientation="Horizontal" Spacing="8" VerticalAlignment="Center" />
<Button x:Name="MenueKnopf" Grid.Column="2" Width="46" Height="32" Margin="-8,0,0,0" Padding="0"
CornerRadius="0" BorderThickness="0" Background="Transparent" VerticalAlignment="Top"
ToolTipService.ToolTip="Menü: Läufer neu starten, Not-Aus, Tische …">
<Button.Resources>
<SolidColorBrush x:Key="ButtonBackgroundPointerOver" Color="#0FFFFFFF" />
<SolidColorBrush x:Key="ButtonBackgroundPressed" Color="#0AFFFFFF" />
<SolidColorBrush x:Key="ButtonBorderBrushPointerOver" Color="Transparent" />
<SolidColorBrush x:Key="ButtonBorderBrushPressed" Color="Transparent" />
</Button.Resources>
<FontIcon Glyph="&#xE700;" FontSize="11" />
</Button>
<Button x:Name="Zahnrad" Grid.Column="3" Width="46" Height="32" Margin="-8,0,0,0" Padding="0"
CornerRadius="0" BorderThickness="0" Background="Transparent" VerticalAlignment="Top"
ToolTipService.ToolTip="Einstellungen">
<Button.Resources>
<SolidColorBrush x:Key="ButtonBackgroundPointerOver" Color="#0FFFFFFF" />
<SolidColorBrush x:Key="ButtonBackgroundPressed" Color="#0AFFFFFF" />
<SolidColorBrush x:Key="ButtonBorderBrushPointerOver" Color="Transparent" />
<SolidColorBrush x:Key="ButtonBorderBrushPressed" Color="Transparent" />
</Button.Resources>
<FontIcon x:Name="ZahnradZeichen" Glyph="&#xE713;" FontSize="11" />
</Button>
</Grid>
<ContentControl x:Name="Inhalt" Grid.Row="1" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" />
<Rectangle x:Name="Trenner" Grid.Row="2" Height="1" Fill="#12FFFFFF" />
<Grid x:Name="Reiterleiste" Grid.Row="3" Padding="6,4,6,4" ColumnSpacing="2" />
<!-- Eingeklappt (Wurzel.swift `Pille`): ersetzt alles andere, Minimieren klappt hierher -->
<ContentControl x:Name="PilleFlaeche" Grid.RowSpan="4" Visibility="Collapsed"
HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" />
</Grid>
</Window>