refactor(设置页面): 移除独立的图标设置页面并合并到调试页面
将图标设置功能从独立的 IconographyPage 迁移到 DebugPage 中,简化页面结构 删除不再使用的 IconographyPage.xaml 和 IconographyPage.xaml.cs 文件
This commit is contained in:
@@ -33,10 +33,33 @@
|
|||||||
|
|
||||||
<controls:LabeledSettingsCard x:Name="ToggleSwitchDebugConsole"
|
<controls:LabeledSettingsCard x:Name="ToggleSwitchDebugConsole"
|
||||||
Header="显示调试窗口"
|
Header="显示调试窗口"
|
||||||
Description="显示一个独立的控制台窗口,用于实时输出日志(开启后立即生效;关闭设置中的“启用日志记录”将不会输出内容)。"
|
Description="显示一个独立的控制台窗口,用于实时输出日志(开启后立即生效;关闭设置中的"启用日志记录"将不会输出内容)。"
|
||||||
Icon="{x:Static ui:SegoeFluentIcons.DeveloperTools}"
|
Icon="{x:Static ui:SegoeFluentIcons.DeveloperTools}"
|
||||||
IsOn="False"
|
IsOn="False"
|
||||||
Toggled="ToggleSwitchDebugConsole_Toggled"/>
|
Toggled="ToggleSwitchDebugConsole_Toggled"/>
|
||||||
|
|
||||||
|
<TextBlock Style="{StaticResource SettingsSectionHeaderTextBlockStyle}"
|
||||||
|
Text="图标设置" />
|
||||||
|
|
||||||
|
<ui:SettingsExpander Header="SettingsExpander 示例" IsEnabled="True"
|
||||||
|
IsExpanded="True"
|
||||||
|
d:Visibility="Visible" d:IsExpanded="True">
|
||||||
|
|
||||||
|
<ui:SettingsExpander.HeaderIcon>
|
||||||
|
<ui:FontIcon Glyph=""/>
|
||||||
|
</ui:SettingsExpander.HeaderIcon>
|
||||||
|
|
||||||
|
<controls:CopyButton Text="You can override the Left indention of a SettingsCard by overriding the SettingsCardLeftIndention"/>
|
||||||
|
|
||||||
|
<ui:SettingsExpander.Items>
|
||||||
|
<ui:SettingsCard Description="You can override the Left indention of a SettingsCard by overriding the SettingsCardLeftIndention"
|
||||||
|
Header="Customization">
|
||||||
|
<ui:SettingsCard.Resources>
|
||||||
|
<sys:Double x:Key="SettingsCardLeftIndention">0</sys:Double>
|
||||||
|
</ui:SettingsCard.Resources>
|
||||||
|
</ui:SettingsCard>
|
||||||
|
</ui:SettingsExpander.Items>
|
||||||
|
</ui:SettingsExpander>
|
||||||
</ikw:SimpleStackPanel>
|
</ikw:SimpleStackPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
|
|||||||
@@ -1,41 +0,0 @@
|
|||||||
<ui:Page
|
|
||||||
x:Class="Ink_Canvas.Windows.SettingsViews.Pages.IconographyPage"
|
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
||||||
xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern"
|
|
||||||
xmlns:ikw="http://schemas.inkore.net/lib/ui/wpf"
|
|
||||||
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
||||||
xmlns:controls="clr-namespace:Ink_Canvas.Controls;assembly=InkCanvas.Controls"
|
|
||||||
Title="图标设置"
|
|
||||||
mc:Ignorable="d">
|
|
||||||
<Grid x:Name="RootGrid">
|
|
||||||
<StackPanel Margin="24">
|
|
||||||
<ui:SettingsExpander x:Name="settingsCard" VerticalAlignment="Top"
|
|
||||||
Description="The SettingsExpander has the same properties as a Card, and you can set SettingsCard as part of the Items collection."
|
|
||||||
Header="SettingsExpander" IsEnabled="True"
|
|
||||||
IsExpanded="True"
|
|
||||||
d:Visibility="Visible" d:IsExpanded="True">
|
|
||||||
|
|
||||||
<ui:SettingsExpander.HeaderIcon>
|
|
||||||
<ui:FontIcon Glyph=""/>
|
|
||||||
</ui:SettingsExpander.HeaderIcon>
|
|
||||||
|
|
||||||
|
|
||||||
<controls:CopyButton Text="You can override the Left indention of a SettingsCard by overriding the SettingsCardLeftIndention"/>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ui:SettingsExpander.Items>
|
|
||||||
<ui:SettingsCard Description="You can override the Left indention of a SettingsCard by overriding the SettingsCardLeftIndention"
|
|
||||||
Header="Customization">
|
|
||||||
<ui:SettingsCard.Resources>
|
|
||||||
<sys:Double x:Key="SettingsCardLeftIndention">0</sys:Double>
|
|
||||||
</ui:SettingsCard.Resources>
|
|
||||||
</ui:SettingsCard>
|
|
||||||
</ui:SettingsExpander.Items>
|
|
||||||
</ui:SettingsExpander>
|
|
||||||
</StackPanel>
|
|
||||||
</Grid>
|
|
||||||
</ui:Page>
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
namespace Ink_Canvas.Windows.SettingsViews.Pages
|
|
||||||
{
|
|
||||||
public partial class IconographyPage : iNKORE.UI.WPF.Modern.Controls.Page
|
|
||||||
{
|
|
||||||
public IconographyPage()
|
|
||||||
{
|
|
||||||
InitializeComponent();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user