From 8faa63c3c6ed4c0c66c4c78031ae20244bc5f0fd Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Tue, 28 Nov 2023 19:51:17 -0800 Subject: [PATCH] Convert config page buttons to use stronger yellow --- src/interface/desktop/assets/khoj.css | 3 +++ src/interface/desktop/config.html | 4 ++-- src/khoj/interface/web/assets/khoj.css | 3 +++ src/khoj/interface/web/base_config.html | 6 ++++++ src/khoj/interface/web/config.html | 1 - 5 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/interface/desktop/assets/khoj.css b/src/interface/desktop/assets/khoj.css index accbfd58..803f5175 100644 --- a/src/interface/desktop/assets/khoj.css +++ b/src/interface/desktop/assets/khoj.css @@ -8,6 +8,7 @@ --primary-inverse: rgba(0, 0, 0, 0.75); --background-color: #f5f4f3; --main-text-color: #475569; + --summer-sun: #fcc50b; --water: #44b9da; --leaf: #7b990a; --flower: #d1684e; @@ -23,6 +24,7 @@ --primary-inverse: rgba(0, 0, 0, 0.75); --background-color: #f5f4f3; --main-text-color: #475569; + --summer-sun: #fcc50b; --water: #44b9da; --leaf: #7b990a; --flower: #d1684e; @@ -37,6 +39,7 @@ --primary-inverse: rgba(0, 0, 0, 0.75); --background-color: #f5f4f3; --main-text-color: #475569; + --summer-sun: #fcc50b; --water: #44b9da; --leaf: #7b990a; --flower: #d1684e; diff --git a/src/interface/desktop/config.html b/src/interface/desktop/config.html index f8ecb06f..3923f7fd 100644 --- a/src/interface/desktop/config.html +++ b/src/interface/desktop/config.html @@ -339,7 +339,7 @@ cursor: pointer; } button.sync-data { - background-color: var(--primary); + background-color: var(--primary-hover); border: none; color: var(--main-text-color); padding: 12px; @@ -354,7 +354,7 @@ } button.sync-data:hover { - background-color: var(--primary-hover); + background-color: var(--summer-sun); box-shadow: 0px 3px 0px var(--background-color); } .sync-force-toggle { diff --git a/src/khoj/interface/web/assets/khoj.css b/src/khoj/interface/web/assets/khoj.css index 4a8fa6ed..d0c6f989 100644 --- a/src/khoj/interface/web/assets/khoj.css +++ b/src/khoj/interface/web/assets/khoj.css @@ -8,6 +8,7 @@ --primary-inverse: rgba(0, 0, 0, 0.75); --background-color: #f5f4f3; --main-text-color: #475569; + --summer-sun: #fcc50b; --water: #44b9da; --leaf: #7b990a; --flower: #ffaeae; @@ -23,6 +24,7 @@ --primary-inverse: rgba(0, 0, 0, 0.75); --background-color: #f5f4f3; --main-text-color: #475569; + --summer-sun: #fcc50b; --water: #44b9da; --leaf: #7b990a; --flower: #ffaeae; @@ -37,6 +39,7 @@ --primary-inverse: rgba(0, 0, 0, 0.75); --background-color: #f5f4f3; --main-text-color: #475569; + --summer-sun: #fcc50b; --water: #44b9da; --leaf: #7b990a; --flower: #ffaeae; diff --git a/src/khoj/interface/web/base_config.html b/src/khoj/interface/web/base_config.html index d9546249..723f8aaa 100644 --- a/src/khoj/interface/web/base_config.html +++ b/src/khoj/interface/web/base_config.html @@ -126,6 +126,12 @@ border-radius: 4px; overflow: hidden; } + div.finalize-buttons button { + background-color: var(--primary-hover); + } + div.finalize-buttons button:hover { + background-color: var(--summer-sun); + } div#features-hint-text { width: 640px; opacity: 0; diff --git a/src/khoj/interface/web/config.html b/src/khoj/interface/web/config.html index 96d82131..3ce9c9cc 100644 --- a/src/khoj/interface/web/config.html +++ b/src/khoj/interface/web/config.html @@ -267,7 +267,6 @@ }; function clearContentType(content_source) { - fetch('/api/config/data/content-source/' + content_source, { method: 'DELETE', headers: {