Linux版的软件界面默认使用圆角与阴影,顺便修复了桌面歌词窗口变白的问题
parent
ddf2ac7ece
commit
dae6826cc1
|
@ -1,3 +1,7 @@
|
||||||
|
### 优化
|
||||||
|
|
||||||
|
- Linux版的软件界面默认使用圆角与阴影,顺便修复了桌面歌词窗口变白的问题,已在Ubuntu 18.10测试正常,若显示异常可尝试添加`-nt`参数启动
|
||||||
|
|
||||||
### 修复
|
### 修复
|
||||||
|
|
||||||
- 修复聚合搜索的分页问题
|
- 修复聚合搜索的分页问题
|
||||||
|
|
|
@ -95,7 +95,7 @@ function createWindow() {
|
||||||
useContentSize: true,
|
useContentSize: true,
|
||||||
width: windowSizeInfo.width,
|
width: windowSizeInfo.width,
|
||||||
frame: false,
|
frame: false,
|
||||||
transparent: !isLinux && !global.envParams.nt,
|
transparent: !global.envParams.nt,
|
||||||
enableRemoteModule: false,
|
enableRemoteModule: false,
|
||||||
// icon: path.join(global.__static, isWin ? 'icons/256x256.ico' : 'icons/512x512.png'),
|
// icon: path.join(global.__static, isWin ? 'icons/256x256.ico' : 'icons/512x512.png'),
|
||||||
resizable: false,
|
resizable: false,
|
||||||
|
@ -133,7 +133,8 @@ function init() {
|
||||||
createWindow()
|
createWindow()
|
||||||
}
|
}
|
||||||
|
|
||||||
app.on('ready', init)
|
// https://github.com/electron/electron/issues/16809
|
||||||
|
app.on('ready', isLinux ? () => setTimeout(init, 300) : init)
|
||||||
|
|
||||||
app.on('activate', () => {
|
app.on('activate', () => {
|
||||||
if (global.modules.mainWindow) {
|
if (global.modules.mainWindow) {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
#container(v-if="isProd && !isNt" :class="theme" @mouseenter="enableIgnoreMouseEvents" @mouseleave="dieableIgnoreMouseEvents")
|
#container(v-if="isProd && !isNt && !isLinux" :class="theme" @mouseenter="enableIgnoreMouseEvents" @mouseleave="dieableIgnoreMouseEvents")
|
||||||
core-aside#left
|
core-aside#left
|
||||||
#right
|
#right
|
||||||
core-toolbar#toolbar
|
core-toolbar#toolbar
|
||||||
|
@ -42,6 +42,7 @@ export default {
|
||||||
return {
|
return {
|
||||||
isProd: process.env.NODE_ENV === 'production',
|
isProd: process.env.NODE_ENV === 'production',
|
||||||
isNt: false,
|
isNt: false,
|
||||||
|
isLinux,
|
||||||
globalObj: {
|
globalObj: {
|
||||||
apiSource: 'test',
|
apiSource: 'test',
|
||||||
proxy: {},
|
proxy: {},
|
||||||
|
@ -338,12 +339,12 @@ export default {
|
||||||
},
|
},
|
||||||
handleEnvParamsInit(envParams) {
|
handleEnvParamsInit(envParams) {
|
||||||
this.envParams = envParams
|
this.envParams = envParams
|
||||||
this.isNt = isLinux || this.envParams.nt
|
this.isNt = this.envParams.nt
|
||||||
if (this.isNt) {
|
if (this.isNt) {
|
||||||
document.body.classList.remove('transparent')
|
document.body.classList.remove('transparent')
|
||||||
document.body.classList.add('noTransparent')
|
document.body.classList.add('noTransparent')
|
||||||
}
|
}
|
||||||
if (this.isProd && !this.isNt) {
|
if (this.isProd && !this.isNt && !this.isLinux) {
|
||||||
document.body.addEventListener('mouseenter', this.dieableIgnoreMouseEvents)
|
document.body.addEventListener('mouseenter', this.dieableIgnoreMouseEvents)
|
||||||
document.body.addEventListener('mouseleave', this.enableIgnoreMouseEvents)
|
document.body.addEventListener('mouseleave', this.enableIgnoreMouseEvents)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue