Skip to content

Commit

Permalink
Merge pull request #2190 from kaloudis/theme-radioactive
Browse files Browse the repository at this point in the history
Theme: Radioactive
  • Loading branch information
kaloudis authored May 15, 2024
2 parents 6b81263 + 342a0fa commit 059aa6e
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions stores/SettingsStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
];

Expand Down
31 changes: 31 additions & 0 deletions utils/ThemeUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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];
}
Expand Down

0 comments on commit 059aa6e

Please sign in to comment.