mirror of
https://github.com/nomi-san/parsec-vdd.git
synced 2026-08-07 13:50:45 +00:00
111 lines
5.5 KiB
XML
111 lines
5.5 KiB
XML
<Window
|
|
x:Class="ParsecVDisplay.MainWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:local="clr-namespace:ParsecVDisplay"
|
|
xmlns:components="clr-namespace:ParsecVDisplay.Components"
|
|
mc:Ignorable="d"
|
|
|
|
Icon="./Resources/icon.ico"
|
|
WindowStyle="None"
|
|
BorderThickness="0"
|
|
Width="800" Height="450"
|
|
ResizeMode="NoResize"
|
|
|
|
WindowStartupLocation="CenterScreen"
|
|
Loaded="Window_Loaded"
|
|
Unloaded="Window_Unloaded"
|
|
KeyDown="Window_KeyDown"
|
|
>
|
|
<Grid MouseDown="Grid_MouseDown">
|
|
<Grid.Background>
|
|
<ImageBrush ImageSource="Resources/background.png"/>
|
|
</Grid.Background>
|
|
|
|
<Label x:Name="xNoDisplay" Content="{DynamicResource t_hint_add_display_first}" Foreground="#AAA" FontSize="16"
|
|
HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,183,0,0" />
|
|
|
|
<WrapPanel x:Name="xDisplays" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="20,0,20,52">
|
|
<components:DisplayItem />
|
|
</WrapPanel>
|
|
|
|
<StackPanel x:Name="xButtons" Margin="0,0,25,25" Orientation="Horizontal" Height="36" VerticalAlignment="Bottom" HorizontalAlignment="Right">
|
|
<components:Button FontSize="14" Width="40" Click="OpenDisplaySettings">
|
|
<components:Button.Children>
|
|
<Image Source="Resources/settings.png" Width="24" Height="24" />
|
|
</components:Button.Children>
|
|
</components:Button>
|
|
|
|
<components:Button FontSize="14" Width="40" Margin="10,0,0,0" Click="SyncSettings">
|
|
<components:Button.Children>
|
|
<Image Source="Resources/sync.png" Width="24" Height="24" />
|
|
</components:Button.Children>
|
|
</components:Button>
|
|
|
|
<components:Button Click="OpenCustom" FontSize="14" Margin="10,0,0,0" Width="100">
|
|
<components:Button.Children>
|
|
<TextBlock Text="{DynamicResource t_custom}" />
|
|
</components:Button.Children>
|
|
</components:Button>
|
|
<components:Button x:Name="xAdd" Click="AddDisplay" FontSize="14" Margin="25,0,0,0" Width="120">
|
|
<components:Button.Children>
|
|
<TextBlock Text="{DynamicResource t_add_display}" />
|
|
</components:Button.Children>
|
|
</components:Button>
|
|
</StackPanel>
|
|
|
|
<StackPanel Margin="25,0,0,20" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="230">
|
|
<StackPanel Orientation="Horizontal">
|
|
<Image Source="./Resources/icon.ico" Width="20" Height="18" Margin="0,0,5,0" />
|
|
<Label x:Name="xAppName" Content="ParsecVDisplay" FontSize="14" Cursor="Hand" MouseDown="QueryStatus">
|
|
<Label.Style>
|
|
<Style TargetType="Label">
|
|
<Setter Property="Foreground" Value="White" />
|
|
<Style.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="Foreground" Value="#66b3ff" />
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Label.Style>
|
|
</Label>
|
|
</StackPanel>
|
|
<StackPanel Orientation="Horizontal">
|
|
<Image Source="Resources/github.png" Width="20" Height="20" Margin="0,0,5,0" />
|
|
<Label Content="@github/parsec-vdd" FontSize="14" Cursor="Hand" MouseDown="OpenRepoLink">
|
|
<Label.Style>
|
|
<Style TargetType="Label">
|
|
<Setter Property="Foreground" Value="White" />
|
|
<Style.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="Foreground" Value="#66b3ff" />
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Label.Style>
|
|
</Label>
|
|
</StackPanel>
|
|
<TextBlock FontSize="14" Margin="5" Cursor="Hand" MouseDown="LanguageText_MouseEvent" MouseUp="LanguageText_MouseEvent" HorizontalAlignment="Left">
|
|
<TextBlock.Style>
|
|
<Style TargetType="TextBlock">
|
|
<Setter Property="Foreground" Value="White" />
|
|
<Style.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="Foreground" Value="#66b3ff" />
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</TextBlock.Style>
|
|
<TextBlock.ContextMenu>
|
|
<ContextMenu x:Name="xLanguageMenu" />
|
|
</TextBlock.ContextMenu>
|
|
<TextBlock Text="{DynamicResource t_language}" />: <TextBlock Text="{DynamicResource lang_name}" />
|
|
</TextBlock>
|
|
</StackPanel>
|
|
|
|
<Frame Visibility="Hidden" NavigationUIVisibility="Hidden" Background="#C222" x:Name="xFrame" />
|
|
<components:CloseButton Width="48" Height="30" HorizontalAlignment="Right" VerticalAlignment="Top" />
|
|
</Grid>
|
|
</Window> |