mirror of
https://github.com/rhysd/Mstdn.git
synced 2025-01-22 21:52:09 +01:00
tweak default window size
This commit is contained in:
parent
f411c831c5
commit
9da7b86f6a
@ -9,8 +9,6 @@ const IS_DEBUG = process.env.NODE_ENV === 'development';
|
|||||||
const IS_DARWIN = process.platform === 'darwin';
|
const IS_DARWIN = process.platform === 'darwin';
|
||||||
const APP_ICON = path.join(__dirname, '..', 'resources', 'icon', 'icon.png');
|
const APP_ICON = path.join(__dirname, '..', 'resources', 'icon', 'icon.png');
|
||||||
const PRELOAD_JS = path.join(__dirname, '..', 'renderer', 'preload.js');
|
const PRELOAD_JS = path.join(__dirname, '..', 'renderer', 'preload.js');
|
||||||
const DEFAULT_WIDTH = 340;
|
|
||||||
const DEFAULT_HEIGHT = 400;
|
|
||||||
|
|
||||||
export class App {
|
export class App {
|
||||||
private account: Account;
|
private account: Account;
|
||||||
@ -148,8 +146,8 @@ function startMenuBar(config: Config): Promise<Electron.BrowserWindow> {
|
|||||||
log.debug('Setup a menubar window');
|
log.debug('Setup a menubar window');
|
||||||
return new Promise<Electron.BrowserWindow>(resolve => {
|
return new Promise<Electron.BrowserWindow>(resolve => {
|
||||||
const state = windowState({
|
const state = windowState({
|
||||||
defaultWidth: DEFAULT_WIDTH,
|
defaultWidth: 350,
|
||||||
defaultHeight: DEFAULT_HEIGHT,
|
defaultHeight: 420,
|
||||||
});
|
});
|
||||||
const icon = trayIcon(config.icon_color);
|
const icon = trayIcon(config.icon_color);
|
||||||
const mb = menubar({
|
const mb = menubar({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user