fix macOS titlebar

This commit is contained in:
smartfrigde 2024-01-28 15:34:34 +01:00
parent 613ea3f7b4
commit 80642de33f
2 changed files with 9 additions and 4 deletions

View file

@ -230,10 +230,11 @@
[armcord-platform="darwin"] .sidebar-1tnWFu { [armcord-platform="darwin"] .sidebar-1tnWFu {
border-top-left-radius: 0px !important; border-top-left-radius: 0px !important;
} }
[armcord-platform="darwin"] .scroller-3X7KbA { [armcord-platform="darwin"] .scroller__3d071 {
padding-top: 35px !important; padding-top: 35px !important;
} }
[armcord-platform="darwin"] .container-2RRFHK { [armcord-platform="darwin"] .container__037ed {
overflow: unset !important;
padding-top: 48px; padding-top: 48px;
top: -48px; top: -48px;
} }
@ -242,10 +243,13 @@
line-height: 48px; line-height: 48px;
width: 150px !important; width: 150px !important;
} }
[armcord-platform="darwin"] section.theme-dark.container-ZMc96U.themed-Hp1KC_ { [armcord-platform="darwin"] section.theme-dark.container__11d72.themed_b152d4 {
-webkit-app-region: drag; -webkit-app-region: drag;
} }
[armcord-platform="darwin"] .searchBar-3TnChZ { [armcord-platform="darwin"] section.title_b7d661.container__11d72.themed_b152d4 {
-webkit-app-region: drag;
}
[armcord-platform="darwin"] .searchBar_e4ea2a {
-webkit-app-region: drag; -webkit-app-region: drag;
} }
[armcord-platform="darwin"] .titlebar #window-controls-container { [armcord-platform="darwin"] .titlebar #window-controls-container {

View file

@ -26,6 +26,7 @@ export function injectTitlebar(): void {
addStyle(fs.readFileSync(titlebarcssPath, "utf8")); addStyle(fs.readFileSync(titlebarcssPath, "utf8"));
addStyle(fs.readFileSync(wordmarkcssPath, "utf8")); addStyle(fs.readFileSync(wordmarkcssPath, "utf8"));
document.body.setAttribute("customTitlebar", ""); document.body.setAttribute("customTitlebar", "");
document.body.setAttribute("armcord-platform", os.platform()); document.body.setAttribute("armcord-platform", os.platform());
const minimize = document.getElementById("minimize"); const minimize = document.getElementById("minimize");