ui: Add buffer_font method to labels (#24479)

Now you don't need to wrap the `Label` in a `div` anymore 

Release Notes:

- N/A

Co-authored-by: Danilo <danilo@zed.dev>
This commit is contained in:
Agus Zubiaga
2025-02-09 15:23:39 -03:00
committed by GitHub
co-authored by Danilo
parent 6ee447ee58
commit 56cfc60875
4 changed files with 26 additions and 0 deletions
+6
View File
@@ -86,3 +86,9 @@ impl Color {
}
}
}
impl From<Hsla> for Color {
fn from(color: Hsla) -> Self {
Color::Custom(color)
}
}