From cf15b430645c7e7bf16683c87bd1f49bc1d71a9d Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Tue, 8 Aug 2023 16:12:08 +0200 Subject: [PATCH] new themes dir and clean actual themes --- .gitmodules | 3 - conf.d/qutebrowser/dracula | 1 - conf.d/qutebrowser/themes/onedark/README.md | 29 ++ .../themes/onedark/themes/onedark.py | 307 ++++++++++++++++++ 4 files changed, 336 insertions(+), 4 deletions(-) delete mode 160000 conf.d/qutebrowser/dracula create mode 100644 conf.d/qutebrowser/themes/onedark/README.md create mode 100644 conf.d/qutebrowser/themes/onedark/themes/onedark.py diff --git a/.gitmodules b/.gitmodules index 9956552..a5c24c1 100644 --- a/.gitmodules +++ b/.gitmodules @@ -2,9 +2,6 @@ path = dotbot url = https://github.com/anishathalye/dotbot ignore = dirty -[submodule "conf.d/qutebrowser/dracula"] - path = conf.d/qutebrowser/dracula - url = https://github.com/dracula/qutebrowser-dracula-theme.git [submodule "dotbot_plugins/dotbot-yay"] path = dotbot_plugins/dotbot-yay url = https://github.com/oxson/dotbot-yay diff --git a/conf.d/qutebrowser/dracula b/conf.d/qutebrowser/dracula deleted file mode 160000 index 791de19..0000000 --- a/conf.d/qutebrowser/dracula +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 791de19ce6a43f0fa52405eea57cba43b4c05a22 diff --git a/conf.d/qutebrowser/themes/onedark/README.md b/conf.d/qutebrowser/themes/onedark/README.md new file mode 100644 index 0000000..45ffa9b --- /dev/null +++ b/conf.d/qutebrowser/themes/onedark/README.md @@ -0,0 +1,29 @@ +## About +A growing collection of themes for qutebrowser. + +This repo was originally inspired by [dexpota/kitty-themes](https://github.com/dexpota/kitty-themes) and [theova/base16-qutebrowser](https://github.com/theova/base16-qutebrowser). However, we will not require themes to comply with the [base16 guidelines](https://github.com/chriskempson/base16/blob/master/styling.md). + + +## Install + +1. Clone this repo into your `.qutebrowser` directory: + + ```zsh + git clone https://github.com/leosolid/qutebrowser-themes ~/.qutebrowser + ``` + +2. Set theme using at the _end_ of your `config.py` file: + + ```python + config.source('qutebrowser-themes/themes/onedark.py') + ``` +3. Restart qutebrowser or reload your config with: + ``` + :config-source + ``` + +## Previews + +### Onedark + +![Screen Shot 2021-07-21 at 7 53 22 PM](https://user-images.githubusercontent.com/13348080/126584037-8a64e2f2-7edc-4f54-b736-911a0bcdc848.png) diff --git a/conf.d/qutebrowser/themes/onedark/themes/onedark.py b/conf.d/qutebrowser/themes/onedark/themes/onedark.py new file mode 100644 index 0000000..ae8f0ea --- /dev/null +++ b/conf.d/qutebrowser/themes/onedark/themes/onedark.py @@ -0,0 +1,307 @@ +# credits to theova/base16-qutebrowser for the original template + +########## +# COLORS # +########## + +# base16 colors but with variable names that +# reflect what the color is mainly used for + +bg_default = "#282c34" # main shade darkest +bg_lighter = "#353b45" +bg_selection = "#3e4451" +# "#545862" +fg_disabled = "#565c64" +fg_default = "#abb2bf" +# "#b6bdca" +bg_lightest = "#c8ccd4" # main shade lightest +fg_error = "#e06c75" # red +# "#d19a66" # orange +bg_hint = "#e5c07b" # yellow +fg_matched_text = "#98c379" # green +bg_passthrough_mode = "#56b6c2" # teal +bg_insert_mode = "#61afef" # blue +bg_warning = "#c678dd" # purple +# "#be5046" # dark red + +############ +# SETTINGS # +############ + +# 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 = fg_default + +# Background color of the completion widget for odd rows. +c.colors.completion.odd.bg = bg_lighter + +# Background color of the completion widget for even rows. +c.colors.completion.even.bg = bg_default + +# Foreground color of completion widget category headers. +c.colors.completion.category.fg = bg_hint + +# Background color of the completion widget category headers. +c.colors.completion.category.bg = bg_default + +# Top border color of the completion widget category headers. +c.colors.completion.category.border.top = bg_default + +# Bottom border color of the completion widget category headers. +c.colors.completion.category.border.bottom = bg_default + +# Foreground color of the selected completion item. +c.colors.completion.item.selected.fg = fg_default + +# Background color of the selected completion item. +c.colors.completion.item.selected.bg = bg_selection + +# Top border color of the selected completion item. +c.colors.completion.item.selected.border.top = bg_selection + +# Bottom border color of the selected completion item. +c.colors.completion.item.selected.border.bottom = bg_selection + +# Foreground color of the matched text in the selected completion item. +c.colors.completion.item.selected.match.fg = fg_matched_text + +# Foreground color of the matched text in the completion. +c.colors.completion.match.fg = fg_matched_text + +# Color of the scrollbar handle in the completion view. +c.colors.completion.scrollbar.fg = fg_default + +# Color of the scrollbar in the completion view. +c.colors.completion.scrollbar.bg = bg_default + +# Background color of disabled items in the context menu. +c.colors.contextmenu.disabled.bg = bg_lighter + +# Foreground color of disabled items in the context menu. +c.colors.contextmenu.disabled.fg = fg_disabled + +# Background color of the context menu. If set to null, the Qt default is used. +c.colors.contextmenu.menu.bg = bg_default + +# Foreground color of the context menu. If set to null, the Qt default is used. +c.colors.contextmenu.menu.fg = fg_default + +# Background color of the context menu’s selected item. If set to null, the Qt default is used. +c.colors.contextmenu.selected.bg = bg_selection + +#Foreground color of the context menu’s selected item. If set to null, the Qt default is used. +c.colors.contextmenu.selected.fg = fg_default + +# Background color for the download bar. +c.colors.downloads.bar.bg = bg_default + +# Color gradient start for download text. +c.colors.downloads.start.fg = bg_default + +# Color gradient start for download backgrounds. +c.colors.downloads.start.bg = bg_insert_mode + +# Color gradient end for download text. +c.colors.downloads.stop.fg = bg_default + +# Color gradient stop for download backgrounds. +c.colors.downloads.stop.bg = bg_passthrough_mode + +# Foreground color for downloads with errors. +c.colors.downloads.error.fg = fg_error + +# Font color for hints. +c.colors.hints.fg = bg_default + +# Background color for hints. Note that you can use a `rgba(...)` value +# for transparency. +c.colors.hints.bg = bg_hint + +# Font color for the matched part of hints. +c.colors.hints.match.fg = fg_default + +# Text color for the keyhint widget. +c.colors.keyhint.fg = fg_default + +# Highlight color for keys to complete the current keychain. +c.colors.keyhint.suffix.fg = fg_default + +# Background color of the keyhint widget. +c.colors.keyhint.bg = bg_default + +# Foreground color of an error message. +c.colors.messages.error.fg = bg_default + +# Background color of an error message. +c.colors.messages.error.bg = fg_error + +# Border color of an error message. +c.colors.messages.error.border = fg_error + +# Foreground color of a warning message. +c.colors.messages.warning.fg = bg_default + +# Background color of a warning message. +c.colors.messages.warning.bg = bg_warning + +# Border color of a warning message. +c.colors.messages.warning.border = bg_warning + +# Foreground color of an info message. +c.colors.messages.info.fg = fg_default + +# Background color of an info message. +c.colors.messages.info.bg = bg_default + +# Border color of an info message. +c.colors.messages.info.border = bg_default + +# Foreground color for prompts. +c.colors.prompts.fg = fg_default + +# Border used around UI elements in prompts. +c.colors.prompts.border = bg_default + +# Background color for prompts. +c.colors.prompts.bg = bg_default + +# Background color for the selected item in filename prompts. +c.colors.prompts.selected.bg = bg_selection + +# Foreground color for the selected item in filename prompts. +c.colors.prompts.selected.fg = fg_default + +# Foreground color of the statusbar. +c.colors.statusbar.normal.fg = fg_matched_text + +# Background color of the statusbar. +c.colors.statusbar.normal.bg = bg_default + +# Foreground color of the statusbar in insert mode. +c.colors.statusbar.insert.fg = bg_default + +# Background color of the statusbar in insert mode. +c.colors.statusbar.insert.bg = bg_insert_mode + +# Foreground color of the statusbar in passthrough mode. +c.colors.statusbar.passthrough.fg = bg_default + +# Background color of the statusbar in passthrough mode. +c.colors.statusbar.passthrough.bg = bg_passthrough_mode + +# Foreground color of the statusbar in private browsing mode. +c.colors.statusbar.private.fg = bg_default + +# Background color of the statusbar in private browsing mode. +c.colors.statusbar.private.bg = bg_lighter + +# Foreground color of the statusbar in command mode. +c.colors.statusbar.command.fg = fg_default + +# Background color of the statusbar in command mode. +c.colors.statusbar.command.bg = bg_default + +# Foreground color of the statusbar in private browsing + command mode. +c.colors.statusbar.command.private.fg = fg_default + +# Background color of the statusbar in private browsing + command mode. +c.colors.statusbar.command.private.bg = bg_default + +# Foreground color of the statusbar in caret mode. +c.colors.statusbar.caret.fg = bg_default + +# Background color of the statusbar in caret mode. +c.colors.statusbar.caret.bg = bg_warning + +# Foreground color of the statusbar in caret mode with a selection. +c.colors.statusbar.caret.selection.fg = bg_default + +# Background color of the statusbar in caret mode with a selection. +c.colors.statusbar.caret.selection.bg = bg_insert_mode + +# Background color of the progress bar. +c.colors.statusbar.progress.bg = bg_insert_mode + +# Default foreground color of the URL in the statusbar. +c.colors.statusbar.url.fg = fg_default + +# Foreground color of the URL in the statusbar on error. +c.colors.statusbar.url.error.fg = fg_error + +# Foreground color of the URL in the statusbar for hovered links. +c.colors.statusbar.url.hover.fg = fg_default + +# Foreground color of the URL in the statusbar on successful load +# (http). +c.colors.statusbar.url.success.http.fg = bg_passthrough_mode + +# Foreground color of the URL in the statusbar on successful load +# (https). +c.colors.statusbar.url.success.https.fg = fg_matched_text + +# Foreground color of the URL in the statusbar when there's a warning. +c.colors.statusbar.url.warn.fg = bg_warning + +# Background color of the tab bar. +c.colors.tabs.bar.bg = bg_default + +# Color gradient start for the tab indicator. +c.colors.tabs.indicator.start = bg_insert_mode + +# Color gradient end for the tab indicator. +c.colors.tabs.indicator.stop = bg_passthrough_mode + +# Color for the tab indicator on errors. +c.colors.tabs.indicator.error = fg_error + +# Foreground color of unselected odd tabs. +c.colors.tabs.odd.fg = fg_default + +# Background color of unselected odd tabs. +c.colors.tabs.odd.bg = bg_lighter + +# Foreground color of unselected even tabs. +c.colors.tabs.even.fg = fg_default + +# Background color of unselected even tabs. +c.colors.tabs.even.bg = bg_default + +# Background color of pinned unselected even tabs. +c.colors.tabs.pinned.even.bg = bg_passthrough_mode + +# Foreground color of pinned unselected even tabs. +c.colors.tabs.pinned.even.fg = bg_lightest + +# Background color of pinned unselected odd tabs. +c.colors.tabs.pinned.odd.bg = fg_matched_text + +# Foreground color of pinned unselected odd tabs. +c.colors.tabs.pinned.odd.fg = bg_lightest + +# Background color of pinned selected even tabs. +c.colors.tabs.pinned.selected.even.bg = bg_selection + +# Foreground color of pinned selected even tabs. +c.colors.tabs.pinned.selected.even.fg = fg_default + +# Background color of pinned selected odd tabs. +c.colors.tabs.pinned.selected.odd.bg = bg_selection + +# Foreground color of pinned selected odd tabs. +c.colors.tabs.pinned.selected.odd.fg = fg_default + +# Foreground color of selected odd tabs. +c.colors.tabs.selected.odd.fg = fg_default + +# Background color of selected odd tabs. +c.colors.tabs.selected.odd.bg = bg_selection + +# Foreground color of selected even tabs. +c.colors.tabs.selected.even.fg = fg_default + +# Background color of selected even tabs. +c.colors.tabs.selected.even.bg = bg_selection + +# Background color for webpages if unset (or empty to use the theme's +# color). +# c.colors.webpage.bg = bg_default