more args: mode, style, decis (#20)

This commit is contained in:
Jens K.
2024-12-21 18:00:46 +01:00
committed by GitHub
parent d705f20e2d
commit 2cf411e2ae
8 changed files with 103 additions and 58 deletions

View File

@@ -8,13 +8,12 @@ use ratatui::{
use std::cmp::max;
use crate::{
args::ClockStyle,
events::{Event, EventHandler},
utils::center,
widgets::clock::{self, Clock, ClockWidget},
};
use super::clock::Style;
#[derive(Debug, Clone)]
pub struct Countdown {
clock: Clock<clock::Countdown>,
@@ -25,7 +24,7 @@ impl Countdown {
Self { clock }
}
pub fn set_style(&mut self, style: Style) {
pub fn set_style(&mut self, style: ClockStyle) {
self.clock.style = style;
}