1
0
Fork 0

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

@ -3,7 +3,6 @@
:root {
background-color: #fafafa;
color: #0a0a0a;
/* VIZIA uses points instead of pixels, this is 20px */
font-size: 15;
}

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))

View file

@ -26,9 +26,6 @@ use crate::DiopserParams;
mod button;
/// VIZIA uses points instead of pixels for text
const POINT_SCALE: f32 = 0.75;
const EDITOR_WIDTH: u32 = 600;
const EDITOR_HEIGHT: u32 = 490;
@ -80,7 +77,7 @@ fn top_bar(cx: &mut Context) {
HStack::new(cx, |cx| {
Label::new(cx, "Diopser")
.font(assets::NOTO_SANS_THIN)
.font_size(50.0 * POINT_SCALE)
.font_size(40.0)
.top(Pixels(-2.0))
.left(Pixels(7.0));

View file

@ -9,9 +9,6 @@ use std::time::Duration;
use crate::GainParams;
/// VIZIA uses points instead of pixels for text
const POINT_SCALE: f32 = 0.75;
const STYLE: &str = r#""#;
#[derive(Lens)]
@ -49,7 +46,7 @@ pub(crate) fn create(
VStack::new(cx, |cx| {
Label::new(cx, "Gain GUI")
.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));

View file

@ -22,9 +22,6 @@ use std::sync::Arc;
use crate::SpectralCompressorParams;
/// VIZIA uses points instead of pixels for text
const POINT_SCALE: f32 = 0.75;
#[derive(Lens)]
struct Data {
params: Arc<SpectralCompressorParams>,
@ -60,7 +57,7 @@ pub(crate) fn create(
VStack::new(cx, |cx| {
Label::new(cx, "Spectral Compressor")
.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))
@ -71,7 +68,7 @@ pub(crate) fn create(
VStack::new(cx, |cx| {
Label::new(cx, "Globals")
.font(assets::NOTO_SANS_THIN)
.font_size(30.0 * POINT_SCALE)
.font_size(23.0)
.left(Stretch(1.0))
.right(Pixels(10.0))
.bottom(Pixels(-10.0));
@ -84,7 +81,7 @@ pub(crate) fn create(
VStack::new(cx, |cx| {
Label::new(cx, "Threshold")
.font(assets::NOTO_SANS_THIN)
.font_size(30.0 * POINT_SCALE)
.font_size(23.0)
.left(Stretch(1.0))
.right(Pixels(10.0))
.bottom(Pixels(-10.0));
@ -97,7 +94,7 @@ pub(crate) fn create(
you use this in a project, make sure to bounce things to audio just in \
case they'll sound different later.",
)
.font_size(15.0 * POINT_SCALE)
.font_size(23.0)
.left(Pixels(15.0))
.right(Pixels(5.0))
.width(Stretch(1.0));
@ -112,7 +109,7 @@ pub(crate) fn create(
VStack::new(cx, |cx| {
Label::new(cx, "Upwards")
.font(assets::NOTO_SANS_THIN)
.font_size(30.0 * POINT_SCALE)
.font_size(23.0)
.left(Stretch(1.0))
.right(Pixels(10.0))
.bottom(Pixels(-10.0));
@ -147,7 +144,7 @@ pub(crate) fn create(
VStack::new(cx, |cx| {
Label::new(cx, "Downwards")
.font(assets::NOTO_SANS_THIN)
.font_size(30.0 * POINT_SCALE)
.font_size(23.0)
.left(Stretch(1.0))
.right(Pixels(10.0))
.bottom(Pixels(-10.0));