rename silver/charcoal to gray

This commit is contained in:
Luna D. 2024-12-17 20:07:30 +01:00
parent d43f7bd7a7
commit e362745981
No known key found for this signature in database
GPG key ID: 4B1C63448394F688
4 changed files with 2 additions and 5 deletions

View file

@ -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

View file

@ -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