mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Add constants for Diopser's editor
This commit is contained in:
@@ -29,6 +29,9 @@ 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;
|
||||
|
||||
#[derive(Lens)]
|
||||
struct Data {
|
||||
params: Arc<DiopserParams>,
|
||||
@@ -42,7 +45,7 @@ impl Model for Data {}
|
||||
|
||||
// Makes sense to also define this here, makes it a bit easier to keep track of
|
||||
pub(crate) fn default_state() -> Arc<ViziaState> {
|
||||
ViziaState::from_size(600, 490)
|
||||
ViziaState::from_size(EDITOR_WIDTH, EDITOR_HEIGHT)
|
||||
}
|
||||
|
||||
pub(crate) fn create(
|
||||
|
||||
Reference in New Issue
Block a user