Skip to content

Commit

Permalink
Initial Implementation of light theming
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Mar 21, 2016
1 parent 69e9339 commit 17a6613
Show file tree
Hide file tree
Showing 12 changed files with 2,105 additions and 1,930 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"extends": "airbnb/base",
"parser": "babel-eslint"
}
7 changes: 4 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@ module.exports = (grunt) => {
options: {
sourceMap: true,
presets: ['es2015'],
plugins: ['transform-class-properties'],
},
dist: {
files: {
'dist/gmusic-theme.js': 'dist/gmusic-theme.js',
'dist/gmusic-theme.js': 'src/gmusic-theme.js',
},
},
},
browserify: {
dist: {
files: {
'dist/gmusic-theme.js': ['src/gmusic-theme.js'],
'dist/gmusic-theme.js': ['dist/gmusic-theme.js'],
},
options: {
transform: ['brfs'],
Expand Down Expand Up @@ -57,5 +58,5 @@ module.exports = (grunt) => {


grunt.registerTask('test', ['eslint']);
grunt.registerTask('build', ['eslint', 'execute:genCSS', 'browserify', 'babel', 'uglify']);
grunt.registerTask('build', ['eslint', 'execute:genCSS', 'babel', 'browserify', 'uglify']);
};
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,14 @@ included will not be changed from the defaults. `enabled` is set to false by de

### States

#### `enableAll`
Enables the current custom theme for ALL custom colors. Everything becomes themed

### `enableHighlight`
Enables the current custom theme but ONLY uses the custom highlight color. Everything else remains standard Google Play Music styles.

#### `enable()`
Enables the current custom theme
Is an alias of `enableAll`, present for backwards compatibility

#### `disable()`
Disables the current custom theme
Expand Down
Loading

0 comments on commit 17a6613

Please sign in to comment.