Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(pages): add page layout and theme configuration #10

Merged
merged 11 commits into from
Oct 26, 2024
Prev Previous commit
Next Next commit
refactor(main-app): hidden electron title bar
Cheerego7 committed Oct 26, 2024
commit aabfe118332f8bfbabfe7a266b4e75fe5c0854dd
9 changes: 7 additions & 2 deletions desktop/main/src/index.ts
Original file line number Diff line number Diff line change
@@ -7,13 +7,18 @@ const __dirname = path.dirname(__filename);

async function createWindow() {
const mainWindow = new BrowserWindow({
width: 1600,
height: 1500,
width: 960,
height: 678,
show: false,
webPreferences: {
preload: path.join(__dirname, "preload.mjs"),
nodeIntegration: false,
},
titleBarStyle: "hidden",
trafficLightPosition: {
x: 13,
y: 13,
},
});

mainWindow.once("ready-to-show", () => {