Skip to content

Commit

Permalink
feat: ✨ 用户界面进行优化,制作了合适的 Logo
Browse files Browse the repository at this point in the history
  • Loading branch information
viarotel committed Sep 19, 2023
1 parent 1533405 commit 1b96ffc
Show file tree
Hide file tree
Showing 16 changed files with 36 additions and 47 deletions.
33 changes: 22 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
📱 Use Scrcpy with a graphical interface to display and control your Android device, driven by Electron

<div style="display:flex;">
<img src="./resources//screenshot/devices-full.jpg" alt="payment-weixin" style="width: 100%;">
<img src="./resources//screenshot/devices-full.jpg" alt="viarotel-escrcpy" style="width: 100%;">
</div>

## 特点
Expand Down Expand Up @@ -79,12 +79,13 @@

> 优先级从高到低
1. 用户界面进行优化 添加合适的图标等
2. 添加更多的高级功能 如: 屏幕录像
3. 添加 macOS 及 linux 操作系统的支持
4. 内置的软件更新功能
5. 支持语言国际化功能
6. 添加对游戏的增强功能 如游戏键位映射
1. 用户界面进行优化,制作合适的 Logo ✅
2. 添加更多的高级功能 如: 屏幕录像 🚧
3. 添加 macOS 及 linux 操作系统的支持 🚧
4. 内置的软件更新功能 🚧
5. 支持语言国际化功能 🚧
6. 添加侧边控制栏 🚧
7. 添加对游戏的增强功能 如游戏键位映射 🚧

## 常见问题

Expand All @@ -95,9 +96,19 @@

### 无法输入中文

该问题是已知的,在某些设备上 Scrcpy 似乎并未对中文输入进行测试和支持。
该问题是已知的, Scrcpy 似乎并未直接对中文输入进行测试和支持 需要在手机端安装第三方输入法 以下输入法经测试可以很好支持

###
- 搜狗输入法
- QQ输入法
- 谷歌拼音输入法
- Gboard

### 没有控制栏,无法通过点击返回上一步及桌面问题

> 后期会增加支持 目前可以使用以下方法
1. 在高级设置中开启 设备控制 => 虚拟控制栏 (如果该配置不起作用则需要在设备上手动开启)
2. 通过快捷键,请参阅 [scrcpy/doc/shortcuts](https://github.com/Genymobile/scrcpy/blob/master/doc/shortcuts.md)

## 获得帮助

Expand All @@ -121,6 +132,6 @@
> 如果该项目帮到你的话,可以请我吃包辣条,可以使我更有动力完善该项目
<div style="display:flex;">
<img src="https://p9-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/79dcbc40246743e2b6870419e88e0392~tplv-k3u1fbpfcp-watermark.image?" alt="payment-weixin" style="width: 36%;">
<img src="https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/1e5e69b83dd746deade95afd4a6864ec~tplv-k3u1fbpfcp-watermark.image?" alt="payment-alipay" style="width: 36%;">
<img src="https://p9-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/79dcbc40246743e2b6870419e88e0392~tplv-k3u1fbpfcp-watermark.image?" alt="viarotel-wepay" style="width: 36%;">
<img src="https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/1e5e69b83dd746deade95afd4a6864ec~tplv-k3u1fbpfcp-watermark.image?" alt="viarotel-alipay" style="width: 36%;">
</div>
Binary file modified build/icon.icns
Binary file not shown.
Binary file modified build/icon.ico
Binary file not shown.
Binary file modified build/icon.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 removed resources/icon.png
Binary file not shown.
1 change: 1 addition & 0 deletions resources/icons/icon.icns

Large diffs are not rendered by default.

Binary file added resources/icons/icon.ico
Binary file not shown.
Binary file added resources/icons/icon.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 removed resources/screenshot/advanced-full.jpg
Binary file not shown.
Binary file removed resources/screenshot/advanced.jpg
Binary file not shown.
Binary file modified resources/screenshot/devices-full.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed resources/screenshot/devices.jpg
Binary file not shown.
14 changes: 12 additions & 2 deletions src/main/index.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
import { join } from 'node:path'
import { BrowserWindow, app, shell } from 'electron'
import { electronApp, is, optimizer } from '@electron-toolkit/utils'
import icon from '../../resources/icon.png?asset'
import iconPath from '../../resources/icons/icon.png?asset'
import winIconPath from '../../resources/icons/icon.ico?asset'
import macIconPath from '../../resources/icons/icon.icns?asset'

import './ipc/index.js'

function createWindow() {
let icon = iconPath

if (process.platform === 'win32') {
icon = winIconPath
}
else if (process.platform === 'darwin') {
icon = macIconPath
}
// Create the browser window.
const mainWindow = new BrowserWindow({
icon,
minWidth: 900,
minHeight: 700,
show: false,
autoHideMenuBar: true,
...(process.platform === 'linux' ? { icon } : {}),
webPreferences: {
preload: join(__dirname, '../preload/index.js'),
sandbox: false,
Expand Down
1 change: 1 addition & 0 deletions src/renderer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
http-equiv="Content-Security-Policy"
content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'"
/>
<link rel="icon" href="/src/assets/logo.jpg" />
</head>

<body>
Expand Down
34 changes: 0 additions & 34 deletions src/renderer/src/assets/icons.svg

This file was deleted.

Binary file added src/renderer/src/assets/logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1b96ffc

Please sign in to comment.