From d920f7edc1c23551513d14cdb329d57a74f2637d Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Wed, 11 Oct 2023 21:34:08 -0600 Subject: [PATCH] Add group hovers --- crates/gpui2/src/elements/div.rs | 6 +- crates/gpui2/src/elements/hoverable.rs | 4 +- crates/gpui2/src/elements/img.rs | 8 +-- crates/gpui2/src/elements/pressable.rs | 4 +- crates/gpui2/src/elements/svg.rs | 8 +-- crates/gpui2/src/style.rs | 4 +- crates/gpui3/src/element.rs | 8 +-- crates/gpui3/src/elements/clickable.rs | 4 +- crates/gpui3/src/elements/div.rs | 10 ++-- crates/gpui3/src/elements/group.rs | 38 +++++++++--- crates/gpui3/src/elements/hoverable.rs | 11 ++-- crates/gpui3/src/elements/identified.rs | 4 +- crates/gpui3/src/elements/img.rs | 8 +-- crates/gpui3/src/elements/pressable.rs | 4 +- crates/gpui3/src/elements/svg.rs | 8 +-- crates/gpui3/src/style_helpers.rs | 2 +- crates/gpui3/src/styled.rs | 4 +- crates/refineable/src/refineable.rs | 8 +-- crates/storybook2/src/collab_panel.rs | 77 +++++++++++++------------ crates/storybook2/src/storybook2.rs | 5 +- crates/storybook2/src/workspace.rs | 35 +++++++++-- 21 files changed, 157 insertions(+), 103 deletions(-) diff --git a/crates/gpui2/src/elements/div.rs b/crates/gpui2/src/elements/div.rs index 885b14f2dd..2fd85f6465 100644 --- a/crates/gpui2/src/elements/div.rs +++ b/crates/gpui2/src/elements/div.rs @@ -13,12 +13,12 @@ use gpui::{ scene::{self}, LayoutId, }; -use refineable::{Refineable, RefinementCascade}; +use refineable::{Cascade, Refineable}; use smallvec::SmallVec; use util::ResultExt; pub struct Div { - styles: RefinementCascade