Last active
August 12, 2020 08:50
-
-
Save mao-odoo/657b0aa19aba7ae6ac87e8fe23dcde51 to your computer and use it in GitHub Desktop.
rambox app, dark theme for app bar and tabs + custom css in app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function applycss(css){ | |
var head = document.getElementsByTagName('head')[0]; | |
var s = document.createElement('style'); | |
s.setAttribute('type', 'text/css'); | |
s.appendChild(document.createTextNode(css)); | |
head.appendChild(s); | |
} | |
applycss(` | |
/* put custom css here */ | |
`); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// author https://github.com/streetturtle | |
// https://github.com/ramboxapp/community-edition/issues/107#issuecomment-363158680 | |
document.querySelector('.x-tab-bar').style.backgroundColor='#20272D'; | |
document.querySelectorAll('.x-tab').forEach(function(el){el.style.backgroundColor='#40474D';}); | |
// how to use: | |
// open dev console (Window -> Toggle Developer Tools -> Console) | |
// paste + enter | |
// does not survive restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment