命名优化,达芬奇字体修改工具

This commit is contained in:
GG Z
2025-10-04 08:52:23 +08:00
parent 0d0afbc78e
commit 4722a4c881
121 changed files with 1801 additions and 1368 deletions

View File

@@ -84,16 +84,11 @@
</ComboBoxItem>
</ComboBox>
<ToggleButton
n:ToggleSwitchAssist.OffContent="{n:Icon Nightlight}"
n:ToggleSwitchAssist.OnContent="{n:Icon Sunny}"
Checked="ThemeToggle_OnCheckedChanged"
Style="{StaticResource NeuToggleSwitch}"
Unchecked="ThemeToggle_OnCheckedChanged">
<n:ToggleSwitchAssist.OnContent>
<n:IconElement Symbol="Sunny" />
</n:ToggleSwitchAssist.OnContent>
<n:ToggleSwitchAssist.OffContent>
<n:IconElement Symbol="Nightlight" />
</n:ToggleSwitchAssist.OffContent>
</ToggleButton>
Unchecked="ThemeToggle_OnCheckedChanged" />
</UniformGrid>
</n:NeoWindow.TitleBarRightContent>
<n:NeoWindow.Resources>
@@ -233,21 +228,30 @@
<StackPanel n:AnchorAssist.Header="通知 Toast">
<StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="Notification:" VerticalAlignment="Center" Margin="5"/>
<TextBlock
Margin="5"
VerticalAlignment="Center"
Text="Notification:" />
<Button Click="LeftTopButton_Click" Content="左上" />
<Button Click="RightTopButton_Click" Content="右上" />
<Button Click="LeftBottomButton_Click" Content="左下" />
<Button Click="RightBottomButton_Click" Content="右下" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="Toast:" VerticalAlignment="Center" Margin="5"/>
<TextBlock
Margin="5"
VerticalAlignment="Center"
Text="Toast:" />
<Button Click="Info_Click" Content="Info" />
<Button Click="Success_Click" Content="Success" />
<Button Click="Warning_Click" Content="Warning" />
<Button Click="Error_Click" Content="Error" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="Modal:" VerticalAlignment="Center" Margin="5"/>
<TextBlock
Margin="5"
VerticalAlignment="Center"
Text="Modal:" />
<Button Click="ShowBasicModal_Click" Content="基础模态框" />
<Button Click="ShowAsyncModal_Click" Content="异步模态框" />
</StackPanel>
@@ -400,7 +404,7 @@
Content="禁用按钮"
IsEnabled="False" />
<Button Content="拟态" Style="{StaticResource NeuButtonStyle}"/>
<Button Content="拟态" Style="{StaticResource NeuButtonStyle}" />
<Button
Content="禁用拟态"
IsEnabled="False"
@@ -472,8 +476,11 @@
<RepeatButton Content="RepeatButton" IsEnabled="False" />
</UniformGrid>
<UniformGrid Rows="1">
<Button Style="{StaticResource IconButton}" n:ButtonAssist.Icon="{n:Icon SymbolValue=Add}"/>
<Button IsEnabled="False" Style="{StaticResource IconButton}" n:ButtonAssist.Icon="{n:Icon SymbolValue=Add}"/>
<Button n:ButtonAssist.Icon="{n:Icon SymbolValue=Add}" Style="{StaticResource IconButton}" />
<Button
n:ButtonAssist.Icon="{n:Icon SymbolValue=Add}"
IsEnabled="False"
Style="{StaticResource IconButton}" />
</UniformGrid>
</StackPanel>
</StackPanel>
@@ -557,14 +564,16 @@
<n:NumericBox CurValue="100" Style="{StaticResource DefaultTextBox}" />
</n:FlexibleRowPanel>
<n:FlexibleRowPanel>
<TextBox Style="{StaticResource NeuTextBox}" Margin="4"/>
<TextBox Style="{StaticResource NeuTextBox}" IsEnabled="False" Margin="4"/>
<TextBox Margin="4" Style="{StaticResource NeuTextBox}" />
<TextBox
Margin="4"
IsEnabled="False"
Style="{StaticResource NeuTextBox}" />
<RichTextBox Grid.Row="2">
<FlowDocument>
<Paragraph>
<Bold>Flow Document</Bold>
in a
<Run Foreground="{StaticResource PrimaryGradientBrush}">富文本框.</Run>
in a<Run Foreground="{StaticResource PrimaryGradientBrush}">富文本框.</Run>
</Paragraph>
</FlowDocument>
</RichTextBox>
@@ -730,27 +739,17 @@
</n:FlexibleRowPanel>
<n:FlexibleRowPanel>
<ToggleButton
n:ToggleSwitchAssist.OffContent="{n:Icon SymbolValue=ToggleOff}"
n:ToggleSwitchAssist.OnContent="{n:Icon ToggleOn}"
n:ToggleSwitchAssist.ShowText="True"
IsChecked="True"
Style="{StaticResource NeuToggleSwitch}">
<n:ToggleSwitchAssist.OnContent>
<n:IconElement Symbol="ToggleOn" />
</n:ToggleSwitchAssist.OnContent>
<n:ToggleSwitchAssist.OffContent>
<n:IconElement Symbol="ToggleOff" />
</n:ToggleSwitchAssist.OffContent>
</ToggleButton>
Style="{StaticResource NeuToggleSwitch}" />
<ToggleButton
n:ToggleSwitchAssist.OffContent="{n:Icon SymbolValue=ToggleOff}"
n:ToggleSwitchAssist.OnContent="{n:Icon ToggleOn}"
IsChecked="True"
IsEnabled="False"
Style="{StaticResource NeuToggleSwitch}">
<n:ToggleSwitchAssist.OnContent>
<n:IconElement Symbol="ToggleOn" />
</n:ToggleSwitchAssist.OnContent>
<n:ToggleSwitchAssist.OffContent>
<n:IconElement Symbol="ToggleOff" />
</n:ToggleSwitchAssist.OffContent>
</ToggleButton>
Style="{StaticResource NeuToggleSwitch}" />
<ToggleButton
n:ToggleSwitchAssist.ShowText="False"
IsChecked="False"
@@ -985,8 +984,8 @@
</Calendar.BlackoutDates>
</Calendar>
<StackPanel VerticalAlignment="Center">
<n:TimePicker Header="TimerPicker" ClockIdentifier="Clock12Hour" />
<n:TimePicker Header="TimerPicker"/>
<n:TimePicker ClockIdentifier="Clock12Hour" Header="TimerPicker" />
<n:TimePicker Header="TimerPicker" />
</StackPanel>
</n:FlexibleRowPanel>
<n:FlexibleRowPanel n:AnchorAssist.Header="颜色拾取 ColorPicker">
@@ -997,9 +996,7 @@
<n:FlexibleRowPanel n:AnchorAssist.Header="树形结构 TreeView">
<TreeView Margin="4">
<TreeViewItem Header="A123" IsExpanded="True">
<TreeViewItem
Header="B123"
IsExpanded="True">
<TreeViewItem Header="B123" IsExpanded="True">
<TreeViewItem Header="C123" />
</TreeViewItem>
<TreeViewItem Header="B456" IsEnabled="False" />
@@ -1028,7 +1025,7 @@
<StackPanel n:AnchorAssist.Header="列表框 ListBox">
<n:FlexibleRowPanel>
<ListBox Margin="4" >
<ListBox Margin="4">
<ListBoxItem>SyminOmega</ListBoxItem>
<ListBoxItem>Celeron533</ListBoxItem>
<ListBoxItem>Hello World</ListBoxItem>
@@ -1036,7 +1033,10 @@
<ListBoxItem>Item Demo</ListBoxItem>
<ListBoxItem>Item Demo</ListBoxItem>
</ListBox>
<ListBox SelectionMode="Multiple" Margin="4" Style="{StaticResource ChipListBoxStyle}">
<ListBox
Margin="4"
SelectionMode="Multiple"
Style="{StaticResource ChipListBoxStyle}">
<ListBoxItem IsSelected="True">SyminOmega</ListBoxItem>
<ListBoxItem>Celeron533</ListBoxItem>
<ListBoxItem>Hello World</ListBoxItem>
@@ -1085,10 +1085,10 @@
<sys:String>Another Tab</sys:String>
</ListBox>
<ListBox
IsEnabled="False"
HorizontalAlignment="Center"
VerticalAlignment="Center"
n:ListBoxSlideBehavior.EnableSlideAnimation="True"
IsEnabled="False"
SelectedIndex="1"
Style="{StaticResource SlideTabGroupListBoxStyle}">
<!-- 这里是你的数据项 -->
@@ -1110,10 +1110,10 @@
<ListBoxItem Content="Night" />
</ListBox>
<ListBox
IsEnabled="False"
HorizontalAlignment="Center"
VerticalAlignment="Center"
n:SelectorAssist.Orientation="Vertical"
IsEnabled="False"
SelectedIndex="1"
Style="{StaticResource TabGroupListBoxStyle}">
<ListBoxItem Content="Home" />
@@ -1121,12 +1121,12 @@
<ListBoxItem Content="Night" />
</ListBox>
<ListBox
SelectionMode="Multiple"
HorizontalAlignment="Center"
VerticalAlignment="Center"
n:ListBoxSlideBehavior.EnableSlideAnimation="True"
n:SelectorAssist.Orientation="Vertical"
SelectedIndex="0"
SelectionMode="Multiple"
Style="{StaticResource SlideTabGroupListBoxStyle}">
<!-- 这里是你的数据项 -->
<sys:String>Tab 1</sys:String>
@@ -1186,9 +1186,11 @@
<Grid>
<!-- <Separator /> -->
<DataGrid
x:Name="DataGridCheckBox"
Margin="4"
DataContext="{StaticResource Dgd}"
ItemsSource="{Binding DataCollection}" />
ItemsSource="{Binding DataCollection}"
Style="{StaticResource DataGridCheckBoxHead}" />
</Grid>
</TabItem>
@@ -1198,15 +1200,17 @@
<TabControl Style="{StaticResource FlattenTabControl}" TabStripPlacement="Top">
<TabItem Header="选项卡 1">
<StackPanel Margin="4">
<DataGrid
<n:NeuDataGrid
x:Name="NeuDG1"
Margin="4"
BindableSelectedItems="{Binding SelectedDataGridItems, Mode=TwoWay}"
DataContext="{StaticResource Dgd}"
ItemsSource="{Binding DataCollection}"
SelectedItem="{Binding SelectedDataGridItems}" />
ItemsSource="{Binding DataCollection}" />
<Button
VerticalAlignment="Center"
Command="{Binding ShowSelectedItemsCommand}"
Content="显示选中项" />
Content="显示选中项"
DataContext="{StaticResource Dgd}" />
</StackPanel>
</TabItem>
<TabItem Header="选项卡 2" />
@@ -1226,6 +1230,7 @@
<TabItem Header="禁用选项卡" IsEnabled="False" />
</TabControl>
<n:NeuDataGrid
x:Name="NeuDG2"
Margin="5"
HorizontalAlignment="Left"
d:ItemsSource="{d:SampleData ItemCount=5}"