mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-05-06 07:33:25 +08:00
fix: 背景虚化
This commit is contained in:
parent
25605cbee1
commit
c05f7cd1fd
@ -61,7 +61,6 @@ function show(index: number) {
|
|||||||
top: 0;
|
top: 0;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
background-color: #000b;
|
background-color: #000b;
|
||||||
backdrop-filter: blur(5px);
|
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,8 +43,13 @@ hook.once('mounted', () => {
|
|||||||
|
|
||||||
mainUi.on('start', () => {
|
mainUi.on('start', () => {
|
||||||
ui.style.display = 'flex';
|
ui.style.display = 'flex';
|
||||||
if (blur) ui.style.backdropFilter = 'blur(5px)';
|
if (blur?.value) {
|
||||||
else ui.style.backdropFilter = 'none';
|
ui.style.backdropFilter = 'blur(5px)';
|
||||||
|
ui.style.backgroundColor = 'rgba(0,0,0,0.7333)';
|
||||||
|
} else {
|
||||||
|
ui.style.backdropFilter = 'none';
|
||||||
|
ui.style.backgroundColor = 'rgba(0,0,0,0.85)';
|
||||||
|
}
|
||||||
core.lockControl();
|
core.lockControl();
|
||||||
});
|
});
|
||||||
mainUi.on('end', noClosePanel => {
|
mainUi.on('end', noClosePanel => {
|
||||||
|
@ -489,6 +489,7 @@ loading.once('coreInit', () => {
|
|||||||
'screen.fontSizeStatus': storage.getValue('screen.fontSizeStatus', 100),
|
'screen.fontSizeStatus': storage.getValue('screen.fontSizeStatus', 100),
|
||||||
'screen.smoothView': !!storage.getValue('screen.smoothView', true),
|
'screen.smoothView': !!storage.getValue('screen.smoothView', true),
|
||||||
'screen.criticalGem': !!storage.getValue('screen.criticalGem', false),
|
'screen.criticalGem': !!storage.getValue('screen.criticalGem', false),
|
||||||
|
'screen.blur': !!storage.getValue('screen.blur', true),
|
||||||
'action.fixed': !!storage.getValue('action.fixed', true),
|
'action.fixed': !!storage.getValue('action.fixed', true),
|
||||||
'audio.bgmEnabled': !!storage.getValue('audio.bgmEnabled', true),
|
'audio.bgmEnabled': !!storage.getValue('audio.bgmEnabled', true),
|
||||||
'audio.bgmVolume': storage.getValue('audio.bgmVolume', 80),
|
'audio.bgmVolume': storage.getValue('audio.bgmVolume', 80),
|
||||||
@ -527,7 +528,7 @@ mainSetting
|
|||||||
.setDescription('audio.soundVolume', `音效的音量`)
|
.setDescription('audio.soundVolume', `音效的音量`)
|
||||||
.setDescription('ui.mapScale', `楼传小地图的缩放,百分比格式`)
|
.setDescription('ui.mapScale', `楼传小地图的缩放,百分比格式`)
|
||||||
.setDescription('screen.fontSizeStatus', `修改状态栏的字体大小`)
|
.setDescription('screen.fontSizeStatus', `修改状态栏的字体大小`)
|
||||||
.setDescription('screen.blur', '打开任意ui界面时是否有背景虚化效果,移动端打开后可能会有掉帧或者发热现象');
|
.setDescription('screen.blur', '打开任意ui界面时是否有背景虚化效果,移动端打开后可能会有掉帧或者发热现象。关闭ui后生效');
|
||||||
|
|
||||||
function setFontSize() {
|
function setFontSize() {
|
||||||
const absoluteSize = storage.getValue('@@absoluteFontSize', 16 * devicePixelRatio);
|
const absoluteSize = storage.getValue('@@absoluteFontSize', 16 * devicePixelRatio);
|
||||||
|
Loading…
Reference in New Issue
Block a user