mirror of
https://github.com/Kenshin/simpread.git
synced 2026-01-25 14:28:34 +00:00
Change theme1 to github.
This commit is contained in:
parent
d2d5d73533
commit
e396ea837e
@ -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 )
|
||||
|
||||
|
||||
@ -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" );
|
||||
|
||||
@ -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 ]
|
||||
|
||||
@ -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',
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user