mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-16 12:42:06 +00:00
refactor and css fix
This commit is contained in:
@ -5,15 +5,10 @@ module.exports = () => {
|
|||||||
backgroundColor: customTitlebar.Color.fromHex("#050505"),
|
backgroundColor: customTitlebar.Color.fromHex("#050505"),
|
||||||
minimizable: false,
|
minimizable: false,
|
||||||
maximizable: false,
|
maximizable: false,
|
||||||
unfocusEffect: true,
|
menu: null
|
||||||
});
|
});
|
||||||
try {
|
let mainStyle = document.querySelector('#container').style;
|
||||||
bar.updateMenu(null);
|
mainStyle.width = '100%';
|
||||||
} catch (e) {
|
mainStyle.position = 'fixed';
|
||||||
//will always throw type error - null isn't menu, but it works
|
mainStyle.border = 'unset';
|
||||||
}
|
|
||||||
let container = document.querySelector('#container');
|
|
||||||
container.style.width = '100%';
|
|
||||||
container.style.position = 'fixed';
|
|
||||||
container.style.border = 'unset';
|
|
||||||
}
|
}
|
||||||
@ -34,7 +34,9 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ok:hover,
|
#ok:hover,
|
||||||
#cancel:hover {
|
#ok:focus,
|
||||||
|
#cancel:hover,
|
||||||
|
#cancel:focus {
|
||||||
outline: rgba(60, 0, 0, 0.4) solid 2px;
|
outline: rgba(60, 0, 0, 0.4) solid 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -50,9 +50,9 @@ function electronPrompt(options, parentWindow) {
|
|||||||
minWidth: options_.minWidth,
|
minWidth: options_.minWidth,
|
||||||
minHeight: options_.minHeight,
|
minHeight: options_.minHeight,
|
||||||
resizable: options_.resizable,
|
resizable: options_.resizable,
|
||||||
minimizable: false,
|
minimizable: !options_.skipTaskbar && !parentWindow && !options_.alwaysOnTop,
|
||||||
fullscreenable: false,
|
fullscreenable: options_.resizable,
|
||||||
maximizable: false,
|
maximizable: options_.resizable,
|
||||||
parent: parentWindow,
|
parent: parentWindow,
|
||||||
skipTaskbar: options_.skipTaskbar,
|
skipTaskbar: options_.skipTaskbar,
|
||||||
alwaysOnTop: options_.alwaysOnTop,
|
alwaysOnTop: options_.alwaysOnTop,
|
||||||
|
|||||||
Reference in New Issue
Block a user