From 441b755ad759ea7984fe0abc72fa1d798afa5bb1 Mon Sep 17 00:00:00 2001 From: ratakor Date: Sun, 1 Jan 2023 14:43:21 +0100 Subject: [PATCH] add dracula theme and fix useless whitespace --- api.php | 4 ++-- settings.php | 21 +++++++++++---------- static/css/dracula.css | 26 ++++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 12 deletions(-) create mode 100644 static/css/dracula.css diff --git a/api.php b/api.php index 0ea6c91..81338f4 100644 --- a/api.php +++ b/api.php @@ -44,7 +44,7 @@ { require "engines/bittorrent/merge.php"; $results = get_merged_torrent_results($query_encoded); - } + } break; case 4: if ($config->disable_hidden_service_search) @@ -53,7 +53,7 @@ { require "engines/ahmia/hidden_service.php"; $results = get_hidden_service_results($query_encoded); - } + } break; default: require "engines/google/text.php"; diff --git a/settings.php b/settings.php index e62b9c5..36f7b13 100644 --- a/settings.php +++ b/settings.php @@ -1,21 +1,21 @@ @@ -52,6 +52,7 @@ + @@ -76,7 +77,7 @@

Privacy friendly frontends

For an example if you want to view YouTube without getting spied on, click on "Invidious", find the instance that is most suitable for you then paste it in (correct format: https://example.com)

-
+
array("https://github.com/zyachel/libremdb", "IMDb"), "breezewiki" => array("https://gitdab.com/cadence/breezewiki", "Fandom") ); - + foreach($frontends as $frontend => $info) { echo "
"; diff --git a/static/css/dracula.css b/static/css/dracula.css new file mode 100644 index 0000000..b4fa057 --- /dev/null +++ b/static/css/dracula.css @@ -0,0 +1,26 @@ +:root { + --main-bg: #282A36; + --main-fg: #F8F8F2; + + --result-link-fg: #8BE9FD; + --result-fg: #6272A4; + + --button-bg: #44475A; + + --special-result-border: opacity 50; + --special-text-background: #44475A; + --special-text-color: #F8F8F2; + + --search-container-text-color: #F8F8F2; + --search-container-background-color: #44475A; + --search-container-background-border: #6272A4; + + --search-form-background-color: #21222C; + + --border: #6272A4; + + --footer-fg: #C2C2C2; + --footer-bg: #44475A; + + color-scheme: dark; +}