mirror of
https://github.com/rhysd/Mstdn.git
synced 2025-01-21 20:52:11 +01:00
Merge branch 'master' of github.com:rhysd/Mstdn
This commit is contained in:
commit
5aebef7619
@ -81,6 +81,12 @@ When this value is set to `true`, application will be launched as a normal windo
|
|||||||
If menu bar behavior does not work for you, please use set this value to `true` to avoid it.
|
If menu bar behavior does not work for you, please use set this value to `true` to avoid it.
|
||||||
Default value is `false` on macOS or Linux, `true` on Windows because window position is broken in some version of Windows.
|
Default value is `false` on macOS or Linux, `true` on Windows because window position is broken in some version of Windows.
|
||||||
|
|
||||||
|
### `hide_menu`
|
||||||
|
|
||||||
|
When this value is set to `true`, the application will be launched with the
|
||||||
|
menubar hidden, assuming `normal_window` is also true. When set to `false`, the
|
||||||
|
menubar will be visible on launch. Default value is `false`.
|
||||||
|
|
||||||
### `zoom_factor`
|
### `zoom_factor`
|
||||||
|
|
||||||
Font zoom factor in application. It should be positive number. For example, `0.7` means `70%` font zooming.
|
Font zoom factor in application. It should be positive number. For example, `0.7` means `70%` font zooming.
|
||||||
|
@ -13,6 +13,7 @@ export interface Config {
|
|||||||
hot_key: string;
|
hot_key: string;
|
||||||
icon_color: string;
|
icon_color: string;
|
||||||
always_on_top: boolean;
|
always_on_top: boolean;
|
||||||
|
hide_menu: boolean;
|
||||||
normal_window: boolean;
|
normal_window: boolean;
|
||||||
zoom_factor: number;
|
zoom_factor: number;
|
||||||
accounts: Account[];
|
accounts: Account[];
|
||||||
@ -27,6 +28,7 @@ function makeDefaultConfig(): Config {
|
|||||||
hot_key: 'CmdOrCtrl+Shift+S',
|
hot_key: 'CmdOrCtrl+Shift+S',
|
||||||
icon_color: IsDarkMode ? 'white' : 'black',
|
icon_color: IsDarkMode ? 'white' : 'black',
|
||||||
always_on_top: false,
|
always_on_top: false,
|
||||||
|
hide_menu: false,
|
||||||
normal_window: menubarBroken,
|
normal_window: menubarBroken,
|
||||||
zoom_factor: 0.9,
|
zoom_factor: 0.9,
|
||||||
accounts: [{
|
accounts: [{
|
||||||
|
@ -108,7 +108,7 @@ function startNormalWindow(account: Account, config: Config): Promise<Window> {
|
|||||||
icon: APP_ICON,
|
icon: APP_ICON,
|
||||||
show: false,
|
show: false,
|
||||||
useContentSize: true,
|
useContentSize: true,
|
||||||
autoHideMenuBar: false,
|
autoHideMenuBar: config.hide_menu,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
nodeIntegration: false,
|
nodeIntegration: false,
|
||||||
sandbox: true,
|
sandbox: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user