ADD fade transition choice
This commit is contained in:
parent
6732c64d5f
commit
d9b32d86f3
@ -7,6 +7,7 @@
|
|||||||
authors: [],
|
authors: [],
|
||||||
date: datetime.today(),
|
date: datetime.today(),
|
||||||
duration: none,
|
duration: none,
|
||||||
|
fade: true,
|
||||||
handout: false,
|
handout: false,
|
||||||
doc,
|
doc,
|
||||||
) = {
|
) = {
|
||||||
@ -36,17 +37,23 @@
|
|||||||
enable-handout-mode(true)
|
enable-handout-mode(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let transition = if fade {
|
||||||
|
"fade"
|
||||||
|
} else {
|
||||||
|
"none"
|
||||||
|
}
|
||||||
|
|
||||||
if duration != none{
|
if duration != none{
|
||||||
pdfpc.config(
|
pdfpc.config(
|
||||||
duration-minutes: duration,
|
duration-minutes: duration,
|
||||||
default-transition: (
|
default-transition: (
|
||||||
type: "fade",
|
type: transition,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
pdfpc.config(
|
pdfpc.config(
|
||||||
default-transition: (
|
default-transition: (
|
||||||
type: "fade",
|
type: transition,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user