Skip to content

Commit

Permalink
Doing some more colors for Dark Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce authored Jan 2, 2023
1 parent 417756f commit d743f68
Showing 1 changed file with 33 additions and 7 deletions.
40 changes: 33 additions & 7 deletions lib/Utils/Color.vala
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
*/


// Taken from https://github.com/gka/chroma.js/blob/75ea5d8a5480c90ef1c7830003ac63c2d3a15c03/src/io/lab/lab-constants.js

/**
Expand All @@ -42,25 +40,53 @@ namespace He.Color.LabConstants {
* Miscellaneous color related functions
*/
namespace He.Color {
// Not true black because it's too harsh.
// True Black for Harsh Dark Mode.
public const RGBColor HARSH_BLACK = {
0,
0,
0
};

// Medium black for Medium Dark Mode.
public const RGBColor BLACK = {
45,
45,
45
};

// Softer black for Soft Dark Mode
public const RGBColor SOFT_BLACK = {
90,
90,
90
};

// Not true white because it's too harsh.
public const RGBColor WHITE = {
240,
240,
242
};

// Colors used for cards or elements atop the bg when Harsh Dark Mode.
public const RGBColor HARSH_CARD_BLACK = {
32,
32,
32
};

// Colors used for cards or elements atop the bg.
// Colors used for cards or elements atop the bg when Medium Dark Mode.
public const RGBColor CARD_BLACK = {
34,
38,
43
61,
61,
61
};

// Colors used for cards or elements atop the bg when Soft Dark Mode.
public const RGBColor SOFT_CARD_BLACK = {
106,
106,
106
};

public const RGBColor CARD_WHITE = {
Expand Down

0 comments on commit d743f68

Please sign in to comment.