Windows: Add Option to use native titlebar ~ Closes #537
This commit is contained in:
parent
5ec517875e
commit
4918d699d5
4 changed files with 20 additions and 2 deletions
|
|
@ -95,3 +95,12 @@ async function init() {
|
|||
}
|
||||
|
||||
init();
|
||||
|
||||
if (!IS_WEB && Settings.winNativeTitleBar && navigator.platform.toLowerCase().startsWith("win")) {
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
document.head.append(Object.assign(document.createElement("style"), {
|
||||
id: "vencord-native-titlebar-style",
|
||||
textContent: "[class*=titleBar-]{display: none!important}"
|
||||
}));
|
||||
}, { once: true });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue