Drop all mentions of vizia point scale
It does use pixels instead of points.
This commit is contained in:
parent
884683a190
commit
922a81f654
|
@ -3,7 +3,6 @@
|
||||||
:root {
|
:root {
|
||||||
background-color: #fafafa;
|
background-color: #fafafa;
|
||||||
color: #0a0a0a;
|
color: #0a0a0a;
|
||||||
/* VIZIA uses points instead of pixels, this is 20px */
|
|
||||||
font-size: 15;
|
font-size: 15;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,9 +22,6 @@ use std::sync::Arc;
|
||||||
|
|
||||||
use crate::CrispParams;
|
use crate::CrispParams;
|
||||||
|
|
||||||
/// VIZIA uses points instead of pixels for text
|
|
||||||
const POINT_SCALE: f32 = 0.75;
|
|
||||||
|
|
||||||
#[derive(Lens)]
|
#[derive(Lens)]
|
||||||
struct Data {
|
struct Data {
|
||||||
params: Arc<CrispParams>,
|
params: Arc<CrispParams>,
|
||||||
|
@ -55,7 +52,7 @@ pub(crate) fn create(
|
||||||
VStack::new(cx, |cx| {
|
VStack::new(cx, |cx| {
|
||||||
Label::new(cx, "Crisp")
|
Label::new(cx, "Crisp")
|
||||||
.font(assets::NOTO_SANS_THIN)
|
.font(assets::NOTO_SANS_THIN)
|
||||||
.font_size(40.0 * POINT_SCALE)
|
.font_size(30.0)
|
||||||
.height(Pixels(50.0))
|
.height(Pixels(50.0))
|
||||||
.child_top(Stretch(1.0))
|
.child_top(Stretch(1.0))
|
||||||
.child_bottom(Pixels(0.0))
|
.child_bottom(Pixels(0.0))
|
||||||
|
|
|
@ -26,9 +26,6 @@ use crate::DiopserParams;
|
||||||
|
|
||||||
mod button;
|
mod button;
|
||||||
|
|
||||||
/// VIZIA uses points instead of pixels for text
|
|
||||||
const POINT_SCALE: f32 = 0.75;
|
|
||||||
|
|
||||||
const EDITOR_WIDTH: u32 = 600;
|
const EDITOR_WIDTH: u32 = 600;
|
||||||
const EDITOR_HEIGHT: u32 = 490;
|
const EDITOR_HEIGHT: u32 = 490;
|
||||||
|
|
||||||
|
@ -80,7 +77,7 @@ fn top_bar(cx: &mut Context) {
|
||||||
HStack::new(cx, |cx| {
|
HStack::new(cx, |cx| {
|
||||||
Label::new(cx, "Diopser")
|
Label::new(cx, "Diopser")
|
||||||
.font(assets::NOTO_SANS_THIN)
|
.font(assets::NOTO_SANS_THIN)
|
||||||
.font_size(50.0 * POINT_SCALE)
|
.font_size(40.0)
|
||||||
.top(Pixels(-2.0))
|
.top(Pixels(-2.0))
|
||||||
.left(Pixels(7.0));
|
.left(Pixels(7.0));
|
||||||
|
|
||||||
|
|
|
@ -9,9 +9,6 @@ use std::time::Duration;
|
||||||
|
|
||||||
use crate::GainParams;
|
use crate::GainParams;
|
||||||
|
|
||||||
/// VIZIA uses points instead of pixels for text
|
|
||||||
const POINT_SCALE: f32 = 0.75;
|
|
||||||
|
|
||||||
const STYLE: &str = r#""#;
|
const STYLE: &str = r#""#;
|
||||||
|
|
||||||
#[derive(Lens)]
|
#[derive(Lens)]
|
||||||
|
@ -49,7 +46,7 @@ pub(crate) fn create(
|
||||||
VStack::new(cx, |cx| {
|
VStack::new(cx, |cx| {
|
||||||
Label::new(cx, "Gain GUI")
|
Label::new(cx, "Gain GUI")
|
||||||
.font(assets::NOTO_SANS_THIN)
|
.font(assets::NOTO_SANS_THIN)
|
||||||
.font_size(40.0 * POINT_SCALE)
|
.font_size(30.0)
|
||||||
.height(Pixels(50.0))
|
.height(Pixels(50.0))
|
||||||
.child_top(Stretch(1.0))
|
.child_top(Stretch(1.0))
|
||||||
.child_bottom(Pixels(0.0));
|
.child_bottom(Pixels(0.0));
|
||||||
|
|
|
@ -22,9 +22,6 @@ use std::sync::Arc;
|
||||||
|
|
||||||
use crate::SpectralCompressorParams;
|
use crate::SpectralCompressorParams;
|
||||||
|
|
||||||
/// VIZIA uses points instead of pixels for text
|
|
||||||
const POINT_SCALE: f32 = 0.75;
|
|
||||||
|
|
||||||
#[derive(Lens)]
|
#[derive(Lens)]
|
||||||
struct Data {
|
struct Data {
|
||||||
params: Arc<SpectralCompressorParams>,
|
params: Arc<SpectralCompressorParams>,
|
||||||
|
@ -60,7 +57,7 @@ pub(crate) fn create(
|
||||||
VStack::new(cx, |cx| {
|
VStack::new(cx, |cx| {
|
||||||
Label::new(cx, "Spectral Compressor")
|
Label::new(cx, "Spectral Compressor")
|
||||||
.font(assets::NOTO_SANS_THIN)
|
.font(assets::NOTO_SANS_THIN)
|
||||||
.font_size(40.0 * POINT_SCALE)
|
.font_size(30.0)
|
||||||
.height(Pixels(50.0))
|
.height(Pixels(50.0))
|
||||||
.child_top(Stretch(1.0))
|
.child_top(Stretch(1.0))
|
||||||
.child_bottom(Pixels(0.0))
|
.child_bottom(Pixels(0.0))
|
||||||
|
@ -71,7 +68,7 @@ pub(crate) fn create(
|
||||||
VStack::new(cx, |cx| {
|
VStack::new(cx, |cx| {
|
||||||
Label::new(cx, "Globals")
|
Label::new(cx, "Globals")
|
||||||
.font(assets::NOTO_SANS_THIN)
|
.font(assets::NOTO_SANS_THIN)
|
||||||
.font_size(30.0 * POINT_SCALE)
|
.font_size(23.0)
|
||||||
.left(Stretch(1.0))
|
.left(Stretch(1.0))
|
||||||
.right(Pixels(10.0))
|
.right(Pixels(10.0))
|
||||||
.bottom(Pixels(-10.0));
|
.bottom(Pixels(-10.0));
|
||||||
|
@ -84,7 +81,7 @@ pub(crate) fn create(
|
||||||
VStack::new(cx, |cx| {
|
VStack::new(cx, |cx| {
|
||||||
Label::new(cx, "Threshold")
|
Label::new(cx, "Threshold")
|
||||||
.font(assets::NOTO_SANS_THIN)
|
.font(assets::NOTO_SANS_THIN)
|
||||||
.font_size(30.0 * POINT_SCALE)
|
.font_size(23.0)
|
||||||
.left(Stretch(1.0))
|
.left(Stretch(1.0))
|
||||||
.right(Pixels(10.0))
|
.right(Pixels(10.0))
|
||||||
.bottom(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 \
|
you use this in a project, make sure to bounce things to audio just in \
|
||||||
case they'll sound different later.",
|
case they'll sound different later.",
|
||||||
)
|
)
|
||||||
.font_size(15.0 * POINT_SCALE)
|
.font_size(23.0)
|
||||||
.left(Pixels(15.0))
|
.left(Pixels(15.0))
|
||||||
.right(Pixels(5.0))
|
.right(Pixels(5.0))
|
||||||
.width(Stretch(1.0));
|
.width(Stretch(1.0));
|
||||||
|
@ -112,7 +109,7 @@ pub(crate) fn create(
|
||||||
VStack::new(cx, |cx| {
|
VStack::new(cx, |cx| {
|
||||||
Label::new(cx, "Upwards")
|
Label::new(cx, "Upwards")
|
||||||
.font(assets::NOTO_SANS_THIN)
|
.font(assets::NOTO_SANS_THIN)
|
||||||
.font_size(30.0 * POINT_SCALE)
|
.font_size(23.0)
|
||||||
.left(Stretch(1.0))
|
.left(Stretch(1.0))
|
||||||
.right(Pixels(10.0))
|
.right(Pixels(10.0))
|
||||||
.bottom(Pixels(-10.0));
|
.bottom(Pixels(-10.0));
|
||||||
|
@ -147,7 +144,7 @@ pub(crate) fn create(
|
||||||
VStack::new(cx, |cx| {
|
VStack::new(cx, |cx| {
|
||||||
Label::new(cx, "Downwards")
|
Label::new(cx, "Downwards")
|
||||||
.font(assets::NOTO_SANS_THIN)
|
.font(assets::NOTO_SANS_THIN)
|
||||||
.font_size(30.0 * POINT_SCALE)
|
.font_size(23.0)
|
||||||
.left(Stretch(1.0))
|
.left(Stretch(1.0))
|
||||||
.right(Pixels(10.0))
|
.right(Pixels(10.0))
|
||||||
.bottom(Pixels(-10.0));
|
.bottom(Pixels(-10.0));
|
||||||
|
|
Loading…
Reference in a new issue