mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
18 lines
472 B
TypeScript
18 lines
472 B
TypeScript
// eslint-disable-next-line import/no-unresolved
|
|
import { Titlebar, Color } from 'custom-electron-titlebar';
|
|
|
|
export default () => {
|
|
new Titlebar({
|
|
backgroundColor: Color.fromHex('#050505'),
|
|
minimizable: false,
|
|
maximizable: false,
|
|
menu: undefined,
|
|
});
|
|
const mainStyle = document.querySelector<HTMLElement>('#container')?.style;
|
|
if (mainStyle) {
|
|
mainStyle.width = '100%';
|
|
mainStyle.position = 'fixed';
|
|
mainStyle.border = 'unset';
|
|
}
|
|
};
|