1
0
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:
rhysd 2017-04-20 01:28:01 +09:00
commit 5aebef7619
3 changed files with 9 additions and 1 deletions

View File

@ -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.
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`
Font zoom factor in application. It should be positive number. For example, `0.7` means `70%` font zooming.

View File

@ -13,6 +13,7 @@ export interface Config {
hot_key: string;
icon_color: string;
always_on_top: boolean;
hide_menu: boolean;
normal_window: boolean;
zoom_factor: number;
accounts: Account[];
@ -27,6 +28,7 @@ function makeDefaultConfig(): Config {
hot_key: 'CmdOrCtrl+Shift+S',
icon_color: IsDarkMode ? 'white' : 'black',
always_on_top: false,
hide_menu: false,
normal_window: menubarBroken,
zoom_factor: 0.9,
accounts: [{

View File

@ -108,7 +108,7 @@ function startNormalWindow(account: Account, config: Config): Promise<Window> {
icon: APP_ICON,
show: false,
useContentSize: true,
autoHideMenuBar: false,
autoHideMenuBar: config.hide_menu,
webPreferences: {
nodeIntegration: false,
sandbox: true,