move theme converter function to a separate file
parent
984a4acc7b
commit
080d9a8dc7
@ -0,0 +1,12 @@
|
||||
def convert_theme(theme)
|
||||
case theme
|
||||
when "true"
|
||||
"dark"
|
||||
when "false"
|
||||
"light"
|
||||
when "", nil
|
||||
nil
|
||||
else
|
||||
theme
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue