From 9e7147838f63c0aaee8f5902403bb270b3d23803 Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 3 Dec 2024 16:13:51 +0200 Subject: [PATCH] use Solarized (dark) by default as compatible with dark/light themes --- .../item/page/content/text/gemini/reader/syntax.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/app/browser/window/tab/item/page/content/text/gemini/reader/syntax.rs b/src/app/browser/window/tab/item/page/content/text/gemini/reader/syntax.rs index bee60311..36cdf823 100644 --- a/src/app/browser/window/tab/item/page/content/text/gemini/reader/syntax.rs +++ b/src/app/browser/window/tab/item/page/content/text/gemini/reader/syntax.rs @@ -11,7 +11,17 @@ use syntect::{ Error, }; -pub const DEFAULT_THEME: &str = "base16-ocean.dark"; +/* Default theme + @TODO make optional + base16-ocean.dark + base16-eighties.dark + base16-mocha.dark + base16-ocean.light + InspiredGitHub + Solarized (dark) + Solarized (light) +*/ +pub const DEFAULT_THEME: &str = "Solarized (dark)"; pub struct Syntax { syntax_set: SyntaxSet,