mirror of
https://github.com/pvrzz/directify.git
synced 2026-11-29 05:22:24 +00:00
Remove native menu bar and style scrollbars to match the app theme
The default File/Edit/View/Window/Help menu and unstyled OS scrollbars made the window look like a generic Electron shell rather than a real app. Menu.setApplicationMenu(null) drops the menu bar; theme.css now themes scrollbars (thin, dark thumb) for both WebKit and Firefox.
This commit is contained in:
@@ -7,7 +7,7 @@ import {
|
||||
type BeatmapSet,
|
||||
type CollectionDatabase,
|
||||
} from "@directify/shared";
|
||||
import { app, BrowserWindow, dialog, ipcMain, shell } from "electron";
|
||||
import { app, BrowserWindow, dialog, ipcMain, shell, Menu } from "electron";
|
||||
import { existsSync } from "node:fs";
|
||||
import { readFile, writeFile } from "node:fs/promises";
|
||||
import { join } from "node:path";
|
||||
@@ -146,6 +146,8 @@ function createWindow(): void {
|
||||
}
|
||||
}
|
||||
|
||||
Menu.setApplicationMenu(null);
|
||||
|
||||
app.whenReady().then(async () => {
|
||||
const settings = loadSettings();
|
||||
await applyProxySettings(settings.proxy);
|
||||
|
||||
Reference in New Issue
Block a user