making songs almost almost work

This commit is contained in:
Chris Cochrun 2024-12-06 09:24:56 -06:00
parent 9bd657f139
commit 717968a178
2 changed files with 111 additions and 33 deletions

View file

@ -27,7 +27,13 @@ pub enum TextAlignment {
impl From<Value> for TextAlignment {
fn from(value: Value) -> Self {
if value == Value::Symbol("middle-center".into()) {
Self::from(&value)
}
}
impl From<&Value> for TextAlignment {
fn from(value: &Value) -> Self {
if value == &Value::Symbol("center".into()) {
Self::MiddleCenter
} else {
Self::TopCenter