소스 검색

Rename themes

Zed 6 년 전
부모
커밋
c9da638366
6개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      nitter.conf
  2. 0 0
      public/css/themes/black.css
  3. 0 0
      public/css/themes/nitter.css
  4. 0 0
      public/css/themes/twitter.css
  5. 1 1
      src/config.nim
  6. 1 1
      src/prefs_impl.nim

+ 1 - 1
nitter.conf

@@ -11,5 +11,5 @@ directory = "./tmp"
 profileMinutes = 10  # how long to cache profiles
 
 [Config]
-defaultTheme = "Dark"
+defaultTheme = "Nitter"
 hmacKey = "secretkey" # for signing video urls

+ 0 - 0
public/css/themes/high_contrast.css → public/css/themes/black.css


+ 0 - 0
public/css/themes/dark.css → public/css/themes/nitter.css


+ 0 - 0
public/css/themes/light.css → public/css/themes/twitter.css


+ 1 - 1
src/config.nim

@@ -23,6 +23,6 @@ proc getConfig*(path: string): Config =
     cacheDir: cfg.get("Cache", "directory", "/tmp/nitter"),
     profileCacheTime: cfg.get("Cache", "profileMinutes", 10),
 
-    defaultTheme: cfg.get("Config", "defaultTheme", "Dark"),
+    defaultTheme: cfg.get("Config", "defaultTheme", "Nitter"),
     hmacKey: cfg.get("Config", "hmacKey", "secretkey")
   )

+ 1 - 1
src/prefs_impl.nim

@@ -52,7 +52,7 @@ const prefList*: OrderedTable[string, seq[Pref]] = {
 
   "Display": @[
     Pref(kind: select, name: "theme", label: "Theme",
-         defaultOption: "Dark"),
+         defaultOption: "Nitter"),
 
     Pref(kind: checkbox, name: "hideTweetStats",
          label: "Hide tweet stats (replies, retweets, likes)",