mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
62 lines
No EOL
1.3 KiB
JavaScript
62 lines
No EOL
1.3 KiB
JavaScript
const customTitlebar = require('custom-electron-titlebar')
|
|
|
|
window.addEventListener('DOMContentLoaded', () => {
|
|
new customTitlebar.Titlebar({
|
|
backgroundColor: customTitlebar.Color.fromHex("#202225"),
|
|
});
|
|
|
|
/**
|
|
* Utility function to add CSS in multiple passes.
|
|
* @param {string} styleString
|
|
*/
|
|
function addStyle(styleString) {
|
|
const style = document.createElement('style');
|
|
style.textContent = styleString;
|
|
document.head.append(style);
|
|
}
|
|
|
|
addStyle(`
|
|
@import url("https://kckarnige.github.io/femboi_owo/discord-font.css");
|
|
|
|
.base-3dtUhz, .sidebar-2K8pFh {
|
|
display: -webkit-box;
|
|
display: -ms-flexbox;
|
|
display: flex;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-box-direction: normal;
|
|
-ms-flex-direction: column;
|
|
overflow: hidden;
|
|
border-top-left-radius: 8px;
|
|
}
|
|
|
|
div.menubar[role="menubar"] {
|
|
width: 0px;
|
|
}
|
|
|
|
.window-title:after {
|
|
content: "Cord";
|
|
color: #fff;
|
|
font-weight: normal;
|
|
font-size: 12px;
|
|
font-family: Discordinated;
|
|
}
|
|
|
|
.window-title:before {
|
|
content: "ARM";
|
|
color: #7289da;
|
|
font-weight: normal;
|
|
font-size: 12px;
|
|
font-family: Helvetica, sans-serif;
|
|
}
|
|
|
|
.window-title {
|
|
font-size: 0px !important;
|
|
margin-left: initial !important;
|
|
transform: translate(10px, 3px) !important;
|
|
}
|
|
|
|
.titlebar {
|
|
background: #202225 !important;
|
|
}
|
|
`);
|
|
}) |