Browse Source

Fixup theme fallbacks

K. Lange 1 year ago
parent
commit
37c187a3cb
4 changed files with 15 additions and 10 deletions
  1. 2 1
      themes/citylights.krk
  2. 2 1
      themes/light.krk
  3. 9 7
      themes/sunsmoke.krk
  4. 2 1
      themes/wombat.krk

+ 2 - 1
themes/citylights.krk

@@ -4,7 +4,8 @@ from themes import ansi
 @defineTheme
 def citylights():
     if checkprop('can_24bit'):
-        return ansi()
+        colorscheme("ansi")
+        return
     setcolor("text-fg","2;151;178;198")
     setcolor("text-bg","2;29;37;44")
     setcolor("alternate-fg","2;45;55;65")

+ 2 - 1
themes/light.krk

@@ -6,7 +6,8 @@ from themes import ansi
 @defineTheme
 def light():
     if checkprop('can_24bit'):
-        return ansi()
+        colorscheme("ansi")
+        return
     setcolor("text-fg","2;57;76;82")
     setcolor("text-bg","2;250;242;218")
     setcolor("alternate-fg","2;144;153;149")

+ 9 - 7
themes/sunsmoke.krk

@@ -4,7 +4,8 @@ from themes import ansi
 @defineTheme
 def sunsmoke256():
     if checkprop('can_256color'):
-        return ansi()
+        colorscheme("ansi")
+        return
     setcolor("text-fg","5;188")
     setcolor("text-bg","5;234")
     setcolor("alternate-fg","5;244")
@@ -26,18 +27,19 @@ def sunsmoke256():
     setcolor("error-bg","5;196")
     setcolor("search-fg","5;234")
     setcolor("search-bg","5;226")
-    setcolor("select-fg","5;234")
-    setcolor("select-bg","5;241")
+    setcolor("select-fg","5;17")
+    setcolor("select-bg","5;109")
     setcolor("red","@1")
     setcolor("green","@2")
     setcolor("bold","5;188;1")
-    setcolor("link","5;74")
+    setcolor("link","5;74;4")
     setcolor("escape","5;79")
 
 @defineTheme
 def sunsmoke():
     if checkprop('can_24bit'):
-        return sunsmoke256()
+        colorscheme("sunsmoke256")
+        return
     setcolor("text-fg", "2;230;230;230")
     setcolor("text-bg", "2;31;31;31")
     setcolor("alternate-fg", "2;122;122;122")
@@ -60,10 +62,10 @@ def sunsmoke():
     setcolor("search-fg", "5;234")
     setcolor("search-bg", "5;226")
     setcolor("select-fg", "2;0;43;54")
-    setcolor("select-bg", "5;241")
+    setcolor("select-bg", "2;147;161;161")
     setcolor("red", "2;222;53;53")
     setcolor("green", "2;55;167;0")
     setcolor("bold", "2;230;230;230;1")
-    setcolor("link", "2;51;162;230")
+    setcolor("link", "2;51;162;230;4")
     setcolor("escape", "2;113;203;173")
 

+ 2 - 1
themes/wombat.krk

@@ -5,7 +5,8 @@ from themes import ansi
 @defineTheme
 def wombat():
     if checkprop('can_256color'):
-        return ansi()
+        colorscheme("ansi")
+        return
     setcolor("text-fg","5;230")
     setcolor("text-bg","5;235")
     setcolor("alternate-fg","5;244")