1
0
Fork 0
forked from wry/wry

theme: add ThemeColor enum

This commit is contained in:
Julian Orth 2026-03-07 11:55:25 +01:00
parent c75b6ef66e
commit cf8b696f03
4 changed files with 82 additions and 41 deletions

View file

@ -478,6 +478,10 @@ impl OutputNode {
}
}
pub fn on_colors_changed(self: &Rc<Self>) {
self.schedule_update_render_data();
}
pub fn set_preferred_scale(self: &Rc<Self>, scale: Scale) {
let old_scale = self.global.persistent.scale.replace(scale);
if scale == old_scale {