diff options
author | jelemux <jeremias.weber@protonmail.com> | 2020-11-25 10:31:04 +0100 |
---|---|---|
committer | jelemux <jeremias.weber@protonmail.com> | 2020-11-25 10:31:04 +0100 |
commit | b1ba906491a1ed396d47b0751f080fef991ea344 (patch) | |
tree | c8e306c217dbdc352e66000822d8fc7e4cdc55fb /src/view/main.rs | |
parent | 5a03734b6767fed04c0913384584d8f59dc597ea (diff) | |
download | wasm-card-b1ba906491a1ed396d47b0751f080fef991ea344.tar.gz wasm-card-b1ba906491a1ed396d47b0751f080fef991ea344.tar.bz2 |
Struktur umbauen
Diffstat (limited to 'src/view/main.rs')
-rw-r--r-- | src/view/main.rs | 16 |
1 files changed, 10 insertions, 6 deletions
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( |