add --maximize and --start-to-tray options
This commit is contained in:
@@ -160,6 +160,15 @@ screen.
|
||||
--fullscreen
|
||||
```
|
||||
|
||||
#### [maximize]
|
||||
|
||||
Determine whether the application launches with a maximized window. Default is `false`. Use the following command to enable
|
||||
maximize.
|
||||
|
||||
```shell
|
||||
--maximize
|
||||
```
|
||||
|
||||
#### [activation-shortcut]
|
||||
|
||||
Set the activation shortcut for the application. Default is empty, so it does not take effect. You can customize the activation shortcut with the following commands, e.g. `CmdOrControl+Shift+P`. Usage can refer to [available-modifiers](https://www.electronjs.org/docs/latest/api/accelerator#available-modifiers).
|
||||
@@ -293,6 +302,19 @@ Hide window instead of closing the application when clicking close button. Platf
|
||||
--hide-on-close false
|
||||
```
|
||||
|
||||
#### [start-to-tray]
|
||||
|
||||
Start the application minimized to system tray instead of showing the window. Must be used with `--show-system-tray`. Default is `false`.
|
||||
|
||||
```shell
|
||||
--start-to-tray
|
||||
|
||||
# Example: Start hidden to tray (must use with --show-system-tray)
|
||||
pake https://github.com --name GitHub --show-system-tray --start-to-tray
|
||||
```
|
||||
|
||||
**Note**: Double-click the tray icon to show/hide the window. If used without `--show-system-tray`, this option is ignored.
|
||||
|
||||
#### [title]
|
||||
|
||||
Set the window title bar text. macOS shows no title if not specified; Windows/Linux fallback to app name.
|
||||
|
||||
@@ -159,6 +159,14 @@ pake https://github.com --name GitHub
|
||||
--fullscreen
|
||||
```
|
||||
|
||||
#### [maximize]
|
||||
|
||||
设置应用程序是否在启动时最大化窗口,默认为 `false`。使用以下命令可以设置应用程序启动时窗口最大化。
|
||||
|
||||
```shell
|
||||
--maximize
|
||||
```
|
||||
|
||||
#### [activation-shortcut]
|
||||
|
||||
设置应用程序的激活快捷键。默认为空,不生效,可以使用以下命令自定义激活快捷键,例如 `CmdOrControl+Shift+P`,使用可参考 [available-modifiers](https://www.electronjs.org/docs/latest/api/accelerator#available-modifiers)。
|
||||
@@ -292,6 +300,19 @@ pake https://github.com --name GitHub
|
||||
--hide-on-close false
|
||||
```
|
||||
|
||||
#### [start-to-tray]
|
||||
|
||||
启动时将应用程序最小化到系统托盘而不是显示窗口。必须与 `--show-system-tray` 一起使用。默认为 `false`。
|
||||
|
||||
```shell
|
||||
--start-to-tray
|
||||
|
||||
# 示例:启动时隐藏到托盘(必须与 --show-system-tray 一起使用)
|
||||
pake https://github.com --name GitHub --show-system-tray --start-to-tray
|
||||
```
|
||||
|
||||
**注意**:双击托盘图标可以显示/隐藏窗口。如果不与 `--show-system-tray` 一起使用,此选项将被忽略。
|
||||
|
||||
#### [title]
|
||||
|
||||
设置窗口标题栏文本,macOS 未指定时不显示标题,Windows/Linux 回退使用应用名称。
|
||||
|
||||
Reference in New Issue
Block a user