From 36b73781f1fed0b4918d34932c2dcd17fa55cbe5 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sat, 16 Mar 2024 19:49:54 +0100 Subject: Scale theme name in `clock` example --- examples/clock/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/clock/src') 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 canvas::Program 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 { -- cgit