Skip to content

Commit

Permalink
give the palettes fun names
Browse files Browse the repository at this point in the history
Signed-off-by: Brandon Li <sirbrandonthenerd@gmail.com>
  • Loading branch information
aspiringLich committed Jul 21, 2024
1 parent 299e0a5 commit 05917be
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 19 deletions.
18 changes: 10 additions & 8 deletions Content.Client/Stylesheets/Redux/Palettes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,20 @@ namespace Content.Client.Stylesheets.Redux;
/// </remarks>
public static class Palettes
{
public static readonly ColorPalette NanoPrimary = new(Color.FromHex("#575b7f"));
public static readonly ColorPalette NanoSecondary = new(Color.FromHex("#5b5d6e"));
public static readonly ColorPalette Navy = new(Color.FromHex("#575b7f"));
public static readonly ColorPalette Cyan = new(Color.FromHex("#4a6173"));
public static readonly ColorPalette Slate = new(Color.FromHex("#5b5d6e"));
public static readonly ColorPalette Neutral = new(Color.FromHex("#5e5e5e"));

public static readonly ColorPalette InterfacePrimary = new(Color.FromHex("#4a6173"));
public static readonly ColorPalette InterfaceSecondary = new(Color.FromHex("#5e5e5e"));
public static readonly ColorPalette Red = new(Color.FromHex("#cf2f2f"));
public static readonly ColorPalette Amber = new(Color.FromHex("#c18e36"));
public static readonly ColorPalette Green = new(Color.FromHex("#3c854a"));
public static readonly StatusPalette Status = new([Red.Base, Amber.Base, Green.Base]);

public static readonly ColorPalette PositiveGreen = new(Color.FromHex("#3e6c45"));
public static readonly ColorPalette NegativeRed = new(Color.FromHex("#cf2f2f"));
public static readonly ColorPalette HighlightYellow = new(Color.FromHex("#a88b5e"));
public static readonly ColorPalette Gold = new(Color.FromHex("#a88b5e"));
public static readonly ColorPalette Maroon = new(Color.FromHex("#9b2236"));

// Intended to be used with `ModulateSelf` to darken / lighten something
public static readonly ColorPalette AlphaModulate = new(Color.FromHex("#ffffff"));

public static readonly StatusPalette Status = new([NegativeRed.Base, HighlightYellow.Base, PositiveGreen.Base]);
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

public sealed partial class NanotrasenStylesheet
{
public override ColorPalette PrimaryPalette => Palettes.NanoPrimary;
public override ColorPalette SecondaryPalette => Palettes.NanoSecondary;
public override ColorPalette PositivePalette => Palettes.PositiveGreen;
public override ColorPalette NegativePalette => Palettes.NegativeRed;
public override ColorPalette HighlightPalette => Palettes.HighlightYellow;
public override ColorPalette PrimaryPalette => Palettes.Navy;
public override ColorPalette SecondaryPalette => Palettes.Slate;
public override ColorPalette PositivePalette => Palettes.Green;
public override ColorPalette NegativePalette => Palettes.Red;
public override ColorPalette HighlightPalette => Palettes.Gold;
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ namespace Content.Client.Stylesheets.Redux.Stylesheets;

public partial class SystemStylesheet
{
public override ColorPalette PrimaryPalette => Palettes.InterfacePrimary;
public override ColorPalette SecondaryPalette => Palettes.InterfaceSecondary;
public override ColorPalette PositivePalette => Palettes.PositiveGreen;
public override ColorPalette NegativePalette => Palettes.NegativeRed;
public override ColorPalette HighlightPalette => Palettes.HighlightYellow;
public override ColorPalette PrimaryPalette => Palettes.Cyan;
public override ColorPalette SecondaryPalette => Palettes.Neutral;
public override ColorPalette PositivePalette => Palettes.Green;
public override ColorPalette NegativePalette => Palettes.Red;
public override ColorPalette HighlightPalette => Palettes.Maroon;
}
2 changes: 1 addition & 1 deletion Content.Client/Stylesheets/Redux/todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
- [x] change `ButtonHovered` and friends to `PseudoHovered`
- [x] `IPanelPalette` is unnecessary now
- [ ] What the fuck is `StyleSpace` get rid of it
- [ ] Fix the codepen
- [x] Fix the codepen
- [ ] figure out `BaseStylesheet.Fonts`

#### HARDCODED SHIT (non exhaustive list)
Expand Down

0 comments on commit 05917be

Please sign in to comment.