labels and icons

This commit is contained in:
🪞👃🪞 2025-05-17 20:21:25 +03:00
parent 3e748fefa7
commit eb0547dc37
6 changed files with 19 additions and 18 deletions

View file

@ -66,6 +66,9 @@ impl HasClipsSize for App {
//});
impl App {
pub fn update_clock (&self) {
ViewCache::update_clock(&self.view_cache, self.clock(), self.size.w() > 80)
}
pub fn toggle_dialog (&mut self, mut dialog: Option<Dialog>) -> Option<Dialog> {
std::mem::swap(&mut self.dialog, &mut dialog);
dialog