making songs almost almost work
This commit is contained in:
parent
9bd657f139
commit
717968a178
2 changed files with 111 additions and 33 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue