qutebrowser: non-finicky dark mode toggle
thanks mr qutebrowser maintainer and the qtwebengine folks
This commit is contained in:
parent
a91d0fb323
commit
2d712167a0
@ -43,7 +43,8 @@ c.fonts.web.family.sans_serif = "Inter"
|
|||||||
c.fonts.web.family.standard = "Inter"
|
c.fonts.web.family.standard = "Inter"
|
||||||
c.fonts.web.family.fixed = "JetBrains Mono"
|
c.fonts.web.family.fixed = "JetBrains Mono"
|
||||||
|
|
||||||
config.bind("td", "config-cycle colors.webpage.darkmode.enabled true false;; restart")
|
# for QtWebEngine < 6.7, a :restart is needed following this
|
||||||
|
config.bind("td", "config-cycle colors.webpage.darkmode.enabled true false")
|
||||||
|
|
||||||
# General settings
|
# General settings
|
||||||
|
|
||||||
@ -164,11 +165,11 @@ c.fileselect.single_file.command = [
|
|||||||
# (thank you very much dima https://github.com/qutebrowser/qutebrowser/issues/6281)
|
# (thank you very much dima https://github.com/qutebrowser/qutebrowser/issues/6281)
|
||||||
config.bind(
|
config.bind(
|
||||||
"<Ctrl-d>",
|
"<Ctrl-d>",
|
||||||
"jseval -q window.scrollBy({top: window.innerHeight/2, left: 0, behavior: 'smooth'});",
|
"jseval -q window.scrollBy({top: window.innerHeight/1.5, left: 0, behavior: 'smooth'});",
|
||||||
)
|
)
|
||||||
config.bind(
|
config.bind(
|
||||||
"<Ctrl-u>",
|
"<Ctrl-u>",
|
||||||
"jseval -q window.scrollBy({top: -window.innerHeight/2, left: 0, behavior: 'smooth'});",
|
"jseval -q window.scrollBy({top: -window.innerHeight/1.5, left: 0, behavior: 'smooth'});",
|
||||||
)
|
)
|
||||||
config.bind(
|
config.bind(
|
||||||
"G",
|
"G",
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
body {
|
@media (prefers-color-scheme: dark) {
|
||||||
background: #000000;
|
body {
|
||||||
|
background: #000000;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user