cleaned up data structure, cleaned up some code

This commit is contained in:
Gavin McDonald
2025-05-06 14:12:04 -04:00
parent 1ee183557c
commit 2d5dbd4140
5 changed files with 44 additions and 50 deletions

View File

@@ -1,12 +1,12 @@
defmodule LabelmakerWeb.Constants do
@defaults %{
"label" => "64 character maximum",
"font" => "Helvetica",
"color" => "black",
"size" => "24"
label: "64 character maximum",
font: "Helvetica",
color: "black",
size: "24"
}
@permitted_keys Map.keys(@defaults)
@permitted_keys @defaults |> Map.keys() |> Enum.map(&Atom.to_string/1)
@colors System.cmd("magick", ["-list", "color"])
|> elem(0)