295 lines
18 KiB
XML
295 lines
18 KiB
XML
<ui:Page x:Class="Ink_Canvas.Windows.SettingsViews.Pages.AppearancePage"
|
|
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"
|
|
xmlns:local="clr-namespace:Ink_Canvas.Windows.SettingsViews.Pages"
|
|
xmlns:helpers="clr-namespace:Ink_Canvas.Windows.SettingsViews.Helpers"
|
|
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"
|
|
xmlns:controls="clr-namespace:Ink_Canvas.Controls;assembly=InkCanvas.Controls"
|
|
xmlns:c="clr-namespace:Ink_Canvas.Converter"
|
|
mc:Ignorable="d"
|
|
Title="外观">
|
|
|
|
<ScrollViewer PanningMode="VerticalFirst">
|
|
<Grid Margin="59,0,59,0">
|
|
<FrameworkElement.Resources>
|
|
<sys:Double x:Key="SettingsCardSpacing">4</sys:Double>
|
|
<c:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
|
|
<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}">
|
|
|
|
<TextBlock Style="{StaticResource SettingsSectionHeaderTextBlockStyle}"
|
|
Text="{i18n:I18n Key=Theme_GroupTitle}" />
|
|
|
|
<ui:SettingsCard Header="{i18n:I18n Key=Theme_Label}">
|
|
<ui:SettingsCard.HeaderIcon>
|
|
<ui:FontIcon Icon="{x:Static ui:SegoeFluentIcons.Color}" />
|
|
</ui:SettingsCard.HeaderIcon>
|
|
<ComboBox x:Name="ComboBoxTheme"
|
|
SelectionChanged="ComboBoxTheme_SelectionChanged">
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_Light}" />
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_Dark}" />
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_System}" />
|
|
</ComboBox>
|
|
</ui:SettingsCard>
|
|
|
|
<ui:SettingsCard Header="{i18n:I18n Key=Theme_LanguageLabel}">
|
|
<ui:SettingsCard.HeaderIcon>
|
|
<ui:FontIcon Icon="{x:Static ui:SegoeFluentIcons.Globe}" />
|
|
</ui:SettingsCard.HeaderIcon>
|
|
<ComboBox x:Name="ComboBoxLanguage"
|
|
SelectionChanged="ComboBoxLanguage_SelectionChanged"
|
|
Width="160">
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_Language_System}" />
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_Language_ChineseSimplified}" />
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_Language_English}" />
|
|
</ComboBox>
|
|
</ui:SettingsCard>
|
|
|
|
<TextBlock Text="{i18n:I18n Key=Theme_Language_RestartHint}"
|
|
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
|
TextWrapping="Wrap" Margin="0,0,0,4" />
|
|
|
|
<controls:LabeledSettingsCard x:Name="CardEnableSplashScreen"
|
|
Header="{i18n:I18n Key=Theme_EnableSplash}"
|
|
Icon="{x:Static ui:SegoeFluentIcons.Photo}"
|
|
SwitchName="ToggleSwitchEnableSplashScreen"
|
|
Toggled="ToggleSwitchEnableSplashScreen_Toggled" />
|
|
|
|
<ui:SettingsCard Header="{i18n:I18n Key=Theme_SplashStyle}">
|
|
<ui:SettingsCard.HeaderIcon>
|
|
<ui:FontIcon Icon="{x:Static ui:SegoeFluentIcons.BrowsePhotos}" />
|
|
</ui:SettingsCard.HeaderIcon>
|
|
<ComboBox x:Name="ComboBoxSplashScreenStyle"
|
|
SelectionChanged="ComboBoxSplashScreenStyle_SelectionChanged"
|
|
Width="150">
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_Splash_Random}" />
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_Splash_Seasonal}" />
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_Splash_Spring}" />
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_Splash_Summer}" />
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_Splash_Autumn}" />
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_Splash_Winter}" />
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_Splash_Horse}" />
|
|
</ComboBox>
|
|
</ui:SettingsCard>
|
|
|
|
<TextBlock Style="{StaticResource SettingsSectionHeaderTextBlockStyle}"
|
|
Text="{i18n:I18n Key=Theme_FloatingBarIcon}" />
|
|
|
|
<ui:SettingsCard Header="{i18n:I18n Key=Theme_FloatingBarIcon}">
|
|
<ui:SettingsCard.HeaderIcon>
|
|
<ui:FontIcon Icon="{x:Static ui:SegoeFluentIcons.Rename}" />
|
|
</ui:SettingsCard.HeaderIcon>
|
|
<ComboBox x:Name="ComboBoxFloatingBarImg"
|
|
SelectionChanged="ComboBoxFloatingBarImg_SelectionChanged">
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_FloatingIcon_IccDefault}" />
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_FloatingIcon_IccNoShadow}" />
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_FloatingIcon_IccDark}" />
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_FloatingIcon_IccDarkBreath}" />
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_FloatingIcon_IccWhiteTransparent}" />
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_FloatingIcon_IccBlackTransparent}" />
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_FloatingIcon_CoolapkCrossEye}" />
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_FloatingIcon_CoolapkAbused}" />
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_FloatingIcon_CoolapkSmile}" />
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_FloatingIcon_CoolapkUnderwear}" />
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_FloatingIcon_CoolapkGreenHatDoge}" />
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_FloatingIcon_TiebaEmoji}" />
|
|
</ComboBox>
|
|
</ui:SettingsCard>
|
|
|
|
<ikw:SimpleStackPanel Orientation="Horizontal" HorizontalAlignment="Left" Spacing="8" Margin="0,4,0,0">
|
|
<Button x:Name="ButtonAddCustomIcon" Content="{i18n:I18n Key=Theme_Upload}"
|
|
Click="ButtonAddCustomIcon_Click" Padding="10,3"/>
|
|
<Button x:Name="ButtonManageCustomIcons" Content="{i18n:I18n Key=Theme_Manage}"
|
|
Click="ButtonManageCustomIcons_Click" Padding="10,3"/>
|
|
</ikw:SimpleStackPanel>
|
|
|
|
<ui:SettingsCard Header="{i18n:I18n Key=Theme_FloatingBarScale}">
|
|
<Slider x:Name="ViewboxFloatingBarScaleTransformValueSlider" Minimum="0.5"
|
|
Maximum="1.25" Width="168"
|
|
IsSnapToTickEnabled="True" Value="1" TickFrequency="0.05"
|
|
TickPlacement="None" AutoToolTipPlacement="None"
|
|
ValueChanged="ViewboxFloatingBarScaleTransformValueSlider_ValueChanged" />
|
|
</ui:SettingsCard>
|
|
|
|
<ui:SettingsCard Header="{i18n:I18n Key=Theme_FloatingBarOpacity}">
|
|
<Slider x:Name="ViewboxFloatingBarOpacityValueSlider" Minimum="0.3"
|
|
Maximum="1" Width="168"
|
|
IsSnapToTickEnabled="True" Value="1" TickFrequency="0.05"
|
|
TickPlacement="None" AutoToolTipPlacement="None"
|
|
ValueChanged="ViewboxFloatingBarOpacityValueSlider_ValueChanged" />
|
|
</ui:SettingsCard>
|
|
|
|
<ui:SettingsCard Header="{i18n:I18n Key=Theme_FloatingBarOpacityInPPT}">
|
|
<Slider x:Name="ViewboxFloatingBarOpacityInPPTValueSlider" Minimum="0.3"
|
|
Maximum="1" Width="168"
|
|
IsSnapToTickEnabled="True" Value="1" TickFrequency="0.05"
|
|
TickPlacement="None" AutoToolTipPlacement="None"
|
|
ValueChanged="ViewboxFloatingBarOpacityInPPTValueSlider_ValueChanged" />
|
|
</ui:SettingsCard>
|
|
|
|
<TextBlock Text="{i18n:I18n Key=Theme_FloatingBarOpacityInPPTHint}"
|
|
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
|
TextWrapping="Wrap" Margin="0,0,0,4" />
|
|
|
|
<TextBlock Style="{StaticResource SettingsSectionHeaderTextBlockStyle}"
|
|
Text="{i18n:I18n Key=Theme_FloatingBarButtonsTitle}" />
|
|
|
|
<controls:LabeledSettingsCard x:Name="CardEnableDisPlayNibModeToggle"
|
|
Header="{i18n:I18n Key=Theme_ShowNibButton}"
|
|
Icon="{x:Static ui:SegoeFluentIcons.PenTips}"
|
|
SwitchName="ToggleSwitchEnableDisPlayNibModeToggle"
|
|
Toggled="ToggleSwitchEnableDisPlayNibModeToggle_Toggled" />
|
|
|
|
<controls:LabeledSettingsCard x:Name="CardEnableViewboxBlackBoardScaleTransform"
|
|
Header="{i18n:I18n Key=Theme_BlackboardScale80}"
|
|
Icon="{x:Static ui:SegoeFluentIcons.FullScreen}"
|
|
SwitchName="ToggleSwitchEnableViewboxBlackBoardScaleTransform"
|
|
Toggled="ToggleSwitchEnableViewboxBlackBoardScaleTransform_Toggled" />
|
|
|
|
<controls:LabeledSettingsCard x:Name="CardEnableTimeDisplayInWhiteboardMode"
|
|
Header="{i18n:I18n Key=Theme_ShowTimeInWhiteboard}"
|
|
Icon="{x:Static ui:SegoeFluentIcons.DateTime}"
|
|
SwitchName="ToggleSwitchEnableTimeDisplayInWhiteboardMode"
|
|
Toggled="ToggleSwitchEnableTimeDisplayInWhiteboardMode_Toggled" />
|
|
|
|
<controls:LabeledSettingsCard x:Name="CardEnableChickenSoupInWhiteboardMode"
|
|
Header="{i18n:I18n Key=Theme_ShowQuoteInWhiteboard}"
|
|
Icon="{x:Static ui:SegoeFluentIcons.Message}"
|
|
SwitchName="ToggleSwitchEnableChickenSoupInWhiteboardMode"
|
|
Toggled="ToggleSwitchEnableChickenSoupInWhiteboardMode_Toggled" />
|
|
|
|
<ui:SettingsCard Header="{i18n:I18n Key=Theme_QuoteSource}">
|
|
<ui:SettingsCard.HeaderIcon>
|
|
<ui:FontIcon Icon="{x:Static ui:SegoeFluentIcons.Bookmarks}" />
|
|
</ui:SettingsCard.HeaderIcon>
|
|
<ComboBox x:Name="ComboBoxChickenSoupSource"
|
|
Width="240"
|
|
SelectionChanged="ComboBoxChickenSoupSource_SelectionChanged">
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_QuoteSource_OsuQuotes}" />
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_QuoteSource_Mottos}" />
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_QuoteSource_GaokaoBless}" />
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_QuoteSource_Hitokoto}" />
|
|
</ComboBox>
|
|
</ui:SettingsCard>
|
|
|
|
<controls:LabeledSettingsCard x:Name="CardEnableQuickPanel"
|
|
Header="{i18n:I18n Key=Theme_EnableQuickPanel}"
|
|
Icon="{x:Static ui:SegoeFluentIcons.GridView}"
|
|
SwitchName="ToggleSwitchEnableQuickPanel"
|
|
Toggled="ToggleSwitchEnableQuickPanel_Toggled" />
|
|
|
|
<ui:SettingsCard Header="{i18n:I18n Key=Theme_UnfoldButtonIcon}">
|
|
<ui:SettingsCard.HeaderIcon>
|
|
<ui:FontIcon Icon="{x:Static ui:SegoeFluentIcons.ChevronLeft}" />
|
|
</ui:SettingsCard.HeaderIcon>
|
|
<ComboBox x:Name="ComboBoxUnFoldBtnImg"
|
|
SelectionChanged="ComboBoxUnFoldBtnImg_SelectionChanged">
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_UnfoldIcon_Arrow}" />
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_UnfoldIcon_Pen}" />
|
|
</ComboBox>
|
|
</ui:SettingsCard>
|
|
|
|
<TextBlock Style="{StaticResource SettingsSectionHeaderTextBlockStyle}"
|
|
Text="{i18n:I18n Key=Theme_FloatingBarButtonsTitle}" />
|
|
|
|
<controls:LabeledSettingsCard x:Name="CardUseLegacyFloatingBarUI"
|
|
Header="{i18n:I18n Key=Theme_UseLegacyFloatingBarUI}"
|
|
Icon="{x:Static ui:SegoeFluentIcons.History}"
|
|
SwitchName="ToggleSwitchUseLegacyFloatingBarUI"
|
|
Toggled="ToggleSwitchUseLegacyFloatingBarUI_Toggled" />
|
|
|
|
<ui:SettingsCard Header="{i18n:I18n Key=Theme_ShowShapeButton}">
|
|
<ui:ToggleSwitch x:Name="ToggleSwitchShowShapeButton"
|
|
Toggled="ToggleSwitchShowShapeButton_Toggled" />
|
|
</ui:SettingsCard>
|
|
|
|
<ui:SettingsCard Header="{i18n:I18n Key=Theme_ShowUndoButton}">
|
|
<ui:ToggleSwitch x:Name="ToggleSwitchShowUndoButton"
|
|
Toggled="ToggleSwitchShowUndoButton_Toggled" />
|
|
</ui:SettingsCard>
|
|
|
|
<ui:SettingsCard Header="{i18n:I18n Key=Theme_ShowRedoButton}">
|
|
<ui:ToggleSwitch x:Name="ToggleSwitchShowRedoButton"
|
|
Toggled="ToggleSwitchShowRedoButton_Toggled" />
|
|
</ui:SettingsCard>
|
|
|
|
<ui:SettingsCard Header="{i18n:I18n Key=Theme_ShowClearButton}">
|
|
<ui:ToggleSwitch x:Name="ToggleSwitchShowClearButton"
|
|
Toggled="ToggleSwitchShowClearButton_Toggled" />
|
|
</ui:SettingsCard>
|
|
|
|
<ui:SettingsCard Header="{i18n:I18n Key=Theme_ShowWhiteboardButton}">
|
|
<ui:ToggleSwitch x:Name="ToggleSwitchShowWhiteboardButton"
|
|
Toggled="ToggleSwitchShowWhiteboardButton_Toggled" />
|
|
</ui:SettingsCard>
|
|
|
|
<ui:SettingsCard Header="{i18n:I18n Key=Theme_ShowHideButton}">
|
|
<ui:ToggleSwitch x:Name="ToggleSwitchShowHideButton"
|
|
Toggled="ToggleSwitchShowHideButton_Toggled" />
|
|
</ui:SettingsCard>
|
|
|
|
<ui:SettingsCard Header="{i18n:I18n Key=Theme_ShowLassoButton}">
|
|
<ui:ToggleSwitch x:Name="ToggleSwitchShowLassoSelectButton"
|
|
Toggled="ToggleSwitchShowLassoSelectButton_Toggled" />
|
|
</ui:SettingsCard>
|
|
|
|
<ui:SettingsCard Header="{i18n:I18n Key=Theme_ShowClearAndMouseButton}">
|
|
<ui:ToggleSwitch x:Name="ToggleSwitchShowClearAndMouseButton"
|
|
Toggled="ToggleSwitchShowClearAndMouseButton_Toggled" />
|
|
</ui:SettingsCard>
|
|
|
|
<ui:SettingsCard Header="{i18n:I18n Key=Theme_ShowQuickPalette}">
|
|
<ui:ToggleSwitch x:Name="ToggleSwitchShowQuickColorPalette"
|
|
Toggled="ToggleSwitchShowQuickColorPalette_Toggled" />
|
|
</ui:SettingsCard>
|
|
|
|
<ui:SettingsCard Header="{i18n:I18n Key=Theme_QuickPaletteMode}">
|
|
<ComboBox x:Name="ComboBoxQuickColorPaletteDisplayMode"
|
|
SelectionChanged="ComboBoxQuickColorPaletteDisplayMode_SelectionChanged">
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_QuickPalette_SingleRow}" />
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_QuickPalette_DoubleRow}" />
|
|
</ComboBox>
|
|
</ui:SettingsCard>
|
|
|
|
<ui:SettingsCard Header="{i18n:I18n Key=Theme_EraserButtonDisplay}">
|
|
<ComboBox x:Name="ComboBoxEraserDisplayOption"
|
|
SelectionChanged="ComboBoxEraserDisplayOption_SelectionChanged">
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_EraserDisplay_Both}" />
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_EraserDisplay_AreaOnly}" />
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_EraserDisplay_LineOnly}" />
|
|
<ComboBoxItem Content="{i18n:I18n Key=Theme_EraserDisplay_None}" />
|
|
</ComboBox>
|
|
</ui:SettingsCard>
|
|
|
|
<TextBlock Style="{StaticResource SettingsSectionHeaderTextBlockStyle}"
|
|
Text="{i18n:I18n Key=Tray_GroupTitle}" />
|
|
|
|
<controls:LabeledSettingsCard x:Name="CardEnableTrayIcon"
|
|
Header="{i18n:I18n Key=Tray_EnableTrayIcon}"
|
|
Icon="{x:Static ui:SegoeFluentIcons.Pinned}"
|
|
SwitchName="ToggleSwitchEnableTrayIcon"
|
|
Toggled="ToggleSwitchEnableTrayIcon_Toggled" />
|
|
|
|
<Rectangle Height="48" />
|
|
|
|
</ikw:SimpleStackPanel>
|
|
</Grid>
|
|
</Grid>
|
|
</ScrollViewer>
|
|
</ui:Page>
|