diff options
author | Marvin Borner | 2020-05-31 17:44:44 +0200 |
---|---|---|
committer | Marvin Borner | 2020-05-31 17:44:44 +0200 |
commit | d2fd3e99bd7182e8e60a9a9ad548b0aefb5670ef (patch) | |
tree | fc11c8119c90a54f87800b434afc76788739f113 /.config/qutebrowser | |
parent | 08b5db049e1864b884be987c93b769c073928417 (diff) |
Added global dark-mode for qutebrowser
Still has many bugs on different sites but generally looks acceptable
Diffstat (limited to '.config/qutebrowser')
-rw-r--r-- | .config/qutebrowser/config.py | 3 | ||||
-rw-r--r-- | .config/qutebrowser/user.css | 87 |
2 files changed, 90 insertions, 0 deletions
diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index da5dc8a..1fc596a 100644 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -262,3 +262,6 @@ c.colors.tabs.selected.even.bg = base02 # color). c.colors.webpage.bg = base00 c.colors.webpage.prefers_color_scheme_dark + +c.content.user_stylesheets = ["user.css"] +config.bind('<Ctrl-i>', 'config-cycle content.user_stylesheets user.css ""') diff --git a/.config/qutebrowser/user.css b/.config/qutebrowser/user.css new file mode 100644 index 0000000..b790a5a --- /dev/null +++ b/.config/qutebrowser/user.css @@ -0,0 +1,87 @@ +:root { + --bg: #282c34; + --bg-sel: #3e4451; + --fg: #abb2bf; + --hl: #b6bdca; +} + +/* General style */ +*:not(svg) { + background: var(--bg) !important; + background-color: var(--bg) !important; + border-color: var(--bg-sel) !important; + color: var(--fg) !important; +} + +*:before:not(svg) { + background: var(--bg) !important; + background-color: var(--bg) !important; + border-color: var(--bg-sel) !important; + color: var(--fg) !important; +} + +*:after:not(svg) { + background: var(--bg) !important; + background-color: var(--bg) !important; + border-color: var(--bg-sel) !important; + color: var(--fg) !important; +} + +*:hover:not(svg) { + background: var(--bg) !important; + background-color: var(--bg) !important; + border-color: var(--bg-sel) !important; + color: var(--fg) !important; +} + +*:focus:not(svg) { + background: var(--bg) !important; + background-color: var(--bg) !important; + border-color: var(--bg-sel) !important; + color: var(--fg) !important; +} + +a { + color: var(--hl) !important; + text-decoration: none !important; +} + +a:hover { + color: var(--hl) !important; + text-decoration: underline !important; +} + +hr { + color: var(--bg-sel) !important; + z-index: 99; +} + +/* Specific fixes */ +.bg-gray, .bg-gray-light { background: var(--bg) !important; } /* GH */ +.link-gray-dark, .text-gray { color: var(--fg) !important; } /* GH */ +.mb-4.js-notice { display: none !important; } /* GH */ + +.w3-light-grey, .w3-white { background: var(--bg) !important; } /* W3 */ + +.-main a.-logo, ol.list-reset.grid.gs4, #left-sidebar.ps-relative { display: none !important; } /* SO */ + +.RNNXgb { border: none !important; } /* Google */ + +.ytp-gradient-bottom { display: none !important; } /* YT */ +.ytp-preview, .ytp-tooltip *, .ytp-chrome-bottom *, .ytp-chrome-bottom, .ytp-chrome-bottom:hover, .ytp-chrome-controls:hover, .ytp-progress-bar-padding:hover { background-color: transparent !important; } /* YT */ +.ytp-swatch-background-color { background: var(--fg) !important; } /* YT */ + +/* Scrollbar */ +::-webkit-scrollbar { + height: 12px; + width: 12px; + background: var(--bg); +} + +::-webkit-scrollbar-thumb { + background: var(--bg-sel); +} + +::-webkit-scrollbar-corner { + background: var(--bg); +} |