diff --git a/game/game.js b/game/game.js index c76752849..cb66a2fbe 100644 --- a/game/game.js +++ b/game/game.js @@ -5796,10 +5796,13 @@ game.saveConfig('low_performance',true); game.saveConfig('confirm_exit',true); game.saveConfig('touchscreen',true); - game.saveConfig('fold_mode',true); + game.saveConfig('fold_mode',false); if(ua.indexOf('ipad')==-1){ game.saveConfig('phonelayout',true); } + else if(lib.device=='ios'){ + game.saveConfig('show_statusbar_ios','overlay'); + } } else if(confirm('是否切换到触屏模式?(触屏模式可提高触屏设备的响应速度,但无法使用鼠标)')){ game.saveConfig('touchscreen',true); @@ -6243,11 +6246,9 @@ if(lib.config.show_statusbar_ios!='off'){ if(lib.config.show_statusbar_ios=='default'){ window.StatusBar.overlaysWebView(false); - ui.window.classList.remove('statusbar'); } else{ window.StatusBar.overlaysWebView(true); - ui.window.classList.add('statusbar'); } window.StatusBar.backgroundColorByName('black'); window.StatusBar.show(); @@ -6312,6 +6313,11 @@ } } 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; @@ -33259,6 +33265,10 @@ if(lib.config.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; // if(lib.config[themeentry]){ // document.body.dataset[themeentry]=lib.config[themeentry]; diff --git a/game/update.js b/game/update.js index 19b84a69c..bf99a560a 100644 --- a/game/update.js +++ b/game/update.js @@ -21,7 +21,7 @@ window.noname_update={ // 'mode/chess.js', // 'mode/tafang.js', 'mode/stone.js', - // 'theme/woodden/style.css', + 'theme/music/style.css', 'layout/default/layout.css', 'layout/default/phone.css', 'layout/default/menu.css', diff --git a/layout/default/layout.css b/layout/default/layout.css index d369b683f..0c7e0be8c 100644 --- a/layout/default/layout.css +++ b/layout/default/layout.css @@ -43,17 +43,16 @@ table { overflow: hidden } #window.statusbar { - top: 30px; - height: calc(100% - 30px); - overflow: visible; + top: 20px; + height: calc(100% - 20px); } #window.statusbar::before{ content:''; position:absolute; left: 0; - top: -30px; + top: -20px; width: 100%; - height: 30px; + height: 20px; background: rgba(0,0,0,0.4); } #window>.tutorial_tap { diff --git a/theme/music/style.css b/theme/music/style.css index 4bfdf76e6..784490c7e 100644 --- a/theme/music/style.css +++ b/theme/music/style.css @@ -15,12 +15,8 @@ html{ background: linear-gradient(#4b4b4b, #464646) !important; } -.videonode.menubutton.extension.current>div:first-child{ - 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, - 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; +.videonode.menubutton.extension.current{ + 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; } body[data-background_color_music='blue'] #system>div>div, body[data-background_color_music='blue'] #mebg,