mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-03 00:00:57 +08:00
mind集成到diagram app中
This commit is contained in:
@@ -13,6 +13,7 @@ using AIStudio.Wpf.DiagramDesigner;
|
||||
using AIStudio.Wpf.Mind.ViewModels;
|
||||
using AIStudio.Wpf.Mind;
|
||||
using AIStudio.Wpf.DiagramDesigner.Additionals;
|
||||
using AIStudio.Wpf.Mind.Helpers;
|
||||
|
||||
namespace AIStudio.Wpf.Flowchart
|
||||
{
|
||||
@@ -65,7 +66,26 @@ namespace AIStudio.Wpf.Flowchart
|
||||
{
|
||||
foreach (var vm in DiagramViewModels.OfType<IMindDiagramViewModel>())
|
||||
{
|
||||
vm.MindType = MindType; ;
|
||||
vm.MindType = MindType;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private MindThemeModel _mindThemeModel = MindThemeHelper.GetTheme("天空蓝");
|
||||
public MindThemeModel MindThemeModel
|
||||
{
|
||||
get
|
||||
{
|
||||
return _mindThemeModel;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (SetProperty(ref _mindThemeModel, value))
|
||||
{
|
||||
foreach (var vm in DiagramViewModels.OfType<IMindDiagramViewModel>())
|
||||
{
|
||||
vm.MindThemeModel = MindThemeHelper.GetTheme(MindThemeModel?.Name);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -106,7 +126,7 @@ namespace AIStudio.Wpf.Flowchart
|
||||
|
||||
protected override DiagramViewModel GetDiagramViewModel(string name, DiagramType diagramType)
|
||||
{
|
||||
var viewmodel = new MindDiagramViewModel() { Name = name ?? NewNameHelper.GetNewName(DiagramViewModels.Select(p => p.Name), "页-"), DiagramType = diagramType, MindType = MindType };
|
||||
var viewmodel = new MindDiagramViewModel() { Name = name ?? NewNameHelper.GetNewName(DiagramViewModels.Select(p => p.Name), "页-"), DiagramType = diagramType, MindType = MindType, MindThemeModel = MindThemeHelper.GetTheme(MindThemeModel?.Name) };
|
||||
viewmodel.Init();
|
||||
|
||||
return viewmodel;
|
||||
|
||||
@@ -96,22 +96,22 @@
|
||||
<Path Stretch="Fill" Margin="20" Fill="{DynamicResource GrayBrush2}" Data="M10.984 13.836a.5.5 0 0 1-.353-.146l-.745-.743a.5.5 0 1 1 .706-.708l.392.391 1.181-1.18a.5.5 0 0 1 .708.707l-1.535 1.533a.504.504 0 0 1-.354.146zm9.353-.147l1.534-1.532a.5.5 0 0 0-.707-.707l-1.181 1.18-.392-.391a.5.5 0 1 0-.706.708l.746.743a.497.497 0 0 0 .706-.001zM4.527 7.452l2.557-1.585A1 1 0 0 0 7.09 4.17L4.533 2.56A1 1 0 0 0 3 3.406v3.196a1.001 1.001 0 0 0 1.527.85zm2.03-2.436L4 6.602V3.406l2.557 1.61zM24 12.5c0 1.93-1.57 3.5-3.5 3.5a3.503 3.503 0 0 1-3.46-3h-2.08a3.503 3.503 0 0 1-3.46 3 3.502 3.502 0 0 1-3.46-3h-.558c-.972 0-1.85-.399-2.482-1.042V17c0 1.654 1.346 3 3 3h.04c.244-1.693 1.7-3 3.46-3 1.93 0 3.5 1.57 3.5 3.5S13.43 24 11.5 24a3.502 3.502 0 0 1-3.46-3H8c-2.206 0-4-1.794-4-4V9.899A5.008 5.008 0 0 1 0 5c0-2.757 2.243-5 5-5s5 2.243 5 5a5.005 5.005 0 0 1-4.952 4.998A2.482 2.482 0 0 0 7.482 12h.558c.244-1.693 1.7-3 3.46-3a3.502 3.502 0 0 1 3.46 3h2.08a3.503 3.503 0 0 1 3.46-3c1.93 0 3.5 1.57 3.5 3.5zm-15 8c0 1.378 1.122 2.5 2.5 2.5s2.5-1.122 2.5-2.5-1.122-2.5-2.5-2.5S9 19.122 9 20.5zM5 9c2.206 0 4-1.794 4-4S7.206 1 5 1 1 2.794 1 5s1.794 4 4 4zm9 3.5c0-1.378-1.122-2.5-2.5-2.5S9 11.122 9 12.5s1.122 2.5 2.5 2.5 2.5-1.122 2.5-2.5zm9 0c0-1.378-1.122-2.5-2.5-2.5S18 11.122 18 12.5s1.122 2.5 2.5 2.5 2.5-1.122 2.5-2.5zm-13 8a.5.5 0 1 0 1 0 .5.5 0 0 0-1 0zm2 0a.5.5 0 1 0 1 0 .5.5 0 0 0-1 0zm12 0c0 1.93-1.57 3.5-3.5 3.5a3.503 3.503 0 0 1-3.46-3.002c-.007.001-.013.005-.021.005l-.506.017h-.017a.5.5 0 0 1-.016-.999l.506-.017c.018-.002.035.006.052.007A3.503 3.503 0 0 1 20.5 17c1.93 0 3.5 1.57 3.5 3.5zm-1 0c0-1.378-1.122-2.5-2.5-2.5S18 19.122 18 20.5s1.122 2.5 2.5 2.5 2.5-1.122 2.5-2.5z" ></Path>
|
||||
</Button>
|
||||
<Button Margin="5" ToolTip="思维导图" Command="{Binding NewMindCommand}" CommandParameter="Mind" Width="80" Height="80" Foreground="{DynamicResource BlackBrush}" Background="{DynamicResource WhiteBrush}" BorderBrush="{DynamicResource BlackBrush}">
|
||||
<Path Stretch="Fill" Margin="20" Fill="{DynamicResource GrayBrush2}" Data="M768 128a128 128 0 1 1 0 256h-128a128 128 0 0 1-120.704-85.333333H469.333333c-46.933333 0-85.333333 38.4-85.333333 85.333333v7.296a128 128 0 0 1 0 241.408V640c0 46.933333 38.4 85.333333 85.333333 85.333333h49.92A128.128 128.128 0 0 1 640 640h128a128 128 0 1 1 0 256h-128a128 128 0 0 1-120.704-85.333333H469.333333c-94.293333 0-170.666667-76.373333-170.666666-170.666667H213.333333a128 128 0 1 1 0-256h85.333334c0-94.293333 76.373333-170.666667 170.666666-170.666667h49.92A128.128 128.128 0 0 1 640 128h128z m0 597.333333h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 0 0-85.333334zM341.333333 469.333333H213.333333a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 0 0-85.333334z m426.666667-256h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 0 0-85.333334z" ></Path>
|
||||
<Path Stretch="Fill" Margin="20" Fill="{DynamicResource GrayBrush2}" Data="M903.526 542.788c-11.476-109.267-69.113-209.266-157.91-273.966 1.775-42.203-8.091-85.392-30.916-124.607C651.078 34.909 510.893-2.126 401.587 61.495c-75.837 44.141-116.869 125.136-113.649 207.104-69.606 50.492-123.007 124.277-147.063 213.792a391.809 391.809 0 0 0-11.196 59.809c-37.458 19.563-69.947 49.713-92.506 89.106-62.851 109.751-24.832 249.672 84.919 312.523 76.13 43.597 166.769 38.645 236.139-5.102a391.907 391.907 0 0 0 57.362 20.29c89.516 24.056 180.13 14.833 258.713-20.088 35.68 22.675 78.051 35.746 123.464 35.587 126.472-0.444 228.638-103.331 228.194-229.803-0.31-87.709-49.894-163.714-122.438-201.925zM343.497 234.956c7.264-51.226 37.068-98.744 85.254-126.791 83.531-48.619 190.659-20.317 239.278 63.214 11.79 20.256 19.044 41.901 22.096 63.762a175.057 175.057 0 0 1-2.102 60.33c-9.855 46.729-38.683 89.27-83.209 115.186-83.531 48.619-190.659 20.317-239.278-63.214-9.688-16.645-16.312-34.228-20.063-52.097a174.622 174.622 0 0 1-1.976-60.39z m9.101 640.606a174.59 174.59 0 0 1-51.354 31.888c-47.97 19.273-103.973 17.204-152.318-10.482-83.87-48.03-112.925-154.957-64.894-238.828 11.641-20.328 26.749-37.424 44.142-50.994a175.094 175.094 0 0 1 53.336-28.371c45.394-14.826 96.646-11.13 141.349 14.471 83.871 48.031 112.925 154.957 64.894 238.828-9.586 16.742-21.526 31.292-35.155 43.488z m77.009 31.305a339.803 339.803 0 0 1-24.38-7.545 229.776 229.776 0 0 0 29.388-40.412c62.851-109.751 24.832-249.672-84.919-312.523-51.188-29.314-108.937-36.677-162.371-25.063a339.779 339.779 0 0 1 5.7-24.919c18.21-67.764 55.959-125.048 105.538-167.454a229.77 229.77 0 0 0 20.304 45.656c63.621 109.306 203.806 146.341 313.112 82.72 51.001-29.685 86.26-76.04 102.911-128.148 57.693 49.633 96.988 117.799 111.025 192.597a229.761 229.761 0 0 0-49.756-5.258c-126.472 0.444-228.638 103.331-228.194 229.803 0.207 58.987 22.705 112.68 59.48 153.148-61.556 21.657-130.06 25.612-197.838 7.398z m367.972 13.649c-23.467 0.082-45.866-4.47-66.346-12.777a175.093 175.093 0 0 1-51.198-32.023c-35.495-31.897-57.89-78.104-58.07-129.584-0.34-96.649 77.735-175.274 174.384-175.614 19.296-0.068 37.87 2.998 55.249 8.705a174.572 174.572 0 0 1 53.254 28.504c40.693 31.906 66.915 81.451 67.111 137.175 0.34 96.649-77.735 175.274-174.384 175.614z" ></Path>
|
||||
</Button>
|
||||
<Button Margin="5" ToolTip="目录组织图" Command="{Binding NewMindCommand}" CommandParameter="Directory" Width="80" Height="80" Foreground="{DynamicResource BlackBrush}" Background="{DynamicResource WhiteBrush}" BorderBrush="{DynamicResource BlackBrush}">
|
||||
<Path Stretch="Fill" Margin="20" Fill="{DynamicResource GrayBrush2}" Data="M768 128a128 128 0 1 1 0 256h-128a128 128 0 0 1-120.704-85.333333H469.333333c-46.933333 0-85.333333 38.4-85.333333 85.333333v7.296a128 128 0 0 1 0 241.408V640c0 46.933333 38.4 85.333333 85.333333 85.333333h49.92A128.128 128.128 0 0 1 640 640h128a128 128 0 1 1 0 256h-128a128 128 0 0 1-120.704-85.333333H469.333333c-94.293333 0-170.666667-76.373333-170.666666-170.666667H213.333333a128 128 0 1 1 0-256h85.333334c0-94.293333 76.373333-170.666667 170.666666-170.666667h49.92A128.128 128.128 0 0 1 640 128h128z m0 597.333333h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 0 0-85.333334zM341.333333 469.333333H213.333333a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 0 0-85.333334z m426.666667-256h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 0 0-85.333334z" ></Path>
|
||||
<Path Stretch="Fill" Margin="20" Fill="{DynamicResource GrayBrush2}" Data="M438.272 951.296c-4.096-1.024-5.632-2.048-6.656-2.56-0.512-5.12-1.024-23.04 0.512-84.992l0.512-10.752H261.12c-5.632-0.512-15.36-2.56-15.36-25.088 0-2.048 0-3.584-0.512-5.632V291.328h-0.512v-24.064H69.12c-6.656 0-13.824-1.536-15.872-16.896-1.024-46.592-2.048-93.696-2.56-140.288v-20.992c0-32.768 1.024-41.472 1.536-43.52 1.024-1.536 3.584-4.608 11.776-7.168l6.656-1.536h420.352c5.12 0 10.752 2.56 16.896 7.168l1.024 0.512c0.512 0.512 1.024 2.56 1.536 6.656v199.68c0 7.168-2.56 12.8-13.824 15.36l-5.632 1.024H297.472v166.4h134.144V349.696c0-5.12 1.024-10.752 12.8-12.8H860.16c2.048 0 6.656 0 10.752 11.264v199.68c0 2.048-2.56 6.144-8.704 11.264H443.904c-5.632 0-9.728-1.536-12.288-9.728V486.4H297.472v312.832h134.656v-65.536c1.536-3.584 3.584-7.168 6.656-7.68 5.632-0.512 44.032-1.024 135.168-1.024 83.968 0 185.856 0.512 279.04 1.024 11.264 2.048 13.312 6.656 14.336 10.752 0.512 1.536 1.024 9.216 1.536 42.496v32.768c0 29.696-0.512 69.12-1.536 128-5.632 11.264-11.264 11.264-13.312 11.264H438.272z m46.08-54.272h328.192v-117.76H484.352v117.76z m0-390.144h328.192V389.12H484.352v117.76zM109.056 214.528h348.672v-117.76H109.056v117.76z" ></Path>
|
||||
</Button>
|
||||
<Button Margin="5" ToolTip="鱼骨头图" Command="{Binding NewMindCommand}" CommandParameter="FishBone" Width="80" Height="80" Foreground="{DynamicResource BlackBrush}" Background="{DynamicResource WhiteBrush}" BorderBrush="{DynamicResource BlackBrush}">
|
||||
<Path Stretch="Fill" Margin="20" Fill="{DynamicResource GrayBrush2}" Data="M768 128a128 128 0 1 1 0 256h-128a128 128 0 0 1-120.704-85.333333H469.333333c-46.933333 0-85.333333 38.4-85.333333 85.333333v7.296a128 128 0 0 1 0 241.408V640c0 46.933333 38.4 85.333333 85.333333 85.333333h49.92A128.128 128.128 0 0 1 640 640h128a128 128 0 1 1 0 256h-128a128 128 0 0 1-120.704-85.333333H469.333333c-94.293333 0-170.666667-76.373333-170.666666-170.666667H213.333333a128 128 0 1 1 0-256h85.333334c0-94.293333 76.373333-170.666667 170.666666-170.666667h49.92A128.128 128.128 0 0 1 640 128h128z m0 597.333333h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 0 0-85.333334zM341.333333 469.333333H213.333333a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 0 0-85.333334z m426.666667-256h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 0 0-85.333334z" ></Path>
|
||||
<Path Stretch="Fill" Margin="20" Fill="{DynamicResource GrayBrush2}" Data="M23.466667 674.133333c6.4-14.933333 19.2-25.6 36.266666-27.733333l292.266667-34.133333 36.266667-36.266667-98.133334-98.133333c-17.066667-17.066667-17.066667-42.666667 0-59.733334 17.066667-17.066667 42.666667-17.066667 59.733334 0l98.133333 98.133334 46.933333-46.933334-98.133333-98.133333c-17.066667-17.066667-17.066667-42.666667 0-59.733333 17.066667-17.066667 42.666667-17.066667 59.733333 0l98.133334 98.133333 44.8-44.8c-42.666667-51.2-74.666667-113.066667-93.866667-177.066667-4.266667-17.066667 2.133333-34.133333 14.933333-44.8C637.866667 51.2 791.466667 21.333333 934.4 59.733333c14.933333 4.266667 25.6 14.933333 29.866667 29.866667 38.4 142.933333 6.4 296.533333-83.2 413.866667-8.533333 10.666667-21.333333 17.066667-34.133334 17.066666-4.266667 0-8.533333 0-10.666666-2.133333-66.133333-19.2-125.866667-51.2-177.066667-93.866667L614.4 469.333333l98.133333 98.133334c17.066667 17.066667 17.066667 42.666667 0 59.733333-8.533333 8.533333-19.2 12.8-29.866666 12.8-10.666667 0-21.333333-4.266667-29.866667-12.8L554.666667 529.066667 507.733333 576l98.133334 98.133333c17.066667 17.066667 17.066667 42.666667 0 59.733334-8.533333 8.533333-19.2 12.8-29.866667 12.8-10.666667 0-21.333333-4.266667-29.866667-12.8L448 635.733333l-36.266667 36.266667-34.133333 292.266667c-2.133333 17.066667-12.8 29.866667-27.733333 36.266666-4.266667 2.133333-10.666667 2.133333-14.933334 2.133334-10.666667 0-21.333333-4.266667-29.866666-12.8L34.133333 718.933333c-12.8-12.8-14.933333-29.866667-10.666666-44.8z m298.666666 27.733334l-164.266666 19.2 147.2 147.2 17.066666-166.4zM597.333333 192c19.2 53.333333 51.2 102.4 89.6 142.933333 40.533333 40.533333 89.6 70.4 142.933334 89.6 55.466667-85.333333 76.8-189.866667 55.466666-292.266666C787.2 115.2 682.666667 136.533333 597.333333 192z" ></Path>
|
||||
</Button>
|
||||
<Button Margin="5" ToolTip="逻辑结构图" Command="{Binding NewMindCommand}" CommandParameter="Logical" Width="80" Height="80" Foreground="{DynamicResource BlackBrush}" Background="{DynamicResource WhiteBrush}" BorderBrush="{DynamicResource BlackBrush}">
|
||||
<Path Stretch="Fill" Margin="20" Fill="{DynamicResource GrayBrush2}" Data="M768 128a128 128 0 1 1 0 256h-128a128 128 0 0 1-120.704-85.333333H469.333333c-46.933333 0-85.333333 38.4-85.333333 85.333333v7.296a128 128 0 0 1 0 241.408V640c0 46.933333 38.4 85.333333 85.333333 85.333333h49.92A128.128 128.128 0 0 1 640 640h128a128 128 0 1 1 0 256h-128a128 128 0 0 1-120.704-85.333333H469.333333c-94.293333 0-170.666667-76.373333-170.666666-170.666667H213.333333a128 128 0 1 1 0-256h85.333334c0-94.293333 76.373333-170.666667 170.666666-170.666667h49.92A128.128 128.128 0 0 1 640 128h128z m0 597.333333h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 0 0-85.333334zM341.333333 469.333333H213.333333a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 0 0-85.333334z m426.666667-256h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 0 0-85.333334z" ></Path>
|
||||
</Button>
|
||||
<Button Margin="5" ToolTip="组织结构图" Command="{Binding NewMindCommand}" CommandParameter="Organizational" Width="80" Height="80" Foreground="{DynamicResource BlackBrush}" Background="{DynamicResource WhiteBrush}" BorderBrush="{DynamicResource BlackBrush}">
|
||||
<Path Stretch="Fill" Margin="20" Fill="{DynamicResource GrayBrush2}" Data="M768 128a128 128 0 1 1 0 256h-128a128 128 0 0 1-120.704-85.333333H469.333333c-46.933333 0-85.333333 38.4-85.333333 85.333333v7.296a128 128 0 0 1 0 241.408V640c0 46.933333 38.4 85.333333 85.333333 85.333333h49.92A128.128 128.128 0 0 1 640 640h128a128 128 0 1 1 0 256h-128a128 128 0 0 1-120.704-85.333333H469.333333c-94.293333 0-170.666667-76.373333-170.666666-170.666667H213.333333a128 128 0 1 1 0-256h85.333334c0-94.293333 76.373333-170.666667 170.666666-170.666667h49.92A128.128 128.128 0 0 1 640 128h128z m0 597.333333h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 0 0-85.333334zM341.333333 469.333333H213.333333a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 0 0-85.333334z m426.666667-256h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 0 0-85.333334z" ></Path>
|
||||
<Path Stretch="Fill" Margin="20" Fill="{DynamicResource GrayBrush2}" Data="M1063.331536 747.989218h-69.002695V511.309973a34.501348 34.501348 0 0 0-34.501348-34.501348H581.692722V276.010782h69.002696a34.501348 34.501348 0 0 0 34.501347-34.501348v-207.008086a34.501348 34.501348 0 0 0-34.501347-34.501348h-207.008086A34.501348 34.501348 0 0 0 414.016173 34.501348v207.008086a34.501348 34.501348 0 0 0 34.501347 34.501348h69.002696v200.797843H138.005391a34.501348 34.501348 0 0 0-34.501348 34.501348v236.679245h-69.002695a34.501348 34.501348 0 0 0-34.501348 34.501348v207.008086a34.501348 34.501348 0 0 0 34.501348 34.501348h207.008086a34.501348 34.501348 0 0 0 34.501348-34.501348v-207.008086a34.501348 34.501348 0 0 0-34.501348-34.501348h-69.002695V545.811321h345.013477v202.177897h-69.002696a34.501348 34.501348 0 0 0-34.501347 34.501348v207.008086a34.501348 34.501348 0 0 0 34.501347 34.501348h207.008086a34.501348 34.501348 0 0 0 34.501348-34.501348v-207.008086a34.501348 34.501348 0 0 0-34.501348-34.501348h-69.002695V545.811321h345.013477v202.177897h-69.002695a34.501348 34.501348 0 0 0-34.501348 34.501348v207.008086a34.501348 34.501348 0 0 0 34.501348 34.501348h207.008086a34.501348 34.501348 0 0 0 34.501348-34.501348v-207.008086a34.501348 34.501348 0 0 0-40.711591-34.501348zM483.018868 69.002695h138.005391v138.005391H483.018868zM207.008086 954.997305H69.002695v-138.005391h138.005391z m414.016173 0H483.018868v-138.005391h138.005391z m414.016172 0h-138.005391v-138.005391h138.005391z" ></Path>
|
||||
</Button>
|
||||
<Button Margin="5" ToolTip="天盘图" Command="{Binding NewMindCommand}" IsEnabled="False" CommandParameter="Celestial" Width="80" Height="80" Foreground="{DynamicResource BlackBrush}" Background="{DynamicResource WhiteBrush}" BorderBrush="{DynamicResource BlackBrush}">
|
||||
<Path Stretch="Fill" Margin="20" Fill="{DynamicResource GrayBrush2}" Data="M768 128a128 128 0 1 1 0 256h-128a128 128 0 0 1-120.704-85.333333H469.333333c-46.933333 0-85.333333 38.4-85.333333 85.333333v7.296a128 128 0 0 1 0 241.408V640c0 46.933333 38.4 85.333333 85.333333 85.333333h49.92A128.128 128.128 0 0 1 640 640h128a128 128 0 1 1 0 256h-128a128 128 0 0 1-120.704-85.333333H469.333333c-94.293333 0-170.666667-76.373333-170.666666-170.666667H213.333333a128 128 0 1 1 0-256h85.333334c0-94.293333 76.373333-170.666667 170.666666-170.666667h49.92A128.128 128.128 0 0 1 640 128h128z m0 597.333333h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 0 0-85.333334zM341.333333 469.333333H213.333333a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 0 0-85.333334z m426.666667-256h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 0 0-85.333334z" ></Path>
|
||||
<Path Stretch="Fill" Margin="20" Fill="{DynamicResource GrayBrush2}" Data="M832 368c42.666667-98.346667 46.08-183.466667 0-228.693333A125.226667 125.226667 0 0 0 740.906667 106.666667c-65.28 0-149.333333 31.146667-236.8 86.826666A341.333333 341.333333 0 0 0 193.493333 503.466667C105.173333 642.346667 79.146667 772.48 139.306667 832a125.226667 125.226667 0 0 0 91.733333 32.64A356.693333 356.693333 0 0 0 368.213333 832 341.333333 341.333333 0 0 0 832 368zM740.906667 192a47.786667 47.786667 0 0 1 31.36 7.68c10.666667 10.453333 11.733333 42.666667-1.706667 88.533333A341.333333 341.333333 0 0 0 650.666667 213.333333a260.906667 260.906667 0 0 1 90.24-21.333333zM533.333333 277.333333a256 256 0 0 1 200.746667 97.706667 861.44 861.44 0 0 1-154.666667 204.373333 874.666667 874.666667 0 0 1-204.586666 154.666667A256 256 0 0 1 533.333333 277.333333zM199.68 772.266667c-13.013333-12.8-11.306667-58.026667 13.44-121.386667a344.32 344.32 0 0 0 74.88 119.466667 208.426667 208.426667 0 0 1-56.96 9.6 47.786667 47.786667 0 0 1-31.36-7.68zM533.333333 789.333333a252.586667 252.586667 0 0 1-67.626666-9.386666A997.973333 997.973333 0 0 0 640 640a1005.866667 1005.866667 0 0 0 140.373333-173.866667A252.586667 252.586667 0 0 1 789.333333 533.333333a256 256 0 0 1-256 256z" ></Path>
|
||||
</Button>
|
||||
</WrapPanel>
|
||||
</TabItem>
|
||||
@@ -2184,20 +2184,20 @@
|
||||
<Border Width="18" Height="18" Background="{Binding PageViewModel.DiagramViewModel.MindThemeModel.MindThemeLevel1.FillColor,Converter={StaticResource ColorBrushConverter}}" CornerRadius="3"/>
|
||||
</Grid>
|
||||
</Fluent:SplitButton.LargeIcon>
|
||||
<Fluent:MenuItem Header="天空蓝" Size="Small" Background="#73a1bf" Margin="1.5" Command="{Binding PageViewModel.DiagramViewModel.ChangeMindThemeCommand}" CommandParameter="SkyBlue"/>
|
||||
<Fluent:MenuItem Header="紧凑蓝" Size="Small" Background="#73a1bf" Margin="1.5" Command="{Binding PageViewModel.DiagramViewModel.ChangeMindThemeCommand}" CommandParameter="SkyBlueMini"/>
|
||||
<Fluent:MenuItem Header="文艺绿" Size="Small" Background="#73bf76" Margin="1.5" Command="{Binding PageViewModel.DiagramViewModel.ChangeMindThemeCommand}" CommandParameter="LiteratureGreen"/>
|
||||
<Fluent:MenuItem Header="紧凑绿" Size="Small" Background="#73bf76" Margin="1.5" Command="{Binding PageViewModel.DiagramViewModel.ChangeMindThemeCommand}" CommandParameter="LiteratureGreenMini"/>
|
||||
<Fluent:MenuItem Header="脑残粉" Size="Small" Background="#bf7394" Margin="1.5" Command="{Binding PageViewModel.DiagramViewModel.ChangeMindThemeCommand}" CommandParameter="BrainDeadPink"/>
|
||||
<Fluent:MenuItem Header="紧凑粉" Size="Small" Background="#bf7394" Margin="1.5" Command="{Binding PageViewModel.DiagramViewModel.ChangeMindThemeCommand}" CommandParameter="BrainDeadPinkMini"/>
|
||||
<Fluent:MenuItem Header="浪漫紫" Size="Small" Background="#7b73bf" Margin="1.5" Command="{Binding PageViewModel.DiagramViewModel.ChangeMindThemeCommand}" CommandParameter="RomanticPurple"/>
|
||||
<Fluent:MenuItem Header="紧凑紫" Size="Small" Background="#7b73bf" Margin="1.5" Command="{Binding PageViewModel.DiagramViewModel.ChangeMindThemeCommand}" CommandParameter="RomanticPurpleMini"/>
|
||||
<Fluent:MenuItem Header="清新红" Size="Small" Background="#bf7373" Margin="1.5" Command="{Binding PageViewModel.DiagramViewModel.ChangeMindThemeCommand}" CommandParameter="FreshRed"/>
|
||||
<Fluent:MenuItem Header="紧凑红" Size="Small" Background="#bf7373" Margin="1.5" Command="{Binding PageViewModel.DiagramViewModel.ChangeMindThemeCommand}" CommandParameter="FreshRedMini"/>
|
||||
<Fluent:MenuItem Header="泥土黄" Size="Small" Background="#bf9373" Margin="1.5" Command="{Binding PageViewModel.DiagramViewModel.ChangeMindThemeCommand}" CommandParameter="EarthyYellow"/>
|
||||
<Fluent:MenuItem Header="紧凑黄" Size="Small" Background="#bf9373" Margin="1.5" Command="{Binding PageViewModel.DiagramViewModel.ChangeMindThemeCommand}" CommandParameter="EarthyYellowMini"/>
|
||||
<Fluent:MenuItem Header="冷光黄" Size="Small" Background="#e9df98" Margin="1.5" Command="{Binding PageViewModel.DiagramViewModel.ChangeMindThemeCommand}" CommandParameter="CoolLightYellow"/>
|
||||
<Fluent:MenuItem Header="紧凑黄" Size="Small" Background="#e9df98" Margin="1.5" Command="{Binding PageViewModel.DiagramViewModel.ChangeMindThemeCommand}" CommandParameter="CoolLightYellowMini"/>
|
||||
<Fluent:MenuItem Header="天空蓝" Size="Small" Background="#73a1bf" Margin="1.5" Command="{Binding PageViewModel.DiagramViewModel.ChangeMindThemeCommand}" CommandParameter="天空蓝"/>
|
||||
<Fluent:MenuItem Header="紧凑蓝" Size="Small" Background="#73a1bf" Margin="1.5" Command="{Binding PageViewModel.DiagramViewModel.ChangeMindThemeCommand}" CommandParameter="紧凑蓝"/>
|
||||
<Fluent:MenuItem Header="文艺绿" Size="Small" Background="#73bf76" Margin="1.5" Command="{Binding PageViewModel.DiagramViewModel.ChangeMindThemeCommand}" CommandParameter="文艺绿"/>
|
||||
<Fluent:MenuItem Header="紧凑绿" Size="Small" Background="#73bf76" Margin="1.5" Command="{Binding PageViewModel.DiagramViewModel.ChangeMindThemeCommand}" CommandParameter="紧凑绿"/>
|
||||
<Fluent:MenuItem Header="脑残粉" Size="Small" Background="#bf7394" Margin="1.5" Command="{Binding PageViewModel.DiagramViewModel.ChangeMindThemeCommand}" CommandParameter="脑残粉"/>
|
||||
<Fluent:MenuItem Header="紧凑粉" Size="Small" Background="#bf7394" Margin="1.5" Command="{Binding PageViewModel.DiagramViewModel.ChangeMindThemeCommand}" CommandParameter="紧凑粉"/>
|
||||
<Fluent:MenuItem Header="浪漫紫" Size="Small" Background="#7b73bf" Margin="1.5" Command="{Binding PageViewModel.DiagramViewModel.ChangeMindThemeCommand}" CommandParameter="浪漫紫"/>
|
||||
<Fluent:MenuItem Header="紧凑紫" Size="Small" Background="#7b73bf" Margin="1.5" Command="{Binding PageViewModel.DiagramViewModel.ChangeMindThemeCommand}" CommandParameter="紧凑紫"/>
|
||||
<Fluent:MenuItem Header="清新红" Size="Small" Background="#bf7373" Margin="1.5" Command="{Binding PageViewModel.DiagramViewModel.ChangeMindThemeCommand}" CommandParameter="清新红"/>
|
||||
<Fluent:MenuItem Header="紧凑红" Size="Small" Background="#bf7373" Margin="1.5" Command="{Binding PageViewModel.DiagramViewModel.ChangeMindThemeCommand}" CommandParameter="紧凑红"/>
|
||||
<Fluent:MenuItem Header="泥土黄" Size="Small" Background="#bf9373" Margin="1.5" Command="{Binding PageViewModel.DiagramViewModel.ChangeMindThemeCommand}" CommandParameter="泥土黄"/>
|
||||
<Fluent:MenuItem Header="紧凑黄" Size="Small" Background="#bf9373" Margin="1.5" Command="{Binding PageViewModel.DiagramViewModel.ChangeMindThemeCommand}" CommandParameter="紧凑黄"/>
|
||||
<Fluent:MenuItem Header="冷光黄" Size="Small" Background="#e9df98" Margin="1.5" Command="{Binding PageViewModel.DiagramViewModel.ChangeMindThemeCommand}" CommandParameter="冷光黄"/>
|
||||
<Fluent:MenuItem Header="紧凑黄" Size="Small" Background="#e9df98" Margin="1.5" Command="{Binding PageViewModel.DiagramViewModel.ChangeMindThemeCommand}" CommandParameter="紧凑冷"/>
|
||||
<Fluent:SplitButton.ToolTip>
|
||||
<Fluent:ScreenTip Title="Theme"
|
||||
Text="主题"
|
||||
|
||||
@@ -13,26 +13,31 @@ namespace AIStudio.Wpf.DiagramDesigner.Additionals.Converters
|
||||
{
|
||||
if (values != null && values.Length > 2)
|
||||
{
|
||||
var diagram = values[0] as FrameworkElement;
|
||||
var zoomValue = (double)values[1];
|
||||
var pageunit = (PageUnit)values[2];
|
||||
var unit = Unit.Cm;
|
||||
if (pageunit > PageUnit.km)
|
||||
try
|
||||
{
|
||||
unit = Unit.Inch;
|
||||
}
|
||||
Vector vector = System.Windows.Media.VisualTreeHelper.GetOffset(diagram);
|
||||
|
||||
if (parameter?.ToString() == "Y")
|
||||
{
|
||||
var value = 0 - (unit == Unit.Cm? ScreenHelper.WidthToCm(vector.Y - 20) : ScreenHelper.WidthToInch(vector.Y - 20))/ zoomValue;
|
||||
return value;
|
||||
}
|
||||
else
|
||||
{
|
||||
var value = 0 - (unit == Unit.Cm ? ScreenHelper.WidthToCm(vector.X - 20) : ScreenHelper.WidthToInch(vector.X - 20)) / zoomValue;
|
||||
return value;
|
||||
var diagram = values[0] as FrameworkElement;
|
||||
var zoomValue = (double)values[1];
|
||||
var pageunit = (PageUnit)values[2];
|
||||
var unit = Unit.Cm;
|
||||
if (pageunit > PageUnit.km)
|
||||
{
|
||||
unit = Unit.Inch;
|
||||
}
|
||||
Vector vector = System.Windows.Media.VisualTreeHelper.GetOffset(diagram);
|
||||
|
||||
if (parameter?.ToString() == "Y")
|
||||
{
|
||||
var value = 0 - (unit == Unit.Cm ? ScreenHelper.WidthToCm(vector.Y - 20) : ScreenHelper.WidthToInch(vector.Y - 20)) / zoomValue;
|
||||
return value;
|
||||
}
|
||||
else
|
||||
{
|
||||
var value = 0 - (unit == Unit.Cm ? ScreenHelper.WidthToCm(vector.X - 20) : ScreenHelper.WidthToInch(vector.X - 20)) / zoomValue;
|
||||
return value;
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -468,20 +468,20 @@
|
||||
</ItemsPanelTemplate>
|
||||
</controls:DropDownButton.ItemsPanel>
|
||||
<controls:DropDownButton.Items>
|
||||
<MenuItem Header="天空蓝" Background="#73a1bf" Margin="1.5" Command="{Binding ChangeMindThemeCommand}" CommandParameter="SkyBlue"/>
|
||||
<MenuItem Header="紧凑蓝" Background="#73a1bf" Margin="1.5" Command="{Binding ChangeMindThemeCommand}" CommandParameter="SkyBlueMini"/>
|
||||
<MenuItem Header="文艺绿" Background="#73bf76" Margin="1.5" Command="{Binding ChangeMindThemeCommand}" CommandParameter="LiteratureGreen"/>
|
||||
<MenuItem Header="紧凑绿" Background="#73bf76" Margin="1.5" Command="{Binding ChangeMindThemeCommand}" CommandParameter="LiteratureGreenMini"/>
|
||||
<MenuItem Header="脑残粉" Background="#bf7394" Margin="1.5" Command="{Binding ChangeMindThemeCommand}" CommandParameter="BrainDeadPink"/>
|
||||
<MenuItem Header="紧凑粉" Background="#bf7394" Margin="1.5" Command="{Binding ChangeMindThemeCommand}" CommandParameter="BrainDeadPinkMini"/>
|
||||
<MenuItem Header="浪漫紫" Background="#7b73bf" Margin="1.5" Command="{Binding ChangeMindThemeCommand}" CommandParameter="RomanticPurple"/>
|
||||
<MenuItem Header="紧凑紫" Background="#7b73bf" Margin="1.5" Command="{Binding ChangeMindThemeCommand}" CommandParameter="RomanticPurpleMini"/>
|
||||
<MenuItem Header="清新红" Background="#bf7373" Margin="1.5" Command="{Binding ChangeMindThemeCommand}" CommandParameter="FreshRed"/>
|
||||
<MenuItem Header="紧凑红" Background="#bf7373" Margin="1.5" Command="{Binding ChangeMindThemeCommand}" CommandParameter="FreshRedMini"/>
|
||||
<MenuItem Header="泥土黄" Background="#bf9373" Margin="1.5" Command="{Binding ChangeMindThemeCommand}" CommandParameter="EarthyYellow"/>
|
||||
<MenuItem Header="紧凑黄" Background="#bf9373" Margin="1.5" Command="{Binding ChangeMindThemeCommand}" CommandParameter="EarthyYellowMini"/>
|
||||
<MenuItem Header="冷光黄" Background="#e9df98" Margin="1.5" Command="{Binding ChangeMindThemeCommand}" CommandParameter="CoolLightYellow"/>
|
||||
<MenuItem Header="紧凑黄" Background="#e9df98" Margin="1.5" Command="{Binding ChangeMindThemeCommand}" CommandParameter="CoolLightYellowMini"/>
|
||||
<MenuItem Header="天空蓝" Background="#73a1bf" Margin="1.5" Command="{Binding ChangeMindThemeCommand}" CommandParameter="天空蓝"/>
|
||||
<MenuItem Header="紧凑蓝" Background="#73a1bf" Margin="1.5" Command="{Binding ChangeMindThemeCommand}" CommandParameter="紧凑蓝"/>
|
||||
<MenuItem Header="文艺绿" Background="#73bf76" Margin="1.5" Command="{Binding ChangeMindThemeCommand}" CommandParameter="文艺绿"/>
|
||||
<MenuItem Header="紧凑绿" Background="#73bf76" Margin="1.5" Command="{Binding ChangeMindThemeCommand}" CommandParameter="紧凑绿"/>
|
||||
<MenuItem Header="脑残粉" Background="#bf7394" Margin="1.5" Command="{Binding ChangeMindThemeCommand}" CommandParameter="脑残粉"/>
|
||||
<MenuItem Header="紧凑粉" Background="#bf7394" Margin="1.5" Command="{Binding ChangeMindThemeCommand}" CommandParameter="紧凑粉"/>
|
||||
<MenuItem Header="浪漫紫" Background="#7b73bf" Margin="1.5" Command="{Binding ChangeMindThemeCommand}" CommandParameter="浪漫紫"/>
|
||||
<MenuItem Header="紧凑紫" Background="#7b73bf" Margin="1.5" Command="{Binding ChangeMindThemeCommand}" CommandParameter="紧凑紫"/>
|
||||
<MenuItem Header="清新红" Background="#bf7373" Margin="1.5" Command="{Binding ChangeMindThemeCommand}" CommandParameter="清新红"/>
|
||||
<MenuItem Header="紧凑红" Background="#bf7373" Margin="1.5" Command="{Binding ChangeMindThemeCommand}" CommandParameter="紧凑红"/>
|
||||
<MenuItem Header="泥土黄" Background="#bf9373" Margin="1.5" Command="{Binding ChangeMindThemeCommand}" CommandParameter="泥土黄"/>
|
||||
<MenuItem Header="紧凑黄" Background="#bf9373" Margin="1.5" Command="{Binding ChangeMindThemeCommand}" CommandParameter="紧凑黄"/>
|
||||
<MenuItem Header="冷光黄" Background="#e9df98" Margin="1.5" Command="{Binding ChangeMindThemeCommand}" CommandParameter="冷光黄"/>
|
||||
<MenuItem Header="紧凑黄" Background="#e9df98" Margin="1.5" Command="{Binding ChangeMindThemeCommand}" CommandParameter="紧凑冷"/>
|
||||
</controls:DropDownButton.Items>
|
||||
</controls:DropDownButton>
|
||||
<Line Grid.Column="3" X1="0" Y1="0" X2="0" Y2="100" StrokeDashArray="1" Stroke="Gray" StrokeThickness="1"></Line>
|
||||
|
||||
@@ -16,20 +16,20 @@ namespace AIStudio.Wpf.Mind.Helpers
|
||||
{
|
||||
switch (theme)
|
||||
{
|
||||
case "SkyBlue": return GetSkyBlueTheme();
|
||||
case "SkyBlueMini": return GetSkyBlueMiniTheme();
|
||||
case "LiteratureGreen": return GetLiteratureGreenTheme();
|
||||
case "LiteratureGreenMini": return GetLiteratureGreenMiniTheme();
|
||||
case "BrainDeadPink": return GetBrainDeadPinkTheme();
|
||||
case "BrainDeadPinkMini": return GetBrainDeadPinkMiniTheme();
|
||||
case "RomanticPurple": return GetRomanticPurpleTheme();
|
||||
case "RomanticPurpleMini": return GetRomanticPurpleMiniTheme();
|
||||
case "FreshRed": return GetFreshRedTheme();
|
||||
case "FreshRedMini": return GetFreshRedMiniTheme();
|
||||
case "EarthyYellow": return GetEarthyYellowTheme();
|
||||
case "EarthyYellowMini": return GetEarthyYellowMiniTheme();
|
||||
case "CoolLightYellow": return GetCoolLightYellowTheme();
|
||||
case "CoolLightYellowMini": return GetCoolLightYellowMiniTheme();
|
||||
case "天空蓝": return GetSkyBlueTheme();
|
||||
case "紧凑蓝": return GetSkyBlueMiniTheme();
|
||||
case "文艺绿": return GetLiteratureGreenTheme();
|
||||
case "紧凑绿": return GetLiteratureGreenMiniTheme();
|
||||
case "脑残粉": return GetBrainDeadPinkTheme();
|
||||
case "紧凑粉": return GetBrainDeadPinkMiniTheme();
|
||||
case "浪漫紫": return GetRomanticPurpleTheme();
|
||||
case "紧凑紫": return GetRomanticPurpleMiniTheme();
|
||||
case "清新红": return GetFreshRedTheme();
|
||||
case "紧凑红": return GetFreshRedMiniTheme();
|
||||
case "泥土黄": return GetEarthyYellowTheme();
|
||||
case "紧凑黄": return GetEarthyYellowMiniTheme();
|
||||
case "冷光黄": return GetCoolLightYellowTheme();
|
||||
case "紧凑冷": return GetCoolLightYellowMiniTheme();
|
||||
default: return GetSkyBlueTheme();
|
||||
}
|
||||
}
|
||||
@@ -39,6 +39,7 @@ namespace AIStudio.Wpf.Mind.Helpers
|
||||
return new MindThemeModel()
|
||||
{
|
||||
Name = "天空蓝",
|
||||
Key = "SkyBlue",
|
||||
MindThemeLevel1 = new MindTheme()
|
||||
{
|
||||
ItemWidth = 110,
|
||||
@@ -76,6 +77,7 @@ namespace AIStudio.Wpf.Mind.Helpers
|
||||
return new MindThemeModel()
|
||||
{
|
||||
Name = "紧凑蓝",
|
||||
Key = "SkyBlueMini",
|
||||
MindThemeLevel1 = new MindTheme()
|
||||
{
|
||||
ItemWidth = 110,
|
||||
@@ -113,6 +115,7 @@ namespace AIStudio.Wpf.Mind.Helpers
|
||||
return new MindThemeModel()
|
||||
{
|
||||
Name = "文艺绿",
|
||||
Key = "LiteratureGreen",
|
||||
MindThemeLevel1 = new MindTheme()
|
||||
{
|
||||
ItemWidth = 110,
|
||||
@@ -150,6 +153,7 @@ namespace AIStudio.Wpf.Mind.Helpers
|
||||
return new MindThemeModel()
|
||||
{
|
||||
Name = "紧凑绿",
|
||||
Key = "LiteratureGreenMini",
|
||||
MindThemeLevel1 = new MindTheme()
|
||||
{
|
||||
ItemWidth = 110,
|
||||
@@ -187,6 +191,7 @@ namespace AIStudio.Wpf.Mind.Helpers
|
||||
return new MindThemeModel()
|
||||
{
|
||||
Name = "脑残粉",
|
||||
Key = "BrainDeadPink",
|
||||
MindThemeLevel1 = new MindTheme()
|
||||
{
|
||||
ItemWidth = 110,
|
||||
@@ -224,6 +229,7 @@ namespace AIStudio.Wpf.Mind.Helpers
|
||||
return new MindThemeModel()
|
||||
{
|
||||
Name = "紧凑粉",
|
||||
Key = "BrainDeadPinkMini",
|
||||
MindThemeLevel1 = new MindTheme()
|
||||
{
|
||||
ItemWidth = 110,
|
||||
@@ -261,6 +267,7 @@ namespace AIStudio.Wpf.Mind.Helpers
|
||||
return new MindThemeModel()
|
||||
{
|
||||
Name = "浪漫紫",
|
||||
Key = "RomanticPurple",
|
||||
MindThemeLevel1 = new MindTheme()
|
||||
{
|
||||
ItemWidth = 110,
|
||||
@@ -298,6 +305,7 @@ namespace AIStudio.Wpf.Mind.Helpers
|
||||
return new MindThemeModel()
|
||||
{
|
||||
Name = "紧凑紫",
|
||||
Key = "RomanticPurpleMini",
|
||||
MindThemeLevel1 = new MindTheme()
|
||||
{
|
||||
ItemWidth = 110,
|
||||
@@ -335,6 +343,7 @@ namespace AIStudio.Wpf.Mind.Helpers
|
||||
return new MindThemeModel()
|
||||
{
|
||||
Name = "清新红",
|
||||
Key = "FreshRed",
|
||||
MindThemeLevel1 = new MindTheme()
|
||||
{
|
||||
ItemWidth = 110,
|
||||
@@ -372,6 +381,7 @@ namespace AIStudio.Wpf.Mind.Helpers
|
||||
return new MindThemeModel()
|
||||
{
|
||||
Name = "紧凑红",
|
||||
Key = "FreshRedMini",
|
||||
MindThemeLevel1 = new MindTheme()
|
||||
{
|
||||
ItemWidth = 110,
|
||||
@@ -409,6 +419,7 @@ namespace AIStudio.Wpf.Mind.Helpers
|
||||
return new MindThemeModel()
|
||||
{
|
||||
Name = "泥土黄",
|
||||
Key = "EarthyYellow",
|
||||
MindThemeLevel1 = new MindTheme()
|
||||
{
|
||||
ItemWidth = 110,
|
||||
@@ -446,6 +457,7 @@ namespace AIStudio.Wpf.Mind.Helpers
|
||||
return new MindThemeModel()
|
||||
{
|
||||
Name = "紧凑黄",
|
||||
Key = "EarthyYellowMini",
|
||||
MindThemeLevel1 = new MindTheme()
|
||||
{
|
||||
ItemWidth = 110,
|
||||
@@ -483,6 +495,7 @@ namespace AIStudio.Wpf.Mind.Helpers
|
||||
return new MindThemeModel()
|
||||
{
|
||||
Name = "冷光黄",
|
||||
Key = "CoolLightYellow",
|
||||
MindThemeLevel1 = new MindTheme()
|
||||
{
|
||||
ItemWidth = 110,
|
||||
@@ -520,6 +533,7 @@ namespace AIStudio.Wpf.Mind.Helpers
|
||||
return new MindThemeModel()
|
||||
{
|
||||
Name = "紧凑黄",
|
||||
Key = "CoolLightYellowMini",
|
||||
MindThemeLevel1 = new MindTheme()
|
||||
{
|
||||
ItemWidth = 110,
|
||||
@@ -628,6 +642,10 @@ namespace AIStudio.Wpf.Mind.Helpers
|
||||
|
||||
public class MindThemeModel
|
||||
{
|
||||
public string Key
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
public string Name
|
||||
{
|
||||
get; set;
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace AIStudio.Wpf.Mind.ViewModels
|
||||
}
|
||||
}
|
||||
|
||||
private MindThemeModel _mindThemeModel = MindThemeHelper.GetTheme("SkyBlue");
|
||||
private MindThemeModel _mindThemeModel = MindThemeHelper.GetTheme("天空蓝");
|
||||
public MindThemeModel MindThemeModel
|
||||
{
|
||||
get
|
||||
|
||||
@@ -152,7 +152,7 @@ namespace AIStudio.Wpf.Mind.ViewModels
|
||||
{
|
||||
get
|
||||
{
|
||||
return (Root as IMindDiagramViewModel)?.MindThemeModel ?? MindThemeHelper.GetTheme("SkyBlue");
|
||||
return (Root as IMindDiagramViewModel)?.MindThemeModel ?? MindThemeHelper.GetTheme("天空蓝");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user