-
Notifications
You must be signed in to change notification settings - Fork 635
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d5f98ce
commit 46e3fd3
Showing
23 changed files
with
720 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using Dynamo.Configuration; | ||
|
||
namespace Dynamo.Graph.Annotations | ||
{ | ||
/// <summary> | ||
/// This class will represent a separator item that once inserted in the list the Style selector will take the MenuItem separator style | ||
/// </summary> | ||
internal class GroupStyleSeparator : StyleItem | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,49 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Dynamo.Core; | ||
|
||
namespace Dynamo.Configuration | ||
{ | ||
/// <summary> | ||
/// This class stores the group styles added by the user | ||
/// </summary> | ||
public class StyleItem | ||
public class StyleItem : NotificationObject | ||
{ | ||
private string hexColorString; | ||
private string name; | ||
private bool isDefault = false; | ||
|
||
/// This property will contain the Group Name of the stored style | ||
public string Name { get; set; } | ||
public string Name | ||
{ | ||
get { return name; } | ||
set | ||
{ | ||
name = value; | ||
RaisePropertyChanged(nameof(Name)); | ||
} | ||
} | ||
|
||
/// This property will contain the color in hexadecimal | ||
public string HexColorString { get; set; } | ||
public string HexColorString | ||
{ | ||
get { return hexColorString; } | ||
set | ||
{ | ||
hexColorString = value; | ||
RaisePropertyChanged(nameof(HexColorString)); | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// This property will describe if the current GroupStyle added is a default one or a custom one. | ||
/// </summary> | ||
public bool IsDefault | ||
{ | ||
get { return isDefault; } | ||
set | ||
{ | ||
isDefault = value; | ||
RaisePropertyChanged(nameof(IsDefault)); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.