This repository has been archived by the owner on Jun 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
FlatColors.cs
39 lines (34 loc) · 1.94 KB
/
FlatColors.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;
namespace GesturalMusic
{
class FlatColors
{
public readonly static SolidColorBrush WHITE = new SolidColorBrush(Color.FromRgb(236, 240, 241));
public readonly static SolidColorBrush DARK_WHITE = new SolidColorBrush(Color.FromRgb(189, 195, 199));
public readonly static SolidColorBrush LIGHT_GRAY = new SolidColorBrush(Color.FromRgb(149, 165, 166));
public readonly static SolidColorBrush DARK_GRAY = new SolidColorBrush(Color.FromRgb(127, 140, 141));
public readonly static SolidColorBrush LIGHT_BLUE = new SolidColorBrush(Color.FromRgb(52, 152, 219));
public readonly static SolidColorBrush LIGHT_RED = new SolidColorBrush(Color.FromRgb(231, 76, 60));
public readonly static SolidColorBrush LIGHT_ORANGE = new SolidColorBrush(Color.FromRgb(230, 126, 34));
public readonly static SolidColorBrush LIGHT_GREEN = new SolidColorBrush(Color.FromRgb(46, 204, 113));
public readonly static SolidColorBrush YELLOW = new SolidColorBrush(Color.FromRgb(241, 196, 15));
public readonly static SolidColorBrush DARK_BLUEGRAY = new SolidColorBrush(Color.FromRgb(44, 62, 80));
public readonly static SolidColorBrush MIDNIGHT_BLACK = new SolidColorBrush(Color.FromRgb(0, 0, 0));
/**
* Takes in a color brush and returns a slightly translucent version of it.
* By default, the decrement is 0.1, but can be anything between 0 and 1.
* A decrement of 1 will result in a completely translucent color (and is pointless)
*/
public static SolidColorBrush Translucent(SolidColorBrush b, double decrement = 0.1) {
SolidColorBrush newBrush = b;
Console.WriteLine(newBrush.Opacity);
newBrush.Opacity -= decrement;
return newBrush;
}
}
}