This commit is contained in:
libccy 2017-03-26 15:44:57 +08:00
parent da403503d2
commit 3bcd19fb03
4 changed files with 20 additions and 15 deletions

View File

@ -5796,10 +5796,13 @@
game.saveConfig('low_performance',true); game.saveConfig('low_performance',true);
game.saveConfig('confirm_exit',true); game.saveConfig('confirm_exit',true);
game.saveConfig('touchscreen',true); game.saveConfig('touchscreen',true);
game.saveConfig('fold_mode',true); game.saveConfig('fold_mode',false);
if(ua.indexOf('ipad')==-1){ if(ua.indexOf('ipad')==-1){
game.saveConfig('phonelayout',true); game.saveConfig('phonelayout',true);
} }
else if(lib.device=='ios'){
game.saveConfig('show_statusbar_ios','overlay');
}
} }
else if(confirm('是否切换到触屏模式?(触屏模式可提高触屏设备的响应速度,但无法使用鼠标)')){ else if(confirm('是否切换到触屏模式?(触屏模式可提高触屏设备的响应速度,但无法使用鼠标)')){
game.saveConfig('touchscreen',true); game.saveConfig('touchscreen',true);
@ -6243,11 +6246,9 @@
if(lib.config.show_statusbar_ios!='off'){ if(lib.config.show_statusbar_ios!='off'){
if(lib.config.show_statusbar_ios=='default'){ if(lib.config.show_statusbar_ios=='default'){
window.StatusBar.overlaysWebView(false); window.StatusBar.overlaysWebView(false);
ui.window.classList.remove('statusbar');
} }
else{ else{
window.StatusBar.overlaysWebView(true); window.StatusBar.overlaysWebView(true);
ui.window.classList.add('statusbar');
} }
window.StatusBar.backgroundColorByName('black'); window.StatusBar.backgroundColorByName('black');
window.StatusBar.show(); window.StatusBar.show();
@ -6312,6 +6313,11 @@
} }
} }
game.metaZoom=zoom; game.metaZoom=zoom;
var barHeight=Math.round(20/zoom);
lib.init.sheet(
'#window.statusbar{top:'+barHeight+'px;height:calc(100% - '+barHeight+'px)}',
'#window.statusbar::before{top:-'+barHeight+'px;height:-'+barHeight+'px)}'
);
} }
} }
game.documentZoom=1; game.documentZoom=1;
@ -33259,6 +33265,10 @@
if(lib.config.blur_ui){ if(lib.config.blur_ui){
ui.window.classList.add('blur_ui'); ui.window.classList.add('blur_ui');
} }
if(lib.config.show_statusbar_ios=='overlay'){
ui.window.classList.add('statusbar');
}
// var themeentry='background_color_'+lib.config.theme; // var themeentry='background_color_'+lib.config.theme;
// if(lib.config[themeentry]){ // if(lib.config[themeentry]){
// document.body.dataset[themeentry]=lib.config[themeentry]; // document.body.dataset[themeentry]=lib.config[themeentry];

View File

@ -21,7 +21,7 @@ window.noname_update={
// 'mode/chess.js', // 'mode/chess.js',
// 'mode/tafang.js', // 'mode/tafang.js',
'mode/stone.js', 'mode/stone.js',
// 'theme/woodden/style.css', 'theme/music/style.css',
'layout/default/layout.css', 'layout/default/layout.css',
'layout/default/phone.css', 'layout/default/phone.css',
'layout/default/menu.css', 'layout/default/menu.css',

View File

@ -43,17 +43,16 @@ table {
overflow: hidden overflow: hidden
} }
#window.statusbar { #window.statusbar {
top: 30px; top: 20px;
height: calc(100% - 30px); height: calc(100% - 20px);
overflow: visible;
} }
#window.statusbar::before{ #window.statusbar::before{
content:''; content:'';
position:absolute; position:absolute;
left: 0; left: 0;
top: -30px; top: -20px;
width: 100%; width: 100%;
height: 30px; height: 20px;
background: rgba(0,0,0,0.4); background: rgba(0,0,0,0.4);
} }
#window>.tutorial_tap { #window>.tutorial_tap {

View File

@ -15,12 +15,8 @@ html{
background: linear-gradient(#4b4b4b, #464646) !important; background: linear-gradient(#4b4b4b, #464646) !important;
} }
.videonode.menubutton.extension.current>div:first-child{ .videonode.menubutton.extension.current{
text-shadow: black 0 0 1px,rgba(255, 203, 0,1) 0 0 2px,rgba(255, 203, 0,1) 0 0 5px,rgba(255, 203, 0,1) 0 0 5px, box-shadow: rgba(0, 0, 0, 0.4) 0 0 0 1px, rgba(0, 133, 255, 0.4) 0 2px 5px, rgba(0, 133, 255, 0.5) 0 0 12px, rgba(0, 133, 255, 0.8) 0 0 15px;
rgba(255, 203, 0,1) 0 0 5px,black 0 0 1px
}
.videonode.menubutton.extension.current>div:first-child>div{
text-shadow: black 0 0 2px;
} }
body[data-background_color_music='blue'] #system>div>div, body[data-background_color_music='blue'] #system>div>div,
body[data-background_color_music='blue'] #mebg, body[data-background_color_music='blue'] #mebg,