diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-30 16:22:42 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-30 16:22:42 +0900 |
| commit | 34dde4c6819f59c2bac300cf98fffb2349d09aba (patch) | |
| tree | b084f6e35d4712d53d8960f3f8569effc22c1869 | |
| parent | 0a6424c82047da50b3eba1107d5974829d9bb821 (diff) | |
modified qutebrowser/config.py, modified themes/xresources.py
| -rw-r--r-- | ar/.config/qutebrowser/config.py | 6 | ||||
| -rw-r--r-- | ar/.config/qutebrowser/themes/xresources.py | 125 |
2 files changed, 73 insertions, 58 deletions
diff --git a/ar/.config/qutebrowser/config.py b/ar/.config/qutebrowser/config.py index 5b8d12f..ae4dccd 100644 --- a/ar/.config/qutebrowser/config.py +++ b/ar/.config/qutebrowser/config.py @@ -530,7 +530,7 @@ c.colors.webpage.darkmode.enabled = True ## - never: Never apply dark mode filter to any images. ## - smart: Apply dark mode based on image content. Not available with Qt 5.15.0. ## - smart-simple: On QtWebEngine 6.6, use a simpler algorithm for smart mode (based on numbers of colors and transparency), rather than an ML-based model. Same as 'smart' on older QtWebEnigne versions. -c.colors.webpage.darkmode.policy.images = "never" +c.colors.webpage.darkmode.policy.images = "smart-simple" ## Which pages to apply dark mode to. The underlying Chromium setting has ## been removed in QtWebEngine 5.15.3, thus this setting is ignored @@ -775,7 +775,7 @@ c.content.blocking.method = "both" ## - no-3rdparty: Accept cookies from the same origin only. This is known to break some sites, such as GMail. ## - no-unknown-3rdparty: Accept cookies from the same origin only, unless a cookie is already set for the domain. On QtWebEngine, this is the same as no-3rdparty. ## - never: Don't accept cookies at all. -# c.content.cookies.accept = 'all' +c.content.cookies.accept = "no-3rdparty" ## Store cookies. ## Type: Bool @@ -2593,4 +2593,4 @@ config.bind( config.bind("zs", "config-cycle statusbar.show always never") config.bind("zt", "config-cycle tabs.show always never") -config.source("themes/catppuccin.py") +config.source("themes/gruvbox.py") diff --git a/ar/.config/qutebrowser/themes/xresources.py b/ar/.config/qutebrowser/themes/xresources.py index de4b92b..7474b3d 100644 --- a/ar/.config/qutebrowser/themes/xresources.py +++ b/ar/.config/qutebrowser/themes/xresources.py @@ -13,38 +13,40 @@ def read_xresources(prefix): xresources = read_xresources("*") -base00 = xresources["*color0"] -base01 = xresources["*color1"] -base02 = xresources["*color2"] -base03 = xresources["*color3"] -base04 = xresources["*color4"] -base05 = xresources["*color5"] -base06 = xresources["*color6"] -base07 = xresources["*color7"] -base08 = xresources["*color8"] -base09 = xresources["*color9"] -base0A = xresources["*color10"] -base0B = xresources["*color11"] -base0C = xresources["*color12"] -base0D = xresources["*color13"] -base0E = xresources["*color14"] -base0F = xresources["*color15"] +base00 = xresources["*.color0"] +base01 = xresources["*.color1"] +base02 = xresources["*.color2"] +base03 = xresources["*.color3"] +base04 = xresources["*.color4"] +base05 = xresources["*.color5"] +base06 = xresources["*.color6"] +base07 = xresources["*.color7"] +base08 = xresources["*.color8"] +base09 = xresources["*.color9"] +base0A = xresources["*.color10"] +base0B = xresources["*.color11"] +base0C = xresources["*.color12"] +base0D = xresources["*.color13"] +base0E = xresources["*.color14"] +base0F = xresources["*.color15"] +foreground = xresources["*.foreground"] +background = xresources["*.background"] # Text color of the completion widget. May be a single color to use for # all columns or a list of three colors, one for each column. -c.colors.completion.fg = base05 +c.colors.completion.fg = foreground # Background color of the completion widget for odd rows. -c.colors.completion.odd.bg = base08 +c.colors.completion.odd.bg = background # Background color of the completion widget for even rows. -c.colors.completion.even.bg = base00 +c.colors.completion.even.bg = background # Foreground color of completion widget category headers. -c.colors.completion.category.fg = base0A +c.colors.completion.category.fg = foreground # Background color of the completion widget category headers. -c.colors.completion.category.bg = base00 +c.colors.completion.category.bg = background # Top border color of the completion widget category headers. c.colors.completion.category.border.top = base00 @@ -53,10 +55,10 @@ c.colors.completion.category.border.top = base00 c.colors.completion.category.border.bottom = base00 # Foreground color of the selected completion item. -c.colors.completion.item.selected.fg = base00 +c.colors.completion.item.selected.fg = foreground # Background color of the selected completion item. -c.colors.completion.item.selected.bg = base0A +c.colors.completion.item.selected.bg = background # Top border color of the completion widget category headers. c.colors.completion.item.selected.border.top = base0A @@ -64,8 +66,11 @@ c.colors.completion.item.selected.border.top = base0A # Bottom border color of the selected completion item. c.colors.completion.item.selected.border.bottom = base0A +# Foreground color of the matched text in the selected completion item. +c.colors.completion.item.selected.match.fg = base06 + # Foreground color of the matched text in the completion. -c.colors.completion.match.fg = base0B +c.colors.completion.match.fg = base06 # Color of the scrollbar handle in the completion view. c.colors.completion.scrollbar.fg = base05 @@ -74,29 +79,32 @@ c.colors.completion.scrollbar.fg = base05 c.colors.completion.scrollbar.bg = base00 # Background color for the download bar. -c.colors.downloads.bar.bg = base00 +c.colors.downloads.bar.bg = background # Color gradient start for download text. -c.colors.downloads.start.fg = base00 +c.colors.downloads.start.fg = foreground # Color gradient start for download backgrounds. -c.colors.downloads.start.bg = base0D +c.colors.downloads.start.bg = base0A # Color gradient end for download text. -c.colors.downloads.stop.fg = base00 +c.colors.downloads.stop.fg = foreground # Color gradient stop for download backgrounds. -c.colors.downloads.stop.bg = base0C +c.colors.downloads.stop.bg = base08 # Foreground color for downloads with errors. -c.colors.downloads.error.fg = base08 +c.colors.downloads.error.fg = foreground + +# Background color for downloads with errors. +c.colors.downloads.error.bg = background # Font color for hints. -c.colors.hints.fg = base00 +c.colors.hints.fg = foreground # Background color for hints. Note that you can use a `rgba(...)` value # for transparency. -c.colors.hints.bg = base0A +c.colors.hints.bg = background # Font color for the matched part of hints. c.colors.hints.match.fg = base05 @@ -111,10 +119,10 @@ c.colors.keyhint.suffix.fg = base05 c.colors.keyhint.bg = base00 # Foreground color of an error message. -c.colors.messages.error.fg = base00 +c.colors.messages.error.fg = foreground # Background color of an error message. -c.colors.messages.error.bg = base08 +c.colors.messages.error.bg = background # Border color of an error message. c.colors.messages.error.border = base08 @@ -129,10 +137,10 @@ c.colors.messages.warning.bg = base0E c.colors.messages.warning.border = base0E # Foreground color of an info message. -c.colors.messages.info.fg = base05 +c.colors.messages.info.fg = foreground # Background color of an info message. -c.colors.messages.info.bg = base00 +c.colors.messages.info.bg = background # Border color of an info message. c.colors.messages.info.border = base00 @@ -150,10 +158,10 @@ c.colors.prompts.bg = base00 c.colors.prompts.selected.bg = base0A # Foreground color of the statusbar. -c.colors.statusbar.normal.fg = base0B +c.colors.statusbar.normal.fg = base0E # Background color of the statusbar. -c.colors.statusbar.normal.bg = base00 +c.colors.statusbar.normal.bg = "#00000000" # Foreground color of the statusbar in insert mode. c.colors.statusbar.insert.fg = base00 @@ -162,7 +170,7 @@ c.colors.statusbar.insert.fg = base00 c.colors.statusbar.insert.bg = base0D # Foreground color of the statusbar in passthrough mode. -c.colors.statusbar.passthrough.fg = base00 +c.colors.statusbar.passthrough.fg = base0E # Background color of the statusbar in passthrough mode. c.colors.statusbar.passthrough.bg = base0C @@ -174,10 +182,10 @@ c.colors.statusbar.private.fg = base00 c.colors.statusbar.private.bg = base03 # Foreground color of the statusbar in command mode. -c.colors.statusbar.command.fg = base05 +c.colors.statusbar.command.fg = foreground # Background color of the statusbar in command mode. -c.colors.statusbar.command.bg = base00 +c.colors.statusbar.command.bg = "#00000000" # Foreground color of the statusbar in private browsing + command mode. c.colors.statusbar.command.private.fg = base05 @@ -201,13 +209,13 @@ c.colors.statusbar.caret.selection.bg = base0D c.colors.statusbar.progress.bg = base0D # Default foreground color of the URL in the statusbar. -c.colors.statusbar.url.fg = base05 +c.colors.statusbar.url.fg = base0D # Foreground color of the URL in the statusbar on error. c.colors.statusbar.url.error.fg = base08 # Foreground color of the URL in the statusbar for hovered links. -c.colors.statusbar.url.hover.fg = base05 +c.colors.statusbar.url.hover.fg = base0C # Foreground color of the URL in the statusbar on successful load # (http). @@ -215,47 +223,54 @@ c.colors.statusbar.url.success.http.fg = base0C # Foreground color of the URL in the statusbar on successful load # (https). -c.colors.statusbar.url.success.https.fg = base0B +c.colors.statusbar.url.success.https.fg = base0D # Foreground color of the URL in the statusbar when there's a warning. c.colors.statusbar.url.warn.fg = base0E # Background color of the tab bar. -c.colors.tabs.bar.bg = base00 +c.colors.tabs.bar.bg = "#00000000" # Color gradient start for the tab indicator. -c.colors.tabs.indicator.start = base0D +c.colors.tabs.indicator.start = base0A # Color gradient end for the tab indicator. -c.colors.tabs.indicator.stop = base0C +c.colors.tabs.indicator.stop = base08 # Color for the tab indicator on errors. c.colors.tabs.indicator.error = base08 # Foreground color of unselected odd tabs. -c.colors.tabs.odd.fg = xresources["*foreground"] +c.colors.tabs.odd.fg = foreground # Background color of unselected odd tabs. -c.colors.tabs.odd.bg = base08 +c.colors.tabs.odd.bg = "#00000000" # Foreground color of unselected even tabs. -c.colors.tabs.even.fg = xresources["*foreground"] +c.colors.tabs.even.fg = foreground # Background color of unselected even tabs. -c.colors.tabs.even.bg = base00 +c.colors.tabs.even.bg = "#00000000" # Foreground color of selected odd tabs. -c.colors.tabs.selected.odd.fg = base00 +c.colors.tabs.selected.odd.fg = background # Background color of selected odd tabs. -c.colors.tabs.selected.odd.bg = xresources["*foreground"] +c.colors.tabs.selected.odd.bg = foreground # Foreground color of selected even tabs. -c.colors.tabs.selected.even.fg = base00 +c.colors.tabs.selected.even.fg = background # Background color of selected even tabs. -c.colors.tabs.selected.even.bg = xresources["*foreground"] +c.colors.tabs.selected.even.bg = foreground + +# Background color of tooltips. If set to null, the Qt default is used. +c.colors.tooltip.bg = background # Background color for webpages if unset (or empty to use the theme's # color). # c.colors.webpage.bg = base00 +c.colors.webpage.bg = background + +# CSS border value for hints. +c.hints.border = foreground |
