add new waifu

This commit is contained in:
xmcp
2019-07-16 20:07:15 +08:00
parent 38e6ca6b9a
commit 1e9ba4eba6
9 changed files with 11 additions and 10 deletions

View File

@@ -3,15 +3,16 @@ import React, {Component, PureComponent} from 'react';
import './Config.css';
const BUILTIN_IMGS={
'static/bg/eriri.jpg': '平成著名画师(默认)',
'static/bg/gbp.jpg': '追逐繁星(默认)',
'static/bg/eriri.jpg': '平成著名画师',
'static/bg/yurucamp.jpg': '露营天下第一',
'static/bg/minecraft.jpg': '麦恩·库拉夫特',
'static/bg/sif.jpg': '梦开始的地方',
};
const DEFAULT_CONFIG={
background_img: 'static/bg/eriri.jpg',
background_color: '#112244',
background_img: 'static/bg/gbp.jpg',
background_color: '#113366',
pressure: false,
quote: true,
horizontal_scroll: true,
@@ -50,7 +51,7 @@ export function bgimg_style(img,color) {
if(color===undefined) color=window.config.background_color;
return {
background: 'transparent center center',
backgroundImage: img===null ? 'unset' : 'url('+encodeURI(img)+')',
backgroundImage: img===null ? 'unset' : 'url("'+encodeURI(img)+'")',
backgroundColor: color,
backgroundSize: 'cover',
};

View File

@@ -3,7 +3,7 @@
border-radius: 5px;
margin: 1em 0;
padding: .5em;
box-shadow: 0 3px 8px rgba(0,0,0,.4);
box-shadow: 0 2px 5px rgba(0,0,0,.4);
}
.box-tip {
@@ -144,8 +144,8 @@
height: 10px;
margin-bottom: -10px;
border-radius: 50%;
background-color: #ffbb44;
box-shadow: 0 0 5px rgba(0,0,0,.4);
background-color: #ffcc77;
box-shadow: 1px 1px 5px rgba(0,0,0,.5);
}
.box-content {

View File

@@ -13,12 +13,12 @@ export class ColorPicker {
if(name==='洞主')
return 'hsl(0,0%,97%)';
if(!window.config.color_picker)
return 'hsl(0,0%,85%)';
return 'hsl(0,0%,87%)';
if(!this.names[name]) {
this.current_h+=golden_ratio_conjugate;
this.current_h%=1;
this.names[name]=`hsl(${this.current_h*360}, 40%, 87%)`;
this.names[name]=`hsl(${this.current_h*360}, 60%, 90%)`;
}
return this.names[name];
}

View File

@@ -1,7 +1,7 @@
body {
background-size: cover;
user-select: none;
background-color: #124;
background-color: #333;
}
html::-webkit-scrollbar {