Skip to content

Commit

Permalink
feat: Add new theme
Browse files Browse the repository at this point in the history
  • Loading branch information
fredserva committed Dec 8, 2020
1 parent 471b9eb commit 8c2fd6e
Show file tree
Hide file tree
Showing 4 changed files with 1,088 additions and 1 deletion.
Binary file added public/images/themes/woodsmoke.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/components/settings-modal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ class SettingsModalNotExtended extends React.Component {
changeTheme = appTheme => {
document.body.classList.remove( 'athens-theme' );
document.body.classList.remove( 'teal-theme' );
document.body.classList.remove( 'woodsmoke-theme' );
document.body.classList.add( `${ appTheme }-theme` );
StorageHelpers.preference.set( 'appTheme', appTheme );

Expand Down Expand Up @@ -255,6 +256,11 @@ class SettingsModalNotExtended extends React.Component {
<img src={'./images/themes/teal.png'} alt='Teal' width={240}/>
</div>
</li>
<li onClick={() => this.changeTheme( 'woodsmoke' )} className={ 'woodsmoke' === appTheme ? 'active' : ''}>
<div className='image-container'>
<img src={'./images/themes/woodsmoke.png'} alt='Woodsmoke' width={240}/>
</div>
</li>
</ul>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/themes/theme.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
@import './teal';
@import './athens';
@import './athens';
@import './woodsmoke';
Loading

0 comments on commit 8c2fd6e

Please sign in to comment.