v1.1.0: 修复入口使用BoardEditMenu/HeadToolBar, 16:9横版UI重做, 进度条在操作时显示, 雾启工作室
This commit is contained in:
@@ -1,107 +1,178 @@
|
||||
<Window x:Class="BetterEN5.UI.BetterSeewoMainWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:ui="clr-namespace:BetterEN5.UI"
|
||||
Title="Better-Seewo"
|
||||
Width="960" Height="640"
|
||||
MinWidth="720" MinHeight="480"
|
||||
WindowStyle="None"
|
||||
ResizeMode="CanResize"
|
||||
AllowsTransparency="True"
|
||||
Background="Transparent"
|
||||
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="WindowBackground">#0D0D1A</Color>
|
||||
<SolidColorBrush x:Key="WindowBorderBrush" Color="#30FFFFFF"/>
|
||||
<SolidColorBrush x:Key="TitleBarBackground" Color="#1A1A2E"/>
|
||||
<SolidColorBrush x:Key="TitleBarForeground" Color="#C0C0D0"/>
|
||||
<SolidColorBrush x:Key="GlowBrush" Color="#40FFFFFF"/>
|
||||
|
||||
<Storyboard x:Key="FadeInStoryboard">
|
||||
<DoubleAnimation Storyboard.TargetProperty="Opacity" From="0" To="1"
|
||||
Duration="0:0:0.4" EasingFunction="{StaticResource Easing}"/>
|
||||
</Storyboard>
|
||||
<Storyboard x:Key="ScaleInStoryboard">
|
||||
<DoubleAnimation Storyboard.TargetProperty="RenderTransform.ScaleX" From="0.95" To="1"
|
||||
Duration="0:0:0.4" EasingFunction="{StaticResource Easing}"/>
|
||||
<DoubleAnimation Storyboard.TargetProperty="RenderTransform.ScaleY" From="0.95" To="1"
|
||||
Duration="0:0:0.4" EasingFunction="{StaticResource Easing}"/>
|
||||
<DoubleAnimation Storyboard.TargetProperty="Opacity" From="0" To="1"
|
||||
Duration="0:0:0.3" EasingFunction="{StaticResource Easing}"/>
|
||||
</Storyboard>
|
||||
<QuadraticEase x:Key="Easing" EasingMode="EaseOut"/>
|
||||
<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="#0D0D1A" BorderBrush="{StaticResource WindowBorderBrush}"
|
||||
BorderThickness="1" Padding="0">
|
||||
<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="36"/>
|
||||
<RowDefinition Height="34"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="24"/>
|
||||
<RowDefinition Height="26"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Border Grid.Row="0" Background="{StaticResource TitleBarBackground}"
|
||||
CornerRadius="12,12,0,0" Padding="0">
|
||||
<!-- Title Bar -->
|
||||
<Border Grid.Row="0" Background="#1A1A2E" CornerRadius="12,12,0,0">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Grid.Column="0" Text="Better-Seewo" FontSize="13"
|
||||
Foreground="{StaticResource TitleBarForeground}"
|
||||
VerticalAlignment="Center" Margin="14,0,0,0"/>
|
||||
<StackPanel Grid.Column="1" Orientation="Horizontal" Margin="0,0,6,0">
|
||||
<Button x:Name="MinimizeButton" Content="─" Width="28" Height="24"
|
||||
Foreground="{StaticResource TitleBarForeground}"
|
||||
<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"
|
||||
Cursor="Hand" Click="Minimize_Click"
|
||||
FontSize="12" FontFamily="Arial"/>
|
||||
<Button x:Name="MaximizeButton" Content="□" Width="28" Height="24"
|
||||
Foreground="{StaticResource TitleBarForeground}"
|
||||
Foreground="{StaticResource SubFg}" FontSize="12"
|
||||
Cursor="Hand" Click="Minimize_Click"/>
|
||||
<Button x:Name="MaxBtn" Content="□" Width="28" Height="22"
|
||||
Background="Transparent" BorderThickness="0"
|
||||
Cursor="Hand" Click="Maximize_Click"
|
||||
FontSize="12" FontFamily="Arial"/>
|
||||
<Button x:Name="CloseButton" Content="✕" Width="28" Height="24"
|
||||
Foreground="{StaticResource TitleBarForeground}"
|
||||
Foreground="{StaticResource SubFg}" FontSize="12"
|
||||
Cursor="Hand" Click="Maximize_Click"/>
|
||||
<Button x:Name="CloseBtn" Content="✕" Width="28" Height="22"
|
||||
Background="Transparent" BorderThickness="0"
|
||||
Cursor="Hand" Click="Close_Click"
|
||||
FontSize="12" FontFamily="Arial"/>
|
||||
Foreground="{StaticResource SubFg}" FontSize="12"
|
||||
Cursor="Hand" Click="Close_Click"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
<Grid Grid.Row="1">
|
||||
<!-- Content -->
|
||||
<Grid Grid.Row="1" Margin="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*" MinWidth="240" MaxWidth="400"/>
|
||||
<ColumnDefinition Width="1" />
|
||||
<ColumnDefinition Width="3*"/>
|
||||
<ColumnDefinition Width="200"/>
|
||||
<ColumnDefinition Width="1"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<!-- Sidebar -->
|
||||
<Border Grid.Column="0" Background="#12121E">
|
||||
<ui:BetterEN5Module x:Name="En5Module"/>
|
||||
<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>
|
||||
|
||||
<Border Grid.Column="1" Background="#252540" Width="1" Opacity="0.5"/>
|
||||
<!-- Divider -->
|
||||
<Rectangle Grid.Column="1" Fill="#252540" Width="1" Opacity="0.5"/>
|
||||
|
||||
<Border Grid.Column="2" Background="#0F0F1A">
|
||||
<ui:ComingSoonModule/>
|
||||
</Border>
|
||||
<!-- 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>
|
||||
|
||||
<Border Grid.Row="2" Background="{StaticResource TitleBarBackground}"
|
||||
CornerRadius="0,0,12,12" Padding="0">
|
||||
<TextBlock Text="Better-Seewo v1.1.0 · 希沃白板增强插件" FontSize="11"
|
||||
Foreground="#505060" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||||
<!-- 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>
|
||||
|
||||
Reference in New Issue
Block a user