mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-17 05:02:06 +00:00
14
providers/prompt-custom-titlebar.ts
Normal file
14
providers/prompt-custom-titlebar.ts
Normal file
@ -0,0 +1,14 @@
|
||||
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('#container') as HTMLElement)!.style;
|
||||
mainStyle.width = '100%';
|
||||
mainStyle.position = 'fixed';
|
||||
mainStyle.border = 'unset';
|
||||
};
|
||||
Reference in New Issue
Block a user