add dark solarized theme for code preview
This commit is contained in:
parent
7799b5bda6
commit
8cad1c9f4c
7 changed files with 107 additions and 6 deletions
|
@ -128,7 +128,13 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def user_color_scheme_class
|
||||
current_user.dark_scheme ? :black : :white
|
||||
case current_user.color_scheme_id
|
||||
when 1 then 'white'
|
||||
when 2 then 'black'
|
||||
when 3 then 'solarized-dark'
|
||||
else
|
||||
'white'
|
||||
end
|
||||
end
|
||||
|
||||
def show_last_push_widget?(event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue