Files
desktop/src/widget/ThemeColors-h.patch
2024-03-29 18:53:01 +01:00

21 lines
698 B
C++

diff --git a/widget/ThemeColors.h b/widget/ThemeColors.h
index 739a7ca0f0ff4d1647c5c204b49ba7cc157c76fd..86a89bc890ec5ef824f0a0295876fddb9e363c7c 100644
--- a/widget/ThemeColors.h
+++ b/widget/ThemeColors.h
@@ -13,8 +13,14 @@
namespace mozilla::widget {
+#ifndef ZEN_DEFAULT_ACCENT_COLOR
+// Like a normal hex code:
+// 0xRRGGBBAA
+#define ZEN_DEFAULT_ACCENT_COLOR 0x000000df
+#endif
+
static constexpr gfx::sRGBColor sDefaultAccent(
- gfx::sRGBColor::UnusualFromARGB(0xff0060df)); // Luminance: 13.69346%
+ gfx::sRGBColor::UnusualFromARGB(ZEN_DEFAULT_ACCENT_COLOR)); // Luminance: 13.69346%
static constexpr gfx::sRGBColor sDefaultAccentText(
gfx::sRGBColor::OpaqueWhite());