Skip to content

Commit

Permalink
update: ico图标和标题栏
Browse files Browse the repository at this point in the history
  • Loading branch information
Rxdey committed Jun 15, 2020
1 parent b3eb7bb commit b5f092f
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
* 原来的Tft-Overlay不更新了。难受,样子照着画的。
~~拖拽有点小问题不影响使用~~ (更换为直接操作窗体显示隐藏后好像没问题了,待复现)
~~装备描述因为不是用的官网数据部分小更新未做变更(后面再弄吧)~~
~~不定期维护,可以自己在`/src/data/`文件夹下面找到配置列表进行修改。~~
~~不定期维护~~

## 更新日志

#### 2020-06-15
* electron版本升级到了`9.0.0`
* 装备及棋子数据全部更换为从官网数据库接口获取数据(居然不是固定地址,数据都还有之前赛季的,还以为一劳永逸😥😥)
* 处理了一下拖拽问题
* 优化ui展示
* 优化ui展示 更换图标

#### 2020-04-18
* 增加新棋子泽拉斯
Expand Down
Binary file modified public/favicon.ico
Binary file not shown.
Binary file added public/header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/icon.ico
Binary file not shown.
6 changes: 4 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 3 additions & 1 deletion src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, // 改变大小
Expand Down
2 changes: 1 addition & 1 deletion src/electron/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const routes = [
},
{
path: '/child',
name: 'child',
name: 'Child',
component: Child
}
];
Expand Down
1 change: 1 addition & 0 deletions src/views/child.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

<script>
import { remote, ipcRenderer } from 'electron';
// eslint-disable-next-line import/extensions
import { getEquipmentRelation } from '@/common/utils';
import EquipCard from '@/components/equip-card.vue';
import HeroCard from '@/components/hero-card.vue';
Expand Down

0 comments on commit b5f092f

Please sign in to comment.