diff --git a/src/assets/css/theme1.css b/src/assets/css/theme_github.css similarity index 100% rename from src/assets/css/theme1.css rename to src/assets/css/theme_github.css diff --git a/src/option/read.jsx b/src/option/read.jsx index 9b3071d1..eb02728a 100644 --- a/src/option/read.jsx +++ b/src/option/read.jsx @@ -21,10 +21,10 @@ export default class ReadOpt extends React.Component { if ( event.target.tagName.toLowerCase() == "sr-opt-theme" ) { // add test code - if ( this.props.option.theme == "theme1" ) { + if ( this.props.option.theme == "github" ) { this.props.option.theme = "theme2"; } else { - this.props.option.theme = "theme1"; + this.props.option.theme = "github"; } console.log( "this.props.option.theme = ", this.props.option.theme ) diff --git a/src/read/read.jsx b/src/read/read.jsx index 60b1419e..742a0daa 100644 --- a/src/read/read.jsx +++ b/src/read/read.jsx @@ -52,8 +52,8 @@ class Read extends React.Component { constructor( props ) { super( props ); switch ( this.props.read.theme ) { - case "theme1": - require( "theme1" ); + case "github": + require( "github" ); break; case "theme2": require( "theme2" ); diff --git a/src/service/storage.js b/src/service/storage.js index e3266c03..264969a5 100644 --- a/src/service/storage.js +++ b/src/service/storage.js @@ -35,7 +35,7 @@ const name = "simpread", read = { version : "2017-01-07", shortcuts : "A A", - theme : "theme1", + theme : "github", fontfamily: "", fontsize : 14, sites : [] // e.g. [ "", site ] diff --git a/webpack.config.js b/webpack.config.js index 8aa35769..10664375 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -163,7 +163,7 @@ const webpack = require( 'webpack' ), focusopt : __dirname + '/src/option/focus.jsx', readopt : __dirname + '/src/option/read.jsx', - theme1 : '../assets/css/theme1.css', + github : '../assets/css/theme_github.css', theme2 : '../assets/css/theme2.css', }