refactor: cosmic-config granular key updates and remove unused generics from cosmic-theme

This commit is contained in:
Ashley Wulber 2023-12-12 19:53:17 -05:00 committed by Michael Murphy
parent ef657fb19d
commit a4d1b1b651
18 changed files with 233 additions and 699 deletions

View file

@ -34,7 +34,7 @@ where
let mut node = self
.content
.as_widget()
.layout(&mut self.tree, renderer, &limits);
.layout(self.tree, renderer, &limits);
let node_size = node.size();
node.move_to(Point {

View file

@ -484,8 +484,8 @@ where
(root, Vec::new()),
|(menu_root, mut nodes), (_i, ms)| {
let slice = ms.slice(bounds, overlay_offset, self.item_height);
let start_index = slice.start_index;
let end_index = slice.end_index;
let _start_index = slice.start_index;
let _end_index = slice.end_index;
let children_node = ms.layout(
overlay_offset,
slice,

View file

@ -133,6 +133,17 @@ impl Default for Model<usize> {
}
}
impl Default for Model<u64> {
fn default() -> Self {
Self {
value: 0,
step: 1,
min: u64::MIN,
max: u64::MAX,
}
}
}
impl Default for Model<Decimal> {
fn default() -> Self {
Self {