130 lines
8.1 KiB
XML
130 lines
8.1 KiB
XML
<Window x:Class="ZNTechClone.MainWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:shell="clr-namespace:System.Windows.Shell;assembly=PresentationFramework"
|
|
Title="ZNTech" Width="1280" Height="820" MinWidth="1040" MinHeight="660"
|
|
WindowStyle="None" Background="{StaticResource B.Window}"
|
|
WindowStartupLocation="CenterScreen" ResizeMode="CanResize">
|
|
<shell:WindowChrome.WindowChrome>
|
|
<shell:WindowChrome CaptionHeight="0" ResizeBorderThickness="6" GlassFrameThickness="0" CornerRadius="0"/>
|
|
</shell:WindowChrome.WindowChrome>
|
|
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="232"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<!-- 侧栏 -->
|
|
<Border Grid.Column="0" Background="{StaticResource B.Sidebar}" BorderBrush="{StaticResource B.BorderSoft}" BorderThickness="0,0,1,0">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="70"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- logo -->
|
|
<Grid Grid.Row="0" Margin="18,0" MouseLeftButtonDown="TitleBar_Drag">
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
|
|
<Border Width="30" Height="30" CornerRadius="9" Background="{StaticResource B.AccentGradient}">
|
|
<TextBlock Text="Z" Foreground="White" FontWeight="Bold" FontSize="16"
|
|
HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
</Border>
|
|
<StackPanel Margin="10,0,0,0" VerticalAlignment="Center">
|
|
<TextBlock Text="ZNTech" FontWeight="SemiBold" FontSize="14"/>
|
|
<TextBlock Text="v1.1.1 · 复刻版" Style="{StaticResource Faint}" FontSize="10"/>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Grid>
|
|
|
|
<!-- 导航 -->
|
|
<StackPanel Grid.Row="1" Margin="10,4,10,0">
|
|
<RadioButton x:Name="NavHop" GroupName="nav" Style="{StaticResource Nav}" IsChecked="True" Checked="Nav_Checked" Tag="hop">
|
|
<StackPanel Orientation="Horizontal"><TextBlock Text="连跳" Margin="0"/></StackPanel>
|
|
</RadioButton>
|
|
<RadioButton x:Name="NavKnife" GroupName="nav" Style="{StaticResource Nav}" Checked="Nav_Checked" Tag="knife">
|
|
<StackPanel Orientation="Horizontal"><TextBlock Text="刀喷"/></StackPanel>
|
|
</RadioButton>
|
|
<RadioButton x:Name="NavMap" GroupName="nav" Style="{StaticResource Nav}" Checked="Nav_Checked" Tag="map">
|
|
<StackPanel Orientation="Horizontal"><TextBlock Text="地图"/></StackPanel>
|
|
</RadioButton>
|
|
<RadioButton x:Name="NavAnon" GroupName="nav" Style="{StaticResource Nav}" Checked="Nav_Checked" Tag="anon">
|
|
<StackPanel Orientation="Horizontal"><TextBlock Text="匿名"/></StackPanel>
|
|
</RadioButton>
|
|
<RadioButton x:Name="NavSkins" GroupName="nav" Style="{StaticResource Nav}" Checked="Nav_Checked" Tag="skins">
|
|
<StackPanel Orientation="Horizontal"><TextBlock Text="换肤"/></StackPanel>
|
|
</RadioButton>
|
|
<RadioButton x:Name="NavAnnounce" GroupName="nav" Style="{StaticResource Nav}" Checked="Nav_Checked" Tag="announce">
|
|
<StackPanel Orientation="Horizontal"><TextBlock Text="公告"/></StackPanel>
|
|
</RadioButton>
|
|
<Border Height="1" Background="{StaticResource B.BorderSoft}" Margin="8,10,8,10"/>
|
|
<RadioButton x:Name="NavSettings" GroupName="nav" Style="{StaticResource Nav}" Checked="Nav_Checked" Tag="settings">
|
|
<StackPanel Orientation="Horizontal"><TextBlock Text="设置"/></StackPanel>
|
|
</RadioButton>
|
|
</StackPanel>
|
|
|
|
<!-- 账号 -->
|
|
<Border Grid.Row="2" Style="{StaticResource CardTight}" Margin="12,10,12,14">
|
|
<StackPanel>
|
|
<StackPanel Orientation="Horizontal">
|
|
<Border Width="28" Height="28" CornerRadius="14" Background="{StaticResource B.Accent}">
|
|
<TextBlock x:Name="AvatarText" Text="D" Foreground="White" FontWeight="Bold"
|
|
HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
</Border>
|
|
<StackPanel Margin="10,0,0,0" VerticalAlignment="Center">
|
|
<TextBlock x:Name="AccountName" Text="demo" FontWeight="SemiBold" FontSize="13"/>
|
|
<TextBlock x:Name="AccountTime" Text="—" Style="{StaticResource Faint}" FontSize="11" Margin="0,1,0,0"/>
|
|
<TextBlock x:Name="AccountExpiry" Text="" Style="{StaticResource Faint}" FontSize="10" Margin="0,1,0,0"/>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
<Grid Margin="0,10,0,0">
|
|
<Button Content="刷新" Style="{StaticResource Ghost}" Height="28" Padding="10,0"
|
|
HorizontalAlignment="Left" Click="Refresh_Click"/>
|
|
<Button Content="退出登录" Style="{StaticResource DangerGhost}" Height="28" Padding="10,0"
|
|
HorizontalAlignment="Right" Click="Logout_Click"/>
|
|
</Grid>
|
|
</StackPanel>
|
|
</Border>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<!-- 主区 -->
|
|
<Grid Grid.Column="1">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="74"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- 头部 -->
|
|
<Grid Grid.Row="0" Margin="26,0,14,0" MouseLeftButtonDown="TitleBar_Drag">
|
|
<StackPanel VerticalAlignment="Center">
|
|
<TextBlock x:Name="PageTitle" Text="连跳" FontSize="22" FontWeight="Bold"/>
|
|
<TextBlock x:Name="PageSub" Text="一键连跳 / 二段跳 / 上坡模式" Style="{StaticResource Dim}" Margin="0,3,0,0"/>
|
|
</StackPanel>
|
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
|
|
<Border x:Name="MacroBadge" CornerRadius="12" Background="#FFF2F5FA" BorderBrush="{StaticResource B.Border}" BorderThickness="1" Padding="10,5" Margin="0,0,10,0">
|
|
<StackPanel Orientation="Horizontal">
|
|
<Ellipse x:Name="MacroDot" Width="7" Height="7" Fill="{StaticResource B.Danger}" VerticalAlignment="Center"/>
|
|
<TextBlock x:Name="MacroText" Text="宏未启动" FontSize="11" Margin="7,0,0,0" Foreground="{StaticResource B.TextDim}"/>
|
|
</StackPanel>
|
|
</Border>
|
|
<Button x:Name="PauseBtn" Content="暂停 F8" Style="{StaticResource Ghost}" Height="30" Padding="12,0" Margin="0,0,8,0" Click="Pause_Click"/>
|
|
<Button Content="—" Style="{StaticResource Ghost}" Width="34" Height="30" Click="Minimize_Click"/>
|
|
<Button Style="{StaticResource Ghost}" Width="34" Height="30" Margin="8,0,0,0" Click="Close_Click">
|
|
<Path Data="M 0,0 L 10,10 M 10,0 L 0,10" Stroke="#FF4B5563" StrokeThickness="1.4"
|
|
HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
</Button>
|
|
</StackPanel>
|
|
</Grid>
|
|
|
|
<!-- 内容 -->
|
|
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto" Padding="26,4,26,26">
|
|
<ContentControl x:Name="PageHost"/>
|
|
</ScrollViewer>
|
|
</Grid>
|
|
</Grid>
|
|
</Window>
|
|
|