mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-05-04 15:01:29 +08:00
mind集成到diagram app中
This commit is contained in:
@@ -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