diff --git a/README.md b/README.md index ca625b3..a06f42b 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ * 原来的Tft-Overlay不更新了。难受,样子照着画的。 ~~拖拽有点小问题不影响使用~~ (更换为直接操作窗体显示隐藏后好像没问题了,待复现) ~~装备描述因为不是用的官网数据部分小更新未做变更(后面再弄吧)~~ -~~不定期维护,可以自己在`/src/data/`文件夹下面找到配置列表进行修改。~~ +~~不定期维护~~ ## 更新日志 @@ -14,7 +14,7 @@ * electron版本升级到了`9.0.0` * 装备及棋子数据全部更换为从官网数据库接口获取数据(居然不是固定地址,数据都还有之前赛季的,还以为一劳永逸😥😥) * 处理了一下拖拽问题 -* 优化ui展示 +* 优化ui展示 更换图标 #### 2020-04-18 * 增加新棋子泽拉斯 diff --git a/public/favicon.ico b/public/favicon.ico index df36fcf..1c74e59 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/public/header.png b/public/header.png new file mode 100644 index 0000000..907b063 Binary files /dev/null and b/public/header.png differ diff --git a/public/icon.ico b/public/icon.ico index 8702729..1c74e59 100644 Binary files a/public/icon.ico and b/public/icon.ico differ diff --git a/src/App.vue b/src/App.vue index e0083cb..83f5669 100644 --- a/src/App.vue +++ b/src/App.vue @@ -37,9 +37,11 @@ body { .header { width: 80px; .line { - background: #f4f4f4; + background: url('/header.png')no-repeat center; + background-size: cover; width: 80px; - height: 15px; + height: 34px; + margin-bottom: 5px; } } .router-view { diff --git a/src/background.js b/src/background.js index 67269b0..a636fa8 100644 --- a/src/background.js +++ b/src/background.js @@ -14,7 +14,9 @@ protocol.registerSchemesAsPrivileged([{ scheme: 'app', privileges: { secure: tru function createWindow() { win = new BrowserWindow({ width: 600, - height: 80, + height: 95, + x: 0, + y: 0, frame: false, transparent: true, resizable: false, // 改变大小 diff --git a/src/electron/menu.js b/src/electron/menu.js index 9f755c0..5c41546 100644 --- a/src/electron/menu.js +++ b/src/electron/menu.js @@ -18,7 +18,7 @@ export const trayMenu = (mainWindow) => { } ]; const contextMenu = Menu.buildFromTemplate(trayMenuTemplate); - appTray.setToolTip('tft-overlay'); + appTray.setToolTip('TFT-Overlay'); appTray.setContextMenu(contextMenu); appTray.on('click', () => { mainWindow.show(); diff --git a/src/router/index.js b/src/router/index.js index f3c577a..f6bee9e 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -13,7 +13,7 @@ const routes = [ }, { path: '/child', - name: 'child', + name: 'Child', component: Child } ]; diff --git a/src/views/child.vue b/src/views/child.vue index 5981e35..31fc037 100644 --- a/src/views/child.vue +++ b/src/views/child.vue @@ -13,6 +13,7 @@