From 342a0faa35f73e4a72f9b8ba3971b1cf7f619549 Mon Sep 17 00:00:00 2001 From: Evan Kaloudis Date: Sun, 12 May 2024 17:20:58 -0400 Subject: [PATCH] Theme: Radioactive --- locales/en.json | 1 + stores/SettingsStore.ts | 5 +++++ utils/ThemeUtils.ts | 31 +++++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+) diff --git a/locales/en.json b/locales/en.json index a8a3f4b60..94e291aaa 100644 --- a/locales/en.json +++ b/locales/en.json @@ -693,6 +693,7 @@ "views.Settings.Theme.mint": "Mint", "views.Settings.Theme.red-metallic": "Red Metallic", "views.Settings.Theme.watermelon": "Watermelon", + "views.Settings.Theme.radioactive": "Radioactive", "views.Settings.Display.title": "Display", "views.Settings.Display.defaultView": "Default view", "views.Settings.Display.DefaultView.balance": "Balance", diff --git a/stores/SettingsStore.ts b/stores/SettingsStore.ts index e69e69f87..a178bfc24 100644 --- a/stores/SettingsStore.ts +++ b/stores/SettingsStore.ts @@ -840,6 +840,11 @@ export const THEME_KEYS = [ key: 'Watermelon', translateKey: 'views.Settings.Theme.watermelon', value: 'watermelon' + }, + { + key: 'Radioactive', + translateKey: 'views.Settings.Theme.radioactive', + value: 'radioactive' } ]; diff --git a/utils/ThemeUtils.ts b/utils/ThemeUtils.ts index 4c0068a97..97ca04189 100644 --- a/utils/ThemeUtils.ts +++ b/utils/ThemeUtils.ts @@ -322,6 +322,35 @@ export function themeColor(themeString: string): any { secondaryText: 'lightgray' }; + const Radioactive: { [key: string]: any } = { + generalStyle: 'dark', + background: '#000', + gradientBackground: ['#191919', '#000000'], + secondary: '#31363F', + text: 'white', + secondaryText: '#A7A9AC', + highlight: '#b8ff0f', + error: '#992600', + separator: '#31363F', + outbound: '#b8ff0f', + inbound: '#547506', + success: '#46BE43', + warning: '#E14C4C', + bitcoin: '#FFB040', + delete: '#992600', + qr: '#b8ff0f', + qrBackground: '#000', + qrLogoBackground: '#b8ff0f', + invertQrIcons: false, + qrFrame: '#FFD93F', + bolt: '#FFF', + chain: '#FFF', + disabled: '#767577', + buttonBackground: '#b8ff0f', + buttonText: '#000', + action: '#FFF' + }; + switch (theme) { case 'kyriaki': return Kyriaki[themeString] || Dark[themeString]; @@ -365,6 +394,8 @@ export function themeColor(themeString: string): any { return RedMetallic[themeString] || Dark[themeString]; case 'watermelon': return Watermelon[themeString] || Dark[themeString]; + case 'radioactive': + return Radioactive[themeString] || Dark[themeString]; default: return Dark[themeString]; }