summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/clock/src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/clock/src/main.rs b/examples/clock/src/main.rs
index 318ca74c..e3f3fa34 100644
--- a/examples/clock/src/main.rs
+++ b/examples/clock/src/main.rs
@@ -145,10 +145,10 @@ impl<Message> canvas::Program<Message> for Clock {
frame.rotate(Degrees(-90.0 * rotate_factor));
frame.fill_text(canvas::Text {
content: theme.to_string(),
- size: 15.into(),
+ size: (radius / 15.0).into(),
position: Point::new(
- (0.8 * radius - 8.0) * rotate_factor,
- -8.0,
+ (0.78 * radius) * rotate_factor,
+ -width * 2.0,
),
color: palette.primary.weak.text,
horizontal_alignment: if rotate_factor > 0.0 {