Merge branch 'mouse-events' into project-panel-context-menu

This commit is contained in:
Antonio Scandurra
2022-05-27 12:07:00 +02:00
26 changed files with 816 additions and 523 deletions
+3 -3
View File
@@ -2,9 +2,9 @@ mod theme_registry;
use gpui::{
color::Color,
elements::{ContainerStyle, ImageStyle, LabelStyle, MouseState},
elements::{ContainerStyle, ImageStyle, LabelStyle},
fonts::{HighlightStyle, TextStyle},
Border,
Border, MouseState,
};
use serde::{de::DeserializeOwned, Deserialize};
use serde_json::Value;
@@ -505,7 +505,7 @@ pub struct Interactive<T> {
}
impl<T> Interactive<T> {
pub fn style_for(&self, state: &MouseState, active: bool) -> &T {
pub fn style_for(&self, state: MouseState, active: bool) -> &T {
if active {
if state.hovered {
self.active_hover