Skip to content
This repository was archived by the owner on Sep 13, 2024. It is now read-only.

Commit 75a5846

Browse files
Merge pull request #171 from 4gray/develop
Minor improvements
2 parents 5495179 + 6f9ecc4 commit 75a5846

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example/preload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ window.addEventListener('DOMContentLoaded', () => {
2222
ipcRenderer.on('renderer-titlebar', (event, menu) => {
2323
titlebar = new cet.Titlebar({
2424
backgroundColor: cet.Color.fromHex("#388e3c"),
25-
icon: new URL(path.join(__dirname, '/assets/images', '/icon.svg')),
25+
icon: path.join(__dirname, '/assets/images', '/icon.svg'),
2626
menu: menu,
2727
onMinimize: () => ipcRenderer.send('window-event', 'window-minimize'),
2828
onMaximize: () => ipcRenderer.send('window-event', 'window-maximize'),

src/titlebar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ export default class Titlebar {
470470
addClass(this.title, 'cet-center');
471471
}
472472

473-
if (this.options.order !== 'first-buttons') {
473+
if (!isMacintosh && this.options.order !== 'first-buttons') {
474474
this.windowControls.style.marginLeft = 'auto';
475475
}
476476

0 commit comments

Comments
 (0)