From b1ba906491a1ed396d47b0751f080fef991ea344 Mon Sep 17 00:00:00 2001 From: jelemux Date: Wed, 25 Nov 2020 10:31:04 +0100 Subject: Struktur umbauen --- src/view/main.rs | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'src/view/main.rs') diff --git a/src/view/main.rs b/src/view/main.rs index e1753b4..684db84 100644 --- a/src/view/main.rs +++ b/src/view/main.rs @@ -8,11 +8,11 @@ use qrcodegen::QrCode; use qrcodegen::QrCodeEcc; use yew::prelude::*; use vcard::{VCard, VCardError}; -use super::input_objects::utility::*; -use super::input_objects::name::Name; -use super::input_objects::address::Address; -use super::input_objects::telephone::Telephone; -use super::input_objects::VCardPropertyInputObject; +use crate::viewmodel::utility::*; +use crate::viewmodel::name::Name; +use crate::viewmodel::address::Address; +use crate::viewmodel::telephone::Telephone; +use crate::viewmodel::VCardPropertyInputObject; pub struct MainView { @@ -312,7 +312,11 @@ impl MainView { doc.set_title("BCard test"); doc.set_minimal_conformance(); - doc.set_margins(10); + + let mut decorator = genpdf::SimplePageDecorator::new(); + decorator.set_margins(10); + doc.set_page_decorator(decorator); + doc.set_line_spacing(1.25); doc.push( -- cgit v1.2.3