mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
Add theme selector to preferences and return the previous black theme as an alternative
This commit is contained in:
parent
2e9a0d2b4c
commit
9982217ee9
18 changed files with 64 additions and 22 deletions
9
lib/common.rb
Normal file
9
lib/common.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
module Common
|
||||
def set_theme
|
||||
if prefs && prefs.theme
|
||||
@user_theme = prefs.theme.parameterize.underscore
|
||||
else
|
||||
@user_theme = SITE_CONFIG['default_theme'] || 'light_blue'
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue