Files
community/Ink Canvas/Windows/SettingsViews/Pages/StartupPage.xaml
T

118 lines
6.7 KiB
XML
Raw Normal View History

2026-04-07 23:32:20 +08:00
<ui:Page x:Class="Ink_Canvas.Windows.SettingsViews.Pages.StartupPage"
2026-03-29 12:38:46 +08:00
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
2026-04-05 21:50:53 +08:00
xmlns:local="clr-namespace:Ink_Canvas.Windows.SettingsViews.Pages"
xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern"
xmlns:ikw="http://schemas.inkore.net/lib/ui/wpf"
xmlns:i18n="clr-namespace:Ink_Canvas.MarkupExtensions"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
2026-03-29 12:38:46 +08:00
mc:Ignorable="d"
2026-04-07 23:46:26 +08:00
2026-03-29 17:39:52 +08:00
Title="启动">
2026-03-29 12:38:46 +08:00
2026-04-07 23:32:20 +08:00
<ScrollViewer Padding="59,0,59,0" PanningMode="VerticalFirst">
<FrameworkElement.Resources>
<!-- Spacing between cards -->
<sys:Double x:Key="SettingsCardSpacing">4</sys:Double>
<!-- Style (inc. the correct spacing) of a section header -->
<Style x:Key="SettingsSectionHeaderTextBlockStyle"
BasedOn="{StaticResource BodyStrongTextBlockStyle}"
TargetType="TextBlock">
<Style.Setters>
<Setter Property="Margin" Value="1,30,0,6" />
</Style.Setters>
</Style>
</FrameworkElement.Resources>
<Grid>
<ikw:SimpleStackPanel MaxWidth="1000"
HorizontalAlignment="Stretch"
Spacing="{StaticResource SettingsCardSpacing}">
2026-04-04 11:33:47 +08:00
<!-- 窗口设置 -->
<TextBlock Style="{StaticResource SettingsSectionHeaderTextBlockStyle}"
2026-04-04 11:33:47 +08:00
Text="窗口设置" />
<!-- 窗口无焦点模式 -->
<ui:SettingsCard Description="{i18n:I18n Key=Startup_NoFocusModeHint}"
2026-04-04 15:40:36 +08:00
Header="{i18n:I18n Key=Startup_NoFocusMode}">
2026-04-04 11:33:47 +08:00
<ui:SettingsCard.HeaderIcon>
<ui:FontIcon Icon="{x:Static ui:SegoeFluentIcons.View}" />
</ui:SettingsCard.HeaderIcon>
2026-04-07 23:46:26 +08:00
<ui:ToggleSwitch Name="ToggleSwitchNoFocusMode" OnContent="{i18n:I18n Key=Common_On}" OffContent="{i18n:I18n Key=Common_Off}" Toggled="ToggleSwitchNoFocusMode_Toggled" />
2026-04-04 11:33:47 +08:00
</ui:SettingsCard>
<!-- 窗口无边框模式 -->
<ui:SettingsCard Description="{i18n:I18n Key=Startup_NoBorderModeHint}"
2026-04-04 15:40:36 +08:00
Header="{i18n:I18n Key=Startup_NoBorderMode}">
2026-04-04 11:33:47 +08:00
<ui:SettingsCard.HeaderIcon>
<ui:FontIcon Icon="{x:Static ui:SegoeFluentIcons.FullScreen}" />
</ui:SettingsCard.HeaderIcon>
2026-04-07 23:46:26 +08:00
<ui:ToggleSwitch Name="ToggleSwitchWindowMode" OnContent="{i18n:I18n Key=Common_On}" OffContent="{i18n:I18n Key=Common_Off}" Toggled="ToggleSwitchWindowMode_Toggled" />
2026-04-04 11:33:47 +08:00
</ui:SettingsCard>
<!-- 窗口置顶 -->
<ui:SettingsCard Description="{i18n:I18n Key=Startup_TopMostHint}"
2026-04-04 15:40:36 +08:00
Header="{i18n:I18n Key=Startup_TopMost}">
2026-04-04 11:33:47 +08:00
<ui:SettingsCard.HeaderIcon>
<ui:FontIcon Icon="{x:Static ui:SegoeFluentIcons.Pinned}" />
</ui:SettingsCard.HeaderIcon>
2026-04-07 23:46:26 +08:00
<ui:ToggleSwitch Name="ToggleSwitchAlwaysOnTop" OnContent="{i18n:I18n Key=Common_On}" OffContent="{i18n:I18n Key=Common_Off}" Toggled="ToggleSwitchAlwaysOnTop_Toggled" />
2026-04-04 11:33:47 +08:00
</ui:SettingsCard>
<!-- UIA置顶 -->
2026-04-04 15:40:36 +08:00
<ui:SettingsCard Description="{i18n:I18n Key=Startup_UIAccessTopMostHint_1}"
Header="{i18n:I18n Key=Startup_UIATopMost}">
2026-04-04 11:33:47 +08:00
<ui:SettingsCard.HeaderIcon>
<ui:FontIcon Icon="{x:Static ui:SegoeFluentIcons.Shield}" />
</ui:SettingsCard.HeaderIcon>
2026-04-07 23:46:26 +08:00
<ui:ToggleSwitch Name="ToggleSwitchUIAccessTopMost" OnContent="{i18n:I18n Key=Common_On}" OffContent="{i18n:I18n Key=Common_Off}" Toggled="ToggleSwitchUIAccessTopMost_Toggled" />
2026-04-04 11:33:47 +08:00
</ui:SettingsCard>
<!-- 启动设置 -->
<TextBlock Style="{StaticResource SettingsSectionHeaderTextBlockStyle}"
Text="启动设置" />
<!-- 开机时运行 -->
2026-04-04 00:54:22 +08:00
<ui:SettingsCard Description="{i18n:I18n Key=Startup_RunAtStartupHint}"
Header="{i18n:I18n Key=Startup_RunAtStartup}">
<ui:SettingsCard.HeaderIcon>
2026-04-04 11:33:47 +08:00
<ui:FontIcon Icon="{x:Static ui:SegoeFluentIcons.Settings}"/>
</ui:SettingsCard.HeaderIcon>
2026-04-07 23:46:26 +08:00
<ui:ToggleSwitch Name="ToggleSwitchRunAtStartup" OnContent="{i18n:I18n Key=Common_On}" OffContent="{i18n:I18n Key=Common_Off}" Toggled="ToggleSwitchRunAtStartup_Toggled" />
</ui:SettingsCard>
2026-04-04 11:33:47 +08:00
<!-- 开机运行后收纳到侧边栏 -->
<ui:SettingsCard Description="{i18n:I18n Key=Startup_FoldAtStartupHint}"
Header="{i18n:I18n Key=Startup_FoldAtStartup}">
<ui:SettingsCard.HeaderIcon>
<ui:FontIcon Icon="{x:Static ui:SegoeFluentIcons.ChevronLeft}" />
</ui:SettingsCard.HeaderIcon>
2026-04-07 23:46:26 +08:00
<ui:ToggleSwitch Name="ToggleSwitchFoldAtStartup" OnContent="{i18n:I18n Key=Common_On}" OffContent="{i18n:I18n Key=Common_Off}" Toggled="ToggleSwitchFoldAtStartup_Toggled" />
2026-04-04 11:33:47 +08:00
</ui:SettingsCard>
<!-- 模式设置 -->
<TextBlock Style="{StaticResource SettingsSectionHeaderTextBlockStyle}"
Text="模式设置" />
2026-04-04 15:40:36 +08:00
<ui:SettingsExpander Description="{i18n:I18n Key=Settings_ModeDesc}"
Header="{i18n:I18n Key=Settings_ModeDesc_1}">
2026-04-04 11:33:47 +08:00
<ui:SettingsExpander.HeaderIcon>
<ui:FontIcon Icon="{x:Static ui:SegoeFluentIcons.Settings}" />
</ui:SettingsExpander.HeaderIcon>
<ui:SettingsExpander.Items>
<ui:SettingsCard Header="仅PPT模式">
2026-04-07 23:46:26 +08:00
<ui:ToggleSwitch Name="ToggleSwitchPPTOnlyMode" OnContent="{i18n:I18n Key=Common_On}" OffContent="{i18n:I18n Key=Common_Off}" Toggled="ToggleSwitchPPTOnlyMode_Toggled" />
2026-04-04 11:33:47 +08:00
</ui:SettingsCard>
</ui:SettingsExpander.Items>
</ui:SettingsExpander>
2026-04-05 17:31:15 +08:00
2026-04-04 11:33:47 +08:00
<!-- 底部空白 -->
<Rectangle Height="48" />
</ikw:SimpleStackPanel>
</Grid>
</ScrollViewer>
2026-04-07 23:32:20 +08:00
</ui:Page>