Skip to content

Commit

Permalink
Add theme Electric Purple (#1889)
Browse files Browse the repository at this point in the history
* add theme file

add theme file electricPurple.js

* import theme file 

import theme file  electricPurple

* add electricPurple.css.js
  • Loading branch information
william-lohan committed Sep 30, 2022
1 parent 77dbaff commit 4209e14
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 0 deletions.
39 changes: 39 additions & 0 deletions ui/src/themes/electricPurple.css.js
@@ -0,0 +1,39 @@
module.exports = `
.react-jinke-music-player-main svg:active, .react-jinke-music-player-main svg:hover {
color: #bd4aff;
}
.react-jinke-music-player-main .music-player-panel .panel-content .rc-slider-handle, .react-jinke-music-player-main .music-player-panel .panel-content .rc-slider-track {
background-color: #8800cb;
}
.react-jinke-music-player-main ::-webkit-scrollbar-thumb {
background-color: #8800cb;
}
.react-jinke-music-player-main .music-player-panel .panel-content .rc-slider-handle:active {
box-shadow: 0 0 2px #8800cb;
}
.react-jinke-music-player-main .audio-item.playing svg {
color: #8800cb;
}
.react-jinke-music-player-main .audio-item.playing .player-singer {
color: #8800cb !important;
}
.audio-lists-panel-content .audio-item.playing, .audio-lists-panel-content .audio-item.playing svg {
color: #8800cb;
}
.audio-lists-panel-content .audio-item:active .group:not([class=".player-delete"]) svg, .audio-lists-panel-content .audio-item:hover .group:not([class=".player-delete"]) svg {
color: #8800cb;
}
.react-jinke-music-player-mobile-progress .rc-slider-handle, .react-jinke-music-player-mobile-progress .rc-slider-track {
background-color: #8800cb;
}
`
55 changes: 55 additions & 0 deletions ui/src/themes/electricPurple.js
@@ -0,0 +1,55 @@
export default {
themeName: 'Electric Purple',
palette: {
primary: {
light: '#f757ff',
dark: '#8800cb',
main: '#bf00ff',
contrastText: '#fff',
},
secondary: {
light: '#bd4aff',
dark: '#530099',
main: '#8800cb',
contrastText: '#fff',
},
warn: {
light: '#ffff82',
dark: '#c9bf07',
main: '#fff14e',
contrastText: '#000',
},
error: {
light: '#ff763a',
dark: '#c30000',
main: '#ff3f00',
contrastText: '#000',
},
type: 'dark',
},
overrides: {
MuiFormGroup: {
root: {
color: 'white',
},
},
NDLogin: {
systemNameLink: {
color: '#fff',
},
welcome: {
color: '#eee',
},
},
NDMobileArtistDetails: {
bgContainer: {
background:
'linear-gradient(to bottom, rgba(52 52 52 / 72%), rgb(48 48 48))!important',
},
},
},
player: {
theme: 'dark',
stylesheet: require('./electricPurple.css.js'),
},
}
2 changes: 2 additions & 0 deletions ui/src/themes/index.js
Expand Up @@ -5,13 +5,15 @@ import GreenTheme from './green'
import SpotifyTheme from './spotify'
import LigeraTheme from './ligera'
import MonokaiTheme from './monokai'
import ElectricPurpleTheme from './electricPurple'

export default {
// Classic default themes
LightTheme,
DarkTheme,

// New themes should be added here, in alphabetic order
ElectricPurpleTheme,
ExtraDarkTheme,
GreenTheme,
LigeraTheme,
Expand Down

0 comments on commit 4209e14

Please sign in to comment.