From 9e4066658cf5e15a25a4550e4932e5b14a18b971 Mon Sep 17 00:00:00 2001 From: curlpipe <11898833+curlpipe@users.noreply.github.com> Date: Mon, 3 May 2021 17:48:21 +0100 Subject: [PATCH] Added 2 new themes: violet & gold (#212) * Added 2 new themes: violet & gold * Increased contrast in Violet theme * Changed accent colour on violet theme --- Cargo.lock | 4 +++- static/style.css | 28 ++++++++++++++++++++++++++++ templates/settings.html | 2 +- 3 files changed, 32 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a9da2bf..d406ad2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,5 +1,7 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. +version = 3 + [[package]] name = "aho-corasick" version = "0.7.15" @@ -605,7 +607,7 @@ checksum = "9385f66bf6105b241aa65a61cb923ef20efc665cb9f9bb50ac2f0c4b7f378d41" [[package]] name = "libreddit" -version = "0.10.5" +version = "0.10.6" dependencies = [ "askama", "async-recursion", diff --git a/static/style.css b/static/style.css index d7f4e5a..4690d17 100644 --- a/static/style.css +++ b/static/style.css @@ -107,6 +107,34 @@ --shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } +/* Violet theme setting */ +.violet { + --accent: #7c71dd; + --green: #5cff85; + --text: white; + --foreground: #1F2347; + --background: #12152b; + --outside: #181c3a; + --post: #181c3a; + --panel-border: 1px solid #1F2347; + --highlighted: #1F2347; + --shadow: 0 2px 5px rgba(0, 0, 0, 0.5); +} + +/* Gold theme setting */ +.gold { + --accent: #f2aa4c; + --green: #5cff85; + --text: white; + --foreground: #234; + --background: #101820; + --outside: #1b2936; + --post: #1b2936; + --panel-border: 0px solid black; + --highlighted: #234; + --shadow: 0 2px 5px rgba(0, 0, 0, 0.5); +} + /* General */ ::selection { diff --git a/templates/settings.html b/templates/settings.html index 863a012..49cb65e 100644 --- a/templates/settings.html +++ b/templates/settings.html @@ -15,7 +15,7 @@
Interface