Rename themes
This commit is contained in:
		
							parent
							
								
									295a93e5ec
								
							
						
					
					
						commit
						c9da638366
					
				| 
						 | 
				
			
			@ -11,5 +11,5 @@ directory = "./tmp"
 | 
			
		|||
profileMinutes = 10  # how long to cache profiles
 | 
			
		||||
 | 
			
		||||
[Config]
 | 
			
		||||
defaultTheme = "Dark"
 | 
			
		||||
defaultTheme = "Nitter"
 | 
			
		||||
hmacKey = "secretkey" # for signing video urls
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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")
 | 
			
		||||
  )
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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)",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue