Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit dc0910b

Browse files
committedMay 11, 2024
fix: fix some bugs
1 parent ce81a9e commit dc0910b

File tree

2 files changed

+24
-22
lines changed

2 files changed

+24
-22
lines changed
 

‎slide.typ

+1-1
Original file line numberDiff line numberDiff line change
@@ -488,10 +488,10 @@
488488
height: page-height,
489489
{
490490
set align(left + top)
491+
set text(size: 24pt, fill: black, weight: "regular")
491492
block(
492493
width: 100%, height: 88pt, inset: (left: 32pt, top: 16pt), outset: 0pt, fill: rgb("#CCCCCC"),
493494
{
494-
set text(24pt)
495495
states.current-section-title
496496
linebreak()
497497
[ --- ]

‎themes/aqua.typ

+23-21
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55

66
#let title-slide(self: none, ..args) = {
77
self = utils.empty-page(self)
8-
self.page-args += (
9-
margin: (top: 30%, left: 17%, right: 17%, bottom: 0%),
10-
background: utils.call-or-display(self, self.aqua-background),
11-
)
8+
self.page-args.margin += (top: 30%, bottom: 0%)
9+
self.page-args.background = utils.call-or-display(self, self.aqua-background)
1210
let info = self.info + args.named()
1311

1412
let content = {
@@ -162,33 +160,37 @@
162160
self.aqua-footer = footer
163161
self.aqua-lang = lang
164162
self.aqua-background = (self) => {
163+
let page-width = if self.page-args.paper == "presentation-16-9" { 841.89pt } else { 793.7pt }
164+
let r = if self.show-notes-on-second-screen == none { 1.0 } else { 0.5 }
165+
let bias1 = - page-width * (1-r)
166+
let bias2 = - page-width * 2 * (1-r)
165167
place(left + top, dx: -15pt, dy: -26pt,
166168
circle(radius: 40pt, fill: self.colors.primary))
167169
place(left + top, dx: 65pt, dy: 12pt,
168170
circle(radius: 21pt, fill: self.colors.primary))
169-
place(left + top, dx: 3%, dy: 15%,
171+
place(left + top, dx: r * 3%, dy: 15%,
170172
circle(radius: 13pt, fill: self.colors.primary))
171-
place(left + top, dx: 2.5%, dy: 27%,
173+
place(left + top, dx: r * 2.5%, dy: 27%,
172174
circle(radius: 8pt, fill: self.colors.primary))
173-
place(right + bottom, dx: 15pt, dy: 26pt,
175+
place(right + bottom, dx: 15pt + bias2, dy: 26pt,
174176
circle(radius: 40pt, fill: self.colors.primary))
175-
place(right + bottom, dx: -65pt, dy: -12pt,
177+
place(right + bottom, dx: -65pt + bias2, dy: -12pt,
176178
circle(radius: 21pt, fill: self.colors.primary))
177-
place(right + bottom, dx: -3%, dy: -15%,
179+
place(right + bottom, dx: r * -3% + bias2, dy: -15%,
178180
circle(radius: 13pt, fill: self.colors.primary))
179-
place(right + bottom, dx: -2.5%, dy: -27%,
181+
place(right + bottom, dx: r * -2.5% + bias2, dy: -27%,
180182
circle(radius: 8pt, fill: self.colors.primary))
181-
polygon(fill: self.colors.primary-lightest,
182-
(35%, -17%), (70%, 10%), (35%, 30%), (0%, 10%))
183-
place(center + horizon, dy: 7%,
184-
ellipse(fill: white, width: 45%, height: 120pt))
185-
place(center + horizon, dy: 5%,
186-
ellipse(fill: self.colors.primary-lightest, width: 40%, height: 80pt))
187-
place(center + horizon, dy: 12%,
188-
rect(fill: self.colors.primary-lightest, width: 40%, height: 60pt))
189-
place(center + horizon, dy: 20%,
190-
ellipse(fill: white, width: 40%, height: 70pt))
191-
place(center + horizon, dx: 28%, dy: -6%,
183+
place(center + horizon, dx: bias1, polygon(fill: self.colors.primary-lightest,
184+
(35% * page-width, -17%), (70% * page-width, 10%), (35% * page-width, 30%), (0% * page-width, 10%)))
185+
place(center + horizon, dy: 7%, dx: bias1,
186+
ellipse(fill: white, width: r * 45%, height: 120pt))
187+
place(center + horizon, dy: 5%, dx: bias1,
188+
ellipse(fill: self.colors.primary-lightest, width: r * 40%, height: 80pt))
189+
place(center + horizon, dy: 12%, dx: bias1,
190+
rect(fill: self.colors.primary-lightest, width: r * 40%, height: 60pt))
191+
place(center + horizon, dy: 20%, dx: bias1,
192+
ellipse(fill: white, width: r * 40%, height: 70pt))
193+
place(center + horizon, dx: r * 28% + bias1, dy: -6%,
192194
circle(radius: 13pt, fill: white))
193195
}
194196
let header(self) = {

0 commit comments

Comments
 (0)
Please sign in to comment.