unleash the sizes
This commit is contained in:
1 parent
06cfeaac6b
commit
5f2dffc189
5 files changed
+24
-24
No files matched your search
+2
-2
@@ -12,7 +12,7 @@ pub struct Text {
|
||||
}
|
||||
|
||||
impl Text {
|
||||
pub fn font_size(mut self, size: impl UiNum) -> Self {
|
||||
pub fn size(mut self, size: impl UiNum) -> Self {
|
||||
self.attrs.font_size = size.to_f32();
|
||||
self.attrs.line_height = self.attrs.font_size * 1.1;
|
||||
self
|
||||
@@ -97,7 +97,7 @@ pub struct TextBuilder {
|
||||
}
|
||||
|
||||
impl TextBuilder {
|
||||
pub fn font_size(mut self, size: impl UiNum) -> Self {
|
||||
pub fn size(mut self, size: impl UiNum) -> Self {
|
||||
self.attrs.font_size = size.to_f32();
|
||||
self.attrs.line_height = self.attrs.font_size * 1.1;
|
||||
self
|
||||
|
||||
Reference in new issue
Block a user