mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
fix macOS titlebar
This commit is contained in:
parent
613ea3f7b4
commit
80642de33f
2 changed files with 9 additions and 4 deletions
|
@ -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 {
|
||||||
|
|
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue