Skip to content

Commit

Permalink
fix: fix simple and dewdrop themes
Browse files Browse the repository at this point in the history
  • Loading branch information
OrangeX4 committed Feb 4, 2024
1 parent a6791b8 commit 0c4b347
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions themes/dewdrop.typ
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
if self.d-mini-slides.section {
for slide in section.children.filter(it => it.kind == "slide") {
final-count += 1
if final-count == current-count {
if i == current-i and final-count == current-count {
[#link(slide.loc, sym.circle.filled)<touying-link>]
} else {
[#link(slide.loc, sym.circle)<touying-link>]
Expand All @@ -196,7 +196,7 @@
for subsection in section.children.filter(it => it.kind != "slide") {
for slide in subsection.children {
final-count += 1
if final-count == current-count {
if i == current-i and final-count == current-count {
[#link(slide.loc, sym.circle.filled)<touying-link>]
} else {
[#link(slide.loc, sym.circle)<touying-link>]
Expand Down
6 changes: 2 additions & 4 deletions themes/simple.typ
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
#import "../utils/states.typ"

#let slide(self: utils.empty-object, footer: auto, ..args) = {
self.page-args = self.page-args + (
footer-descent: 1em,
header-ascent: 1em,
)
if footer != auto {
self.simple-footer = footer
}
Expand Down Expand Up @@ -83,6 +79,8 @@
fill: self.colors.neutral-lightest,
header: header,
footer: footer,
footer-descent: 1em,
header-ascent: 1em,
)
// register methods
self.methods.slide = slide
Expand Down

0 comments on commit 0c4b347

Please sign in to comment.