css tweaks

This commit is contained in:
Araxeus
2021-04-04 21:25:41 +03:00
parent 7c8e946871
commit 73b0ddc2ce
3 changed files with 23 additions and 9 deletions

View File

@ -3,10 +3,17 @@ const customTitlebar = require("custom-electron-titlebar");
module.exports = () => {
const bar = new customTitlebar.Titlebar({
backgroundColor: customTitlebar.Color.fromHex("#050505"),
minimizable: false,
maximizable: false,
unfocusEffect: true,
});
try {
bar.updateMenu(null);
} catch (e) {
//will always throw type error - null isn't menu, but it works
}
let container = document.querySelector('#container');
container.style.width = '100%';
container.style.position = 'fixed';
container.style.border = 'unset';
}