mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-31 19:36:44 +01:00
rename silver/charcoal to gray
This commit is contained in:
parent
d43f7bd7a7
commit
e362745981
4 changed files with 2 additions and 5 deletions
|
@ -605,7 +605,7 @@ defmodule Philomena.Users.User do
|
||||||
do: user.otp_backup_codes |> Enum.reject(&Password.verify_pass(token, &1))
|
do: user.otp_backup_codes |> Enum.reject(&Password.verify_pass(token, &1))
|
||||||
|
|
||||||
def theme_colors do
|
def theme_colors do
|
||||||
~W(red orange yellow blue green purple cyan pink silver)
|
~W(red orange yellow blue green purple cyan pink gray)
|
||||||
end
|
end
|
||||||
|
|
||||||
def theme_names do
|
def theme_names do
|
||||||
|
|
|
@ -11,10 +11,7 @@ defmodule PhilomenaWeb.SettingView do
|
||||||
|
|
||||||
def theme_colors do
|
def theme_colors do
|
||||||
Enum.map(User.theme_colors(), fn name ->
|
Enum.map(User.theme_colors(), fn name ->
|
||||||
case name do
|
{String.capitalize(name), name}
|
||||||
"silver" -> {"Silver/Charcoal", name}
|
|
||||||
_ -> {String.capitalize(name), name}
|
|
||||||
end
|
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue