Files
Better-Seewo/Better-EN5/UI/BetterSeewoMainWindow.xaml

180 lines
11 KiB
Plaintext
Raw Normal View History

<Window x:Class="BetterEN5.UI.BetterSeewoMainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Better-Seewo"
Width="960" Height="580"
MinWidth="800" MinHeight="480"
WindowStyle="None" ResizeMode="CanResize"
AllowsTransparency="True" Background="Transparent"
WindowStartupLocation="CenterScreen"
FontSize="14">
<Window.Resources>
<Color x:Key="Bg">#0F0F1A</Color>
<Color x:Key="CardBg">#1A1A2E</Color>
<Color x:Key="Accent">#60B0FF</Color>
<Color x:Key="Fg">#D0D0E0</Color>
<Color x:Key="SubFg">#707090</Color>
<SolidColorBrush x:Key="BorderBrush" Color="#25FFFFFF"/>
<QuadraticEase x:Key="EaseOut" EasingMode="EaseOut"/>
</Window.Resources>
<Window.RenderTransform>
<ScaleTransform ScaleX="1" ScaleY="1"/>
</Window.RenderTransform>
<Border CornerRadius="12" Background="#0F0F1A" BorderBrush="{StaticResource BorderBrush}"
BorderThickness="1">
<Border.Effect>
<DropShadowEffect BlurRadius="24" ShadowDepth="4" Opacity="0.3" Color="Black"/>
</Border.Effect>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="34"/>
<RowDefinition Height="*"/>
<RowDefinition Height="26"/>
</Grid.RowDefinitions>
<!-- Title Bar -->
<Border Grid.Row="0" Background="#1A1A2E" CornerRadius="12,12,0,0">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center" Margin="12,0">
<TextBlock Text="✦" FontSize="12" Foreground="#60B0FF" VerticalAlignment="Center"/>
<TextBlock Text=" Better-Seewo" FontSize="13" Foreground="#C0C0D0" VerticalAlignment="Center"/>
</StackPanel>
<StackPanel Grid.Column="1" Orientation="Horizontal">
<Button x:Name="MinBtn" Content="─" Width="28" Height="22"
Background="Transparent" BorderThickness="0"
Foreground="{StaticResource SubFg}" FontSize="12"
Cursor="Hand" Click="Minimize_Click"/>
<Button x:Name="MaxBtn" Content="□" Width="28" Height="22"
Background="Transparent" BorderThickness="0"
Foreground="{StaticResource SubFg}" FontSize="12"
Cursor="Hand" Click="Maximize_Click"/>
<Button x:Name="CloseBtn" Content="✕" Width="28" Height="22"
Background="Transparent" BorderThickness="0"
Foreground="{StaticResource SubFg}" FontSize="12"
Cursor="Hand" Click="Close_Click"/>
</StackPanel>
</Grid>
</Border>
<!-- Content -->
<Grid Grid.Row="1" Margin="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="200"/>
<ColumnDefinition Width="1"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<!-- Sidebar -->
<Border Grid.Column="0" Background="#12121E">
<StackPanel Margin="0,8">
<TextBlock Text="功能模块" FontSize="11" Foreground="{StaticResource SubFg}"
Margin="16,8,16,4"/>
<RadioButton x:Name="NavInk" GroupName="Nav" IsChecked="True"
Content=" 墨迹管理" Foreground="{StaticResource Fg}"
Background="Transparent" BorderThickness="0"
Cursor="Hand" Height="36" Padding="16,0"
Checked="NavChanged"/>
<RadioButton x:Name="NavConvert" GroupName="Nav"
Content=" 文件转换" Foreground="{StaticResource Fg}"
Background="Transparent" BorderThickness="0"
Cursor="Hand" Height="36" Padding="16,0"
Checked="NavChanged"/>
<RadioButton x:Name="NavTouch" GroupName="Nav"
Content=" 触摸修复" Foreground="{StaticResource Fg}"
Background="Transparent" BorderThickness="0"
Cursor="Hand" Height="36" Padding="16,0"
Checked="NavChanged"/>
<RadioButton x:Name="NavBoard" GroupName="Nav"
Content=" 大屏支持" Foreground="{StaticResource Fg}"
Background="Transparent" BorderThickness="0"
Cursor="Hand" Height="36" Padding="16,0"
Checked="NavChanged"/>
<RadioButton x:Name="NavActivate" GroupName="Nav"
Content=" 激活" Foreground="{StaticResource Fg}"
Background="Transparent" BorderThickness="0"
Cursor="Hand" Height="36" Padding="16,0"
Checked="NavChanged"/>
</StackPanel>
</Border>
<!-- Divider -->
<Rectangle Grid.Column="1" Fill="#252540" Width="1" Opacity="0.5"/>
<!-- Content Area -->
<ScrollViewer Grid.Column="2" VerticalScrollBarVisibility="Auto"
Background="#0D0D18" Padding="24,16">
<StackPanel x:Name="ContentPanel">
<!-- Ink Module -->
<StackPanel x:Name="PanelInk" Visibility="Visible">
<TextBlock Text="墨迹管理" FontSize="20" FontWeight="SemiBold"
Foreground="#60B0FF" Margin="0,0,0,16"/>
<TextBlock Text="导出/导入希沃白板课件中的笔迹和标注" FontSize="13"
Foreground="{StaticResource SubFg}" Margin="0,0,0,16"/>
<Button Content="导出墨迹..." Width="180" Height="34" Margin="0,0,0,8" Cursor="Hand" Click="ExportInk_Click"/>
<Button Content="导入墨迹..." Width="180" Height="34" Margin="0,0,8,8" Cursor="Hand" Click="ImportInk_Click"/>
<TextBlock x:Name="InkStatus" FontSize="12" Foreground="{StaticResource SubFg}" Margin="0,8,0,0"/>
</StackPanel>
<!-- Convert Module -->
<StackPanel x:Name="PanelConvert" Visibility="Collapsed">
<TextBlock Text="文件转换" FontSize="20" FontWeight="SemiBold"
Foreground="#60B0FF" Margin="0,0,0,16"/>
<TextBlock Text="PPT 与 ENBX 格式互转" FontSize="13"
Foreground="{StaticResource SubFg}" Margin="0,0,0,16"/>
<Button Content="PPT → ENBX" Width="180" Height="34" Margin="0,0,0,8" Cursor="Hand" Click="ConvertPptx_Click"/>
<Button Content="ENBX → PPT" Width="180" Height="34" Margin="0,0,0,8" Cursor="Hand" Click="ConvertEnbx_Click"/>
<TextBlock x:Name="ConvertStatus" FontSize="12" Foreground="{StaticResource SubFg}" Margin="0,8,0,0"/>
</StackPanel>
<!-- Touch Module -->
<StackPanel x:Name="PanelTouch" Visibility="Collapsed">
<TextBlock Text="触摸修复" FontSize="20" FontWeight="SemiBold"
Foreground="#60B0FF" Margin="0,0,0,16"/>
<TextBlock Text="修复希沃白板在非希沃硬件上的触摸检测问题" FontSize="13"
Foreground="{StaticResource SubFg}" Margin="0,0,0,16"/>
<Button Content="检测触摸状态" Width="180" Height="34" Margin="0,0,0,8" Cursor="Hand" Click="CheckTouch_Click"/>
<Button Content="应用修复" Width="180" Height="34" Margin="0,0,0,8" Cursor="Hand" Click="ApplyTouchFix_Click"/>
<TextBlock x:Name="TouchStatus" FontSize="12" Foreground="{StaticResource SubFg}" Margin="0,8,0,0"/>
</StackPanel>
<!-- Board Module -->
<StackPanel x:Name="PanelBoard" Visibility="Collapsed">
<TextBlock Text="大屏支持" FontSize="20" FontWeight="SemiBold"
Foreground="#60B0FF" Margin="0,0,0,16"/>
<TextBlock Text="为非触摸大屏启用完整白板模式" FontSize="13"
Foreground="{StaticResource SubFg}" Margin="0,0,0,16"/>
<Button Content="配置大屏模式" Width="180" Height="34" Margin="0,0,0,8" Cursor="Hand" Click="EnableBoardSupport_Click"/>
<Button Content="启用 IWB 模式" Width="180" Height="34" Margin="0,0,0,8" Cursor="Hand" Click="EnableIWB_Click"/>
<TextBlock x:Name="BoardStatus" FontSize="12" Foreground="{StaticResource SubFg}" Margin="0,8,0,0"/>
</StackPanel>
<!-- Activate Module -->
<StackPanel x:Name="PanelActivate" Visibility="Collapsed">
<TextBlock Text="专业版激活" FontSize="20" FontWeight="SemiBold"
Foreground="#60B0FF" Margin="0,0,0,16"/>
<TextBlock x:Name="ActivationStatusText" Text="当前状态: 社区版" FontSize="13"
Foreground="{StaticResource SubFg}" Margin="0,0,0,16"/>
<Button Content="输入激活码..." Width="180" Height="34" Margin="0,0,0,8" Cursor="Hand" Click="ActivatePro_Click"/>
<Button Content="打开注册补丁..." Width="180" Height="34" Margin="0,0,0,8" Cursor="Hand" Click="LaunchInstaller_Click"/>
<Button Content="检测激活状态" Width="180" Height="34" Margin="0,0,0,8" Cursor="Hand" Click="CheckActivation_Click"/>
</StackPanel>
</StackPanel>
</ScrollViewer>
</Grid>
<!-- Footer -->
<Border Grid.Row="2" Background="#1A1A2E" CornerRadius="0,0,12,12">
<TextBlock Text="雾启工作室 · 雾生万象,启以为光" FontSize="11"
Foreground="#404058" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</Grid>
</Border>
</Window>