mirror of https://github.com/supernets/LibreY.git
Merge pull request #119 from Ratakor/main
add dracula theme and fix useless whitespace
This commit is contained in:
commit
985bdf44ae
4
api.php
4
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";
|
||||
|
|
21
settings.php
21
settings.php
|
@ -1,21 +1,21 @@
|
|||
<?php
|
||||
$config = require "config.php";
|
||||
|
||||
|
||||
|
||||
|
||||
if (isset($_REQUEST["save"]) || isset($_REQUEST["reset"]))
|
||||
{
|
||||
if (isset($_SERVER["HTTP_COOKIE"]))
|
||||
if (isset($_SERVER["HTTP_COOKIE"]))
|
||||
{
|
||||
$cookies = explode(";", $_SERVER["HTTP_COOKIE"]);
|
||||
foreach($cookies as $cookie)
|
||||
foreach($cookies as $cookie)
|
||||
{
|
||||
$parts = explode("=", $cookie);
|
||||
$name = trim($parts[0]);
|
||||
setcookie($name, "", time() - 1000);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (isset($_REQUEST["save"]))
|
||||
{
|
||||
|
@ -27,13 +27,13 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (isset($_REQUEST["save"]) || isset($_REQUEST["reset"]))
|
||||
{
|
||||
header("Location: ./settings.php");
|
||||
die();
|
||||
}
|
||||
|
||||
|
||||
require "misc/header.php";
|
||||
?>
|
||||
|
||||
|
@ -52,6 +52,7 @@
|
|||
<option value=\"amoled\">AMOLED</option>
|
||||
<option value=\"light\">Light</option>
|
||||
<option value=\"auto\">Auto</option>
|
||||
<option value=\"dracula\">Dracula</option>
|
||||
<option value=\"nord\">Nord</option>
|
||||
<option value=\"night_owl\">Night Owl</option>
|
||||
<option value=\"discord\">Discord</option>
|
||||
|
@ -76,7 +77,7 @@
|
|||
</div>
|
||||
<h2>Privacy friendly frontends</h2>
|
||||
<p>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)</p>
|
||||
<div class="instances-container">
|
||||
<div class="instances-container">
|
||||
<?php
|
||||
|
||||
$frontends = array(
|
||||
|
@ -90,7 +91,7 @@
|
|||
"libremdb" => array("https://github.com/zyachel/libremdb", "IMDb"),
|
||||
"breezewiki" => array("https://gitdab.com/cadence/breezewiki", "Fandom")
|
||||
);
|
||||
|
||||
|
||||
foreach($frontends as $frontend => $info)
|
||||
{
|
||||
echo "<div>";
|
||||
|
|
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue