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

BIN
public/static/bg/gbp.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 275 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

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

View File

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

View File

@@ -13,12 +13,12 @@ export class ColorPicker {
if(name==='洞主') if(name==='洞主')
return 'hsl(0,0%,97%)'; return 'hsl(0,0%,97%)';
if(!window.config.color_picker) if(!window.config.color_picker)
return 'hsl(0,0%,85%)'; return 'hsl(0,0%,87%)';
if(!this.names[name]) { if(!this.names[name]) {
this.current_h+=golden_ratio_conjugate; this.current_h+=golden_ratio_conjugate;
this.current_h%=1; 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]; return this.names[name];
} }

View File

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