Skip to content

Instantly share code, notes, and snippets.

@mao-odoo
Last active August 12, 2020 08:50
Show Gist options
  • Save mao-odoo/657b0aa19aba7ae6ac87e8fe23dcde51 to your computer and use it in GitHub Desktop.
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
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 */
`);
// 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