From 055392b41cc0a839a52c51573fd329a22ede0fe1 Mon Sep 17 00:00:00 2001 From: stapxs <1007028430.stapx@gmail.com> Date: Tue, 30 Apr 2024 16:37:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A8=E6=96=B0=20UI=20=E4=BD=A0=E5=80=BC?= =?UTF-8?q?=E5=BE=97=E6=8B=A5=E6=9C=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/icons/icon.png | Bin 13118 -> 0 bytes package.json | 2 +- src/App.vue | 6 +-- src/assets/css/append/append_darwin.css | 8 +++ src/assets/css/append/append_vibrancy.css | 5 +- src/assets/css/append/append_win32.css | 59 ++++++++++++++-------- src/background.ts | 23 ++++----- src/function/utils/appUtil.ts | 5 +- vue.config.js | 3 +- 9 files changed, 65 insertions(+), 46 deletions(-) delete mode 100644 build/icons/icon.png diff --git a/build/icons/icon.png b/build/icons/icon.png deleted file mode 100644 index a5f1fb8029dac304af1fa4e26a6a878f9e6a4d61..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 13118 zcmbVz2{_c>_y3(4W9%ebA`@dP%aCP=W@OJU6;fvGvM+^-nUpQECzX(-jj|-7GS-qp z6h4(mBq>UEGvBUhO!5=ZSXds#@>GZ7RSTA_a3)( z@;n~kspln2+=VrW)`tv&ydx>t=%B#h2>ob7+24Hi;WN8gT^9SBBr?EI)`&eI*4f4$ zYa9~pjnz@Zt9s(`npj;uH4PmtEgifHRuiv@SI29sYiO!!=;-6M^fh#`fBne9(Zaoa z^c_vi{u&Fu8Or)aMuzIEt4BpesYUHj3kmmC*U;0`Q^#wnYig=O3e||1;7CfeYH)ks%R&A^#2Qe?I@)0MN8HHvf$AA7u#& z`e%rUNYi6bjlT@?AE_gpVnV&u9law$j)r@Bn;wH=%CWTx)i)0JrbLE>JB5S<{ykCl ze~XOO)KJsJDjo0-_6muLQ2v(=-X@etZ$nu)YnrNfEmaLYCk;J)Z4G@5{B}G+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i%nzDxN+<&GYe(sS6DdpN(s=o7evvM6XG1OCf3X3P+SXDCEE}$ z$^)<-&2!CX8Dq2-vgXmp7W4d;s&AJ`_hFAS^O1ZFtQj%PFtxh$%`ZFM&J$zlTP*m{ zfSgi@G&=5}R4}#THaqg}_Eut66mi{BUEznkumPE$2hbgwKbmciEmF%^e$XZPq`gX> m70kdbtj~Vzm7?3QWZnj}x&-Le$-vVPur#$bxx1Sj|9=1~b~Bm) diff --git a/package.json b/package.json index d63790c5..97856fee 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stapxs-qq-lite", - "version": "2.7.2", + "version": "2.7.3", "private": false, "author": "Stapx Steve [林槐]", "description": "一个兼容 OneBot 的非官方网页版 QQ 客户端,使用 Vue 重制的全新版本。", diff --git a/src/App.vue b/src/App.vue index 2d57e244..002a7572 100644 --- a/src/App.vue +++ b/src/App.vue @@ -27,7 +27,7 @@ -
+
    @@ -251,7 +251,6 @@ export default defineComponent({ data () { return { dev: process.env.NODE_ENV == 'development', - platform: undefined, Connector: Connector, defineAsyncComponent: defineAsyncComponent, save: Option.runASWEvent, @@ -448,8 +447,7 @@ export default defineComponent({ const reader = electron ? electron.ipcRenderer : null runtimeData.reader = reader if (reader) { - this.platform = await reader.invoke('sys:getPlatform') - runtimeData.tags.platform = this.platform + runtimeData.tags.platform = await reader.invoke('sys:getPlatform') } app.config.globalProperties.$viewer = this.viewerBody // 初始化波浪动画 diff --git a/src/assets/css/append/append_darwin.css b/src/assets/css/append/append_darwin.css index 6deae8e4..3cb07630 100644 --- a/src/assets/css/append/append_darwin.css +++ b/src/assets/css/append/append_darwin.css @@ -1,3 +1,7 @@ +body { + font: 14px -apple-system !important; +} + .main-body > ul { height: calc(100% - 25px); padding-top: 25px; @@ -5,4 +9,8 @@ .opt-main > div:last-child { padding: 33px 10px 0 10px; +} + +.friend-list { + padding-top: 20px; } \ No newline at end of file diff --git a/src/assets/css/append/append_vibrancy.css b/src/assets/css/append/append_vibrancy.css index 04cd422c..c7bf3412 100644 --- a/src/assets/css/append/append_vibrancy.css +++ b/src/assets/css/append/append_vibrancy.css @@ -22,7 +22,6 @@ } .friend-list { background: rgba(var(--color-card-rgb), 0.6); - padding-top: 20px; } .friend-list > div:first-child { margin: 15px 15px 15px 0; @@ -59,10 +58,10 @@ .opt-main > div:last-child { margin-left: -65px !important; background: var(--color-bg); - margin: -3px -5px 0 5px; + margin: -5px -5px 0 5px; box-shadow: -5px 0px 4px -5px var(--color-shader); transition: margin .3s; - height: calc(100% + 5px); + height: calc(100% + 7px); padding: 3px 10px 0 10px; } diff --git a/src/assets/css/append/append_win32.css b/src/assets/css/append/append_win32.css index 5bc4f0c3..488130a2 100644 --- a/src/assets/css/append/append_win32.css +++ b/src/assets/css/append/append_win32.css @@ -1,22 +1,17 @@ -#app { - margin: 10px; - border-radius: 7px; - overflow: hidden; - box-shadow: 0 0 10px #0005; - height: calc(100% - 20px); +body { + font: 14px 'SF Pro Text', 'Source Han Sans', sans-serif !important; } #base-app.withBar { - height: calc(100% - 36px); - padding-top: 36px; + height: calc(100% - 35px); + padding-top: 35px; } + .top-bar { - border-bottom: 1px solid var(--color-card-2); border-radius: 7px 7px 0 0; + background: transparent; box-shadow: unset; - background: var(--color-bg); height: 35px; - width: calc(100% - 20px); } .top-bar>img, .top-bar>svg { height: 16px; @@ -29,21 +24,41 @@ .top-bar>div.controller>div { padding: 7px; } -.top-bar>div.controller>div>svg{ +.top-bar>div.controller>div>svg { height: 14px; } -.chat-pan { - height: calc(100% - 50px) !important; - border-radius: 0 0 7px 0; - margin-right: 10px; +.main-body > div { + margin-top: -35px; + height: calc(100% + 35px); +} +.main-body > ul { + margin-top: -35px; + height: calc(100% + 35px); + padding-left: 5px; +} + +.top-bar { + margin-bottom: 0 !important; } -.pop-box>div:last-child { +.top-bar>span, +.top-bar>img, .top-bar>svg { + display: none; +} + +.chat-pan.withBar { + left: 275px !important; + top: 0; height: calc(100% - 20px); - margin-top: 10px; - width: calc(100% - 20px); - margin-left: 10px; + padding-top: 20px; +} +.card-info-pan-bg { + margin-top: -20px; +} +.chat-info { + margin: calc(50vh - 20px) 0 0 50%; } -.chat-pan>div.bg { - border-radius: 0 0 7px 0; +.opt-main>div:last-child { + padding-top: 25px !important; + height: calc(100% - 17px) !important; } diff --git a/src/background.ts b/src/background.ts index 1d52da1b..9b190cac 100644 --- a/src/background.ts +++ b/src/background.ts @@ -41,7 +41,6 @@ async function createWindow() { defaultHeight: 800 }) const store = new Store() - const noWindow = await store.get('opt_no_window') let windowConfig = { x: mainWindowState.x, y: mainWindowState.y, @@ -49,32 +48,28 @@ async function createWindow() { height: mainWindowState.height, icon: path.join(__dirname,'./public/img/icons/icon.png'), webPreferences: { - nodeIntegration: true, + nodeIntegration: process.env.ELECTRON_NODE_INTEGRATION, contextIsolation: false - }, - transparent: true + } } as Electron.BrowserWindowConstructorOptions - // macOS if(process.platform === 'darwin') { + // macOS windowConfig = { ...windowConfig, maximizable: false, fullscreen: false, - titleBarStyle: process.platform === 'darwin' ? 'hidden' : 'default', + titleBarStyle: 'hidden', trafficLightPosition: { x: 11, y: 10 }, vibrancy: 'fullscreen-ui', + transparent: true, // visualEffectState: 'active' } - } else { - windowConfig = { - ...windowConfig, - frame: noWindow === "true" ? false : true - } - } - // Windows - if(process.platform === 'win32') { + } else if(process.platform === 'win32') { + // Windows windowConfig = { ...windowConfig, + backgroundColor: '#00000000', + backgroundMaterial: 'acrylic', frame: false } store.set('opt_no_window', 'true') diff --git a/src/function/utils/appUtil.ts b/src/function/utils/appUtil.ts index b0e440e1..ccc4f315 100644 --- a/src/function/utils/appUtil.ts +++ b/src/function/utils/appUtil.ts @@ -389,6 +389,9 @@ export function createIpc() { runtimeData.reader.on('app:openLink', (event, link) => { openLink(link) }) + runtimeData.reader.on('app:logger', (event, config) => { + new Logger().add(config.type, config.text) + }) } } @@ -407,7 +410,7 @@ export function loadAppendStyle() { } catch (e) { logger.info('未找到对应平台的附加样式') } - if (platform == 'darwin') { + if (platform != 'linux') { import('@/assets/css/append/append_vibrancy.css').then(() => { logger.info('透明 UI 附加样式加载完成') }) diff --git a/vue.config.js b/vue.config.js index 88c3fe3c..c3f21f70 100644 --- a/vue.config.js +++ b/vue.config.js @@ -19,7 +19,7 @@ module.exports = { { test: /\.yaml$/, use: 'js-yaml-loader', - } + } ] } }, @@ -71,6 +71,7 @@ module.exports = { * @type {import('vue-cli-plugin-electron-builder').PluginOptions} */ electronBuilder: { + nodeIntegration: true, builderOptions: { appId: 'com.stapxs.qqweb', productName: 'Stapxs QQ Lite',