Change theme1 to github.

This commit is contained in:
Kenshin 2017-02-04 11:04:57 +08:00
parent d2d5d73533
commit e396ea837e
5 changed files with 6 additions and 6 deletions

View File

@ -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 )

View File

@ -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" );

View File

@ -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. [ "<url>", site ]

View File

@ -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',
}