From 6a370b82c71129cb19d3aa53ff71d60611ed166f Mon Sep 17 00:00:00 2001 From: Leon Kowarschick Date: Sat, 25 Apr 2020 12:46:02 +0200 Subject: [PATCH] improve qutebrowser crollbars --- files/.Xresources | 2 ++ files/.config/qutebrowser/autoconfig.yml | 2 ++ files/.config/qutebrowser/config.py | 3 +++ .../__pycache__/__init__.cpython-38.pyc | Bin 142 -> 142 bytes .../gruvboxy/__pycache__/draw.cpython-38.pyc | Bin 2715 -> 2710 bytes files/.config/qutebrowser/gruvboxy/draw.py | 5 +++- files/.config/qutebrowser/user.css | 23 +++++------------- 7 files changed, 17 insertions(+), 18 deletions(-) diff --git a/files/.Xresources b/files/.Xresources index 28e0478..346ee44 100644 --- a/files/.Xresources +++ b/files/.Xresources @@ -1,3 +1,5 @@ +*.background: #282828 + rofi.lines: 5 rofi.eh: 2 rofi.padding: 200 diff --git a/files/.config/qutebrowser/autoconfig.yml b/files/.config/qutebrowser/autoconfig.yml index ac827d3..d14ff13 100644 --- a/files/.config/qutebrowser/autoconfig.yml +++ b/files/.config/qutebrowser/autoconfig.yml @@ -8,3 +8,5 @@ config_version: 2 settings: content.notifications: https://www.reddit.com: false + scrolling.bar: + global: always diff --git a/files/.config/qutebrowser/config.py b/files/.config/qutebrowser/config.py index 1796946..4bbab67 100644 --- a/files/.config/qutebrowser/config.py +++ b/files/.config/qutebrowser/config.py @@ -10,6 +10,9 @@ gruvboxy.draw.blood(c, { # config.load_autoconfig() c.backend = 'webengine' +c.scrolling.bar = "always" # "when-searching" +c.content.user_stylesheets = "user.css" + config.unbind("") config.unbind("d") config.bind("Q", "tab-close") diff --git a/files/.config/qutebrowser/gruvboxy/__pycache__/__init__.cpython-38.pyc b/files/.config/qutebrowser/gruvboxy/__pycache__/__init__.cpython-38.pyc index 6bbf36316e01b25dde240f9daa51131da01e3520..48c46cb2e12c8141431615c309950b48122fa2cb 100644 GIT binary patch delta 19 YcmeBU>|^8(<>lpK0D=PU#S^)k0V3K1-~a#s delta 19 YcmeBU>|^8(<>lpK0D`oj`4hRD0VDAQ82|tP diff --git a/files/.config/qutebrowser/gruvboxy/__pycache__/draw.cpython-38.pyc b/files/.config/qutebrowser/gruvboxy/__pycache__/draw.cpython-38.pyc index f18cfc4e7ba552e8ef9f98d0f041fd2c116de30a..6799d879fb8fd5c330145f53496df01961ef0404 100644 GIT binary patch delta 395 zcmbO&I!%-}l$V!_0SNwcEr~1I$h(GFP+F3qh9QeFOFBy-o~4Ek zwJh~`4xkLGmdW$jn7JGg{NoIatF;Fv5tfVBh zNC0G_2#{FGP~ke?=F5r{7GLM6O`+*=$rx%nxjIjMFaFMbAM F1^}V>V7UMQ delta 367 zcmbOxI$M-Cl$V!_0SMB9=EsR|>>FoUM{xB0}>2OlP7S>PhQKp&Da~r^V4K30?|dD ZsDu}gdyB&+H$SB`C)Ez5`!f(T004TdO@aUb diff --git a/files/.config/qutebrowser/gruvboxy/draw.py b/files/.config/qutebrowser/gruvboxy/draw.py index e0d94a6..49ac6f2 100644 --- a/files/.config/qutebrowser/gruvboxy/draw.py +++ b/files/.config/qutebrowser/gruvboxy/draw.py @@ -1,3 +1,6 @@ +# check c.colors.statusbar.insert.bg = palette['background-alt'] +# was: background-attention + def blood(c, options = {}): palette = { 'background': '#282828', @@ -180,7 +183,7 @@ def blood(c, options = {}): c.colors.statusbar.command.private.fg = palette['foreground-alt'] ## Background color of the statusbar in insert mode. - c.colors.statusbar.insert.bg = palette['background-attention'] + c.colors.statusbar.insert.bg = palette['background-alt'] ## Foreground color of the statusbar in insert mode. c.colors.statusbar.insert.fg = palette['foreground-attention'] diff --git a/files/.config/qutebrowser/user.css b/files/.config/qutebrowser/user.css index 4aaccc5..a4c6ef2 100644 --- a/files/.config/qutebrowser/user.css +++ b/files/.config/qutebrowser/user.css @@ -3,25 +3,14 @@ height: 8px; } -::-webkit-scrollbar-track:vertical { - background: black; - border-left: 1px solid black; +::-webkit-scrollbar-track{ + background-color: #282828; } -::-webkit-scrollbar-thumb:vertical { - background: white; - border-left: 1px solid black; -} - -::-webkit-scrollbar-track:horizontal { - background: white; - border-radius: 4px; -} - -::-webkit-scrollbar-thumb:horizontal { - background: white; - border-radius: 4px; - box-shadow: inset 0 0 8px black; +::-webkit-scrollbar-thumb{ + background-color: #fbf1c7; + border: 2px solid #282828; + border-radius: 3px; } ::-webkit-scrollbar-corner {