using a different test file
This commit is contained in:
parent
30e6ce40b5
commit
6b6ebc8c58
2
justfile
2
justfile
|
@ -2,7 +2,7 @@ default:
|
||||||
just --list
|
just --list
|
||||||
build:
|
build:
|
||||||
RUST_LOG=debug cargo build
|
RUST_LOG=debug cargo build
|
||||||
run ui=' ' file='~/dev/lumina-iced/test_presentation.lisp':
|
run ui=' ' file='~/dev/lumina-iced/testypres.lisp':
|
||||||
RUST_LOG=debug cargo run -- {{ui}} {{file}}
|
RUST_LOG=debug cargo run -- {{ui}} {{file}}
|
||||||
clean:
|
clean:
|
||||||
RUST_LOG=debug cargo clean
|
RUST_LOG=debug cargo clean
|
||||||
|
|
52
src/main.rs
52
src/main.rs
|
@ -169,55 +169,7 @@ impl cosmic::Application for App {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
let initial_slide = SlideBuilder::new()
|
let current_slide = slides[0].clone();
|
||||||
.background(
|
|
||||||
Background::try_from(
|
|
||||||
"/home/chris/vids/test/camprules2024.mp4",
|
|
||||||
)
|
|
||||||
.unwrap(),
|
|
||||||
)
|
|
||||||
.text("")
|
|
||||||
.font("Quicksand")
|
|
||||||
.font_size(50)
|
|
||||||
.text_alignment(TextAlignment::MiddleCenter)
|
|
||||||
.video_loop(true)
|
|
||||||
.video_start_time(0.0)
|
|
||||||
.video_end_time(0.0)
|
|
||||||
.build()
|
|
||||||
.expect("oops slide");
|
|
||||||
|
|
||||||
let second_slide = SlideBuilder::new()
|
|
||||||
.background(
|
|
||||||
Background::try_from("/home/chris/pics/frodo.jpg")
|
|
||||||
.unwrap(),
|
|
||||||
)
|
|
||||||
.text("Hello")
|
|
||||||
.font("Quicksand")
|
|
||||||
.font_size(50)
|
|
||||||
.text_alignment(TextAlignment::MiddleCenter)
|
|
||||||
.video_loop(false)
|
|
||||||
.video_start_time(0.0)
|
|
||||||
.video_end_time(0.0)
|
|
||||||
.build()
|
|
||||||
.expect("oops slide");
|
|
||||||
|
|
||||||
let tetrary_slide = SlideBuilder::new()
|
|
||||||
.background(
|
|
||||||
Background::try_from("/home/chris/pics/wojaks/reddit_the_xenomorph_s bigass wojak folder/Chads/ChristianChad_x16_drawing.png")
|
|
||||||
.unwrap(),
|
|
||||||
)
|
|
||||||
.text("Hello")
|
|
||||||
.font("Quicksand")
|
|
||||||
.font_size(50)
|
|
||||||
.text_alignment(TextAlignment::MiddleCenter)
|
|
||||||
.video_loop(false)
|
|
||||||
.video_start_time(0.0)
|
|
||||||
.video_end_time(0.0)
|
|
||||||
.build()
|
|
||||||
.expect("oops slide");
|
|
||||||
|
|
||||||
// let slides =
|
|
||||||
// vec![initial_slide.clone(), second_slide, tetrary_slide];
|
|
||||||
let presenter = Presenter::with_slides(slides.clone());
|
let presenter = Presenter::with_slides(slides.clone());
|
||||||
let mut app = App {
|
let mut app = App {
|
||||||
presenter,
|
presenter,
|
||||||
|
@ -226,7 +178,7 @@ impl cosmic::Application for App {
|
||||||
file: PathBuf::default(),
|
file: PathBuf::default(),
|
||||||
windows: vec![],
|
windows: vec![],
|
||||||
slides,
|
slides,
|
||||||
current_slide: initial_slide,
|
current_slide,
|
||||||
};
|
};
|
||||||
|
|
||||||
let command;
|
let command;
|
||||||
|
|
3
testypres.lisp
Normal file
3
testypres.lisp
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
(slide :background (image :source "~/pics/frodo.jpg" :fit fill)
|
||||||
|
(text "This is frodo" :font-size 70))
|
||||||
|
(slide (video :source "~/vids/test/camprules2024.mp4" :fit contain))
|
Loading…
Reference in a new issue