by uxp · 7y ago · 0 comments
Try turning them off, it'll look much better.
It overrides the GTK theme used to render page content and still allows to use a dark theme (or whatever you want) for UI components.
Another thing: I think one thing he is missing is how important it is to see at a glance where function definitions are and where possible early returns are. The first example highlights def (function definitions), return (possible early return) and the return type (arguably not that important in most cases).
Array.from(document.styleSheets).forEach(ss => Array.from(ss.rules).forEach((ssr,i) => {if (ssr.cssText && ssr.cssText.includes("dark")) {ssr.parentStyleSheet.deleteRule(i)}}))Edit: Yep, dark mode mangled the code snippets.