Show name of current Theme in clock example

This commit is contained in:
Héctor Ramón Jiménez 2024-03-16 16:52:21 +01:00
parent 348e00e11c
commit bad3b1ac47
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
5 changed files with 67 additions and 14 deletions

View file

@ -2,7 +2,7 @@ mod cache;
pub use cache::Cache;
use crate::core::{Point, Rectangle, Size, Transformation, Vector};
use crate::core::{Point, Radians, Rectangle, Size, Transformation, Vector};
use crate::graphics::geometry::{Fill, Path, Stroke, Text};
use crate::Renderer;
@ -184,7 +184,7 @@ impl Frame {
/// Applies a rotation in radians to the current transform of the [`Frame`].
#[inline]
pub fn rotate(&mut self, angle: f32) {
pub fn rotate(&mut self, angle: impl Into<Radians>) {
delegate!(self, frame, frame.rotate(angle));
}