Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
Adding GitHub Universe built-in color set.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjswensen committed Nov 8, 2017
1 parent 2be4dfc commit c6c378c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
"themer-cmd": "^1.0.1",
"themer-colors-default": "^1.0.5",
"themer-colors-finger-paint": "^1.0.0",
"themer-colors-github-universe": "^1.0.0",
"themer-colors-lucid": "^1.0.0",
"themer-colors-night-sky": "^1.0.4",
"themer-colors-one": "^1.0.4",
Expand Down
10 changes: 10 additions & 0 deletions renderer/components/PrefillDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { colors as colorsPolarIce } from 'themer-colors-polar-ice';
import { colors as colorsLucid } from 'themer-colors-lucid';
import { colors as colorsFingerPaint } from 'themer-colors-finger-paint';
import { colors as colorsSolarized } from 'themer-colors-solarized';
import { colors as colorsGitHubUniverse } from 'themer-colors-github-universe';
import css from './FormDialogs.css';

const PrefillDialog = ({ prefillColorSetSelection, onClose, onPrefillColorSetSelect, onPrefillWithColorSet }) => (
Expand Down Expand Up @@ -68,6 +69,12 @@ const PrefillDialog = ({ prefillColorSetSelection, onClose, onPrefillColorSetSel
selected={ prefillColorSetSelection === 'themer-colors-solarized' }
onSelect={ onPrefillColorSetSelect }
/>
<Radio
value="themer-colors-github-universe"
label="GitHub Universe"
selected={ prefillColorSetSelection === 'themer-colors-github-universe' }
onSelect={ onPrefillColorSetSelect }
/>
</fieldset>
</form>
<div className={ css.footer }>
Expand Down Expand Up @@ -114,6 +121,9 @@ const mapDispatchToProps = dispatch => ({
case 'themer-colors-solarized':
dispatch(prefillWithColorSet(colorsSolarized));
break;
case 'themer-colors-github-universe':
dispatch(prefillWithColorSet(colorsGitHubUniverse));
break;
default:
dispatch(prefillWithColorSet(colorsDefault));
break;
Expand Down

0 comments on commit c6c378c

Please sign in to comment.