Skip to content

Commit 1e78a14

Browse files
Johann DirryMovGP0
authored andcommitted
Implementing DynamicColorTool which is showcasing dynamic color palette generation
1 parent fa6b1cc commit 1e78a14

File tree

16 files changed

+2226
-20
lines changed

16 files changed

+2226
-20
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
using System.Windows.Media;
2+
3+
namespace MaterialDesign3Demo.Domain;
4+
5+
public sealed class DynamicColorGridTile
6+
{
7+
public DynamicColorGridTile(string label, string colorHex, Brush backgroundBrush, Brush foregroundBrush, int column, int columnSpan)
8+
{
9+
Label = label;
10+
ColorHex = colorHex;
11+
BackgroundBrush = backgroundBrush;
12+
ForegroundBrush = foregroundBrush;
13+
Column = column;
14+
ColumnSpan = columnSpan;
15+
}
16+
17+
public string Label { get; }
18+
19+
public string ColorHex { get; }
20+
21+
public Brush BackgroundBrush { get; }
22+
23+
public Brush ForegroundBrush { get; }
24+
25+
public int Column { get; }
26+
27+
public int ColumnSpan { get; }
28+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace MaterialDesign3Demo.Domain;
2+
3+
public enum DynamicColorSourceMode
4+
{
5+
Auto,
6+
Custom
7+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
namespace MaterialDesign3Demo.Domain;
2+
3+
public enum DynamicColorThemeMode
4+
{
5+
System,
6+
Light,
7+
Dark
8+
}

0 commit comments

Comments
 (0)