工具栏整理

This commit is contained in:
艾竹
2023-04-02 12:01:46 +08:00
parent 02ebd056b3
commit 0701f25519
30 changed files with 1730 additions and 923 deletions

View File

@@ -7,6 +7,7 @@ using AIStudio.Wpf.DiagramDesigner;
using AIStudio.Wpf.DiagramDesigner.Algorithms;
using AIStudio.Wpf.DiagramDesigner.Geometrys;
using AIStudio.Wpf.DiagramDesigner.Helpers;
using AIStudio.Wpf.Mind.Models;
using AIStudio.Wpf.Mind.ViewModels;
namespace AIStudio.Wpf.Mind.Helpers
@@ -15,10 +16,10 @@ namespace AIStudio.Wpf.Mind.Helpers
{
public void Appearance(MindNode mindNode)
{
Appearance(mindNode, null, false);
Appearance(mindNode, MindTheme.SkyBlue, false);
}
public void Appearance(MindNode mindNode, MindThemeModel mindThemeModel, bool initAppearance)
public void Appearance(MindNode mindNode, MindTheme mindTheme, bool initAppearance)
{
switch (mindNode.NodeLevel)
{
@@ -26,7 +27,7 @@ namespace AIStudio.Wpf.Mind.Helpers
{
if (initAppearance)
{
MindThemeHelper.ThemeChange(mindNode, mindThemeModel, initAppearance);
MindThemeHelper.ThemeChange(mindNode, mindTheme, initAppearance);
mindNode.ClearConnectors();
var port = new FullyCreatedConnectorInfo(mindNode.Root, mindNode, ConnectorOrientation.Bottom, true) { XRatio = 0.5, YRatio = 1 };
@@ -42,7 +43,7 @@ namespace AIStudio.Wpf.Mind.Helpers
{
if (initAppearance)
{
MindThemeHelper.ThemeChange(mindNode, mindThemeModel, initAppearance);
MindThemeHelper.ThemeChange(mindNode, mindTheme, initAppearance);
mindNode.ClearConnectors();
var port1 = new FullyCreatedConnectorInfo(mindNode.Root, mindNode, ConnectorOrientation.Top, true) { XRatio = 0.5, YRatio = 0 };
@@ -59,7 +60,7 @@ namespace AIStudio.Wpf.Mind.Helpers
{
if (initAppearance)
{
MindThemeHelper.ThemeChange(mindNode, mindThemeModel, initAppearance);
MindThemeHelper.ThemeChange(mindNode, mindTheme, initAppearance);
mindNode.ClearConnectors();
var port1 = new FullyCreatedConnectorInfo(mindNode.Root, mindNode, ConnectorOrientation.Left, true) { XRatio = 0, YRatio = 0.5 };