Add channels panel with stubbed out information

co-authored-by: nate <nate@zed.dev>
This commit is contained in:
Mikayla Maki
2023-07-28 13:21:39 -07:00
co-authored by nate
parent e6f3e0ab9c
commit ac35dae66e
17 changed files with 784 additions and 34 deletions
+10
View File
@@ -107,6 +107,16 @@ pub struct IconStyle {
pub container: ContainerStyle,
}
impl IconStyle {
pub fn width(&self) -> f32 {
self.icon.dimensions.width
+ self.container.padding.left
+ self.container.padding.right
+ self.container.margin.left
+ self.container.margin.right
}
}
pub fn icon<V: View>(style: &IconStyle) -> Container<V> {
svg(&style.icon).contained().with_style(style.container)
}