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

189 lines
12 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<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"/>
</Window.Resources>
<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="NavInstall" GroupName="Nav" IsChecked="True"
Content=" 安装管理" Foreground="{StaticResource Fg}"
Background="Transparent" BorderThickness="0"
Cursor="Hand" Height="36" Padding="16,0"
Checked="NavChanged"/>
<RadioButton x:Name="NavInk" GroupName="Nav"
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="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">
<!-- Install Management -->
<StackPanel x:Name="PanelInstall" Visibility="Visible">
<TextBlock Text="Better-Seewo 安装管理" FontSize="20" FontWeight="SemiBold"
Foreground="#60B0FF" Margin="0,0,0,8"/>
<TextBlock x:Name="InstallStatusText" Text="正在检测状态..." FontSize="13"
Foreground="{StaticResource SubFg}" Margin="0,0,0,16"/>
<Button x:Name="InstallBtn" Content="安装补丁" Width="180" Height="34"
Margin="0,0,0,8" Cursor="Hand" Click="InstallPatch_Click"/>
<Button x:Name="UninstallBtn" Content="卸载补丁" Width="180" Height="34"
Margin="0,0,0,8" Cursor="Hand" Click="UninstallPatch_Click"
IsEnabled="False"/>
<TextBlock x:Name="PatchDetailText" FontSize="12"
Foreground="{StaticResource SubFg}" Margin="0,8,0,0"
TextWrapping="Wrap"/>
<TextBlock Text="" Margin="0,16,0,0"/>
<TextBlock Text="说明" FontSize="16" FontWeight="SemiBold"
Foreground="{StaticResource Fg}" Margin="0,0,0,8"/>
<TextBlock TextWrapping="Wrap" FontSize="12"
Foreground="{StaticResource SubFg}">
• 安装补丁:备份希沃白板关键配置文件,然后应用增强补丁。&#10;
• 卸载补丁:从备份文件(.bak还原原始配置清除注册表修改。&#10;
• 安装后请重启希沃白板使补丁生效。&#10;
• 补丁不修改希沃白板主程序文件,仅修改配置和注册表。
</TextBlock>
</StackPanel>
<!-- Ink Module -->
<StackPanel x:Name="PanelInk" 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="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>
<!-- 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="雾启工作室 × Macrohard Studio · 雾生万象,启以为光" FontSize="11"
Foreground="#404058" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</Grid>
</Border>
</Window>