From 458eae43dc1164dfb56ac5b9ca416353619c17ec Mon Sep 17 00:00:00 2001
From: StuffedAnon <stuffedgame@gmail.com>
Date: Sat, 23 Mar 2019 10:07:04 +0900
Subject: [PATCH] Add a css class "lightTheme" to the body, so that we can set
 the css style based on the current light theme

e.g. in css you can do:

/* For dark theme */
.hello {
   color: green;
}

/* For light theme */
body.lightTheme .hello {
   color: red;
}
---
 src/gui/PassageDone.tw       | 6 ++++++
 src/uncategorized/options.tw | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)
 create mode 100644 src/gui/PassageDone.tw

diff --git a/src/gui/PassageDone.tw b/src/gui/PassageDone.tw
new file mode 100644
index 00000000000..bc45bd374f8
--- /dev/null
+++ b/src/gui/PassageDone.tw
@@ -0,0 +1,6 @@
+:: PassageDone
+
+<<if window.savedColorMap>>
+	<<addclass "body" "lightTheme">>
+<</if>>
+
diff --git a/src/uncategorized/options.tw b/src/uncategorized/options.tw
index 96522656670..1084a4c697b 100644
--- a/src/uncategorized/options.tw
+++ b/src/uncategorized/options.tw
@@ -45,7 +45,7 @@ This save was created using FC version $ver build $releaseID.
 <br>
 ''COLOR CONTROL''
 <br>
-<<link "flip lighting">><<run flipColors(setup.lightColorMap)>><</link>>
+<<link "flip lighting">><<run flipColors(setup.lightColorMap)>><<goto "Options">><</link>>
 
 <br>
 ''IMAGES''
-- 
GitLab