Drop all mentions of vizia point scale

It does use pixels instead of points.
This commit is contained in:
Robbert van der Helm
2022-11-11 16:21:19 +01:00
parent 884683a190
commit 922a81f654
5 changed files with 9 additions and 22 deletions

View File

@@ -22,9 +22,6 @@ use std::sync::Arc;
use crate::CrispParams;
/// VIZIA uses points instead of pixels for text
const POINT_SCALE: f32 = 0.75;
#[derive(Lens)]
struct Data {
params: Arc<CrispParams>,
@@ -55,7 +52,7 @@ pub(crate) fn create(
VStack::new(cx, |cx| {
Label::new(cx, "Crisp")
.font(assets::NOTO_SANS_THIN)
.font_size(40.0 * POINT_SCALE)
.font_size(30.0)
.height(Pixels(50.0))
.child_top(Stretch(1.0))
.child_bottom(Pixels(0.0))