I'm a dunce
This commit is contained in:
parent
13f4cc563c
commit
910aeb4f56
2 changed files with 5 additions and 6 deletions
|
@ -1,11 +1,10 @@
|
||||||
use gpui::{
|
use gpui::{
|
||||||
AnyElement, Component, Div, Element, EventEmitter, InteractiveElement, IntoElement,
|
Component, Element, EventEmitter, IntoElement, ParentElement, Render, StyledText, Subscription,
|
||||||
ParentElement, Render, Stateful, StatefulInteractiveElement, Styled, StyledText, Subscription,
|
|
||||||
ViewContext, WeakView,
|
ViewContext, WeakView,
|
||||||
};
|
};
|
||||||
use itertools::Itertools;
|
use itertools::Itertools;
|
||||||
use theme::ActiveTheme;
|
use theme::ActiveTheme;
|
||||||
use ui::{h_stack, ButtonCommon, ButtonLike, ButtonStyle2, Clickable, Disableable, Label};
|
use ui::{ButtonCommon, ButtonLike, ButtonStyle, Clickable, Disableable, Label};
|
||||||
use workspace::{
|
use workspace::{
|
||||||
item::{ItemEvent, ItemHandle},
|
item::{ItemEvent, ItemHandle},
|
||||||
ToolbarItemEvent, ToolbarItemLocation, ToolbarItemView, Workspace,
|
ToolbarItemEvent, ToolbarItemLocation, ToolbarItemView, Workspace,
|
||||||
|
@ -41,7 +40,7 @@ impl Render for Breadcrumbs {
|
||||||
|
|
||||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> Self::Element {
|
fn render(&mut self, cx: &mut ViewContext<Self>) -> Self::Element {
|
||||||
let button = ButtonLike::new("breadcrumbs")
|
let button = ButtonLike::new("breadcrumbs")
|
||||||
.style(ButtonStyle2::Transparent)
|
.style(ButtonStyle::Transparent)
|
||||||
.disabled(true);
|
.disabled(true);
|
||||||
|
|
||||||
let active_item = match &self.active_item {
|
let active_item = match &self.active_item {
|
||||||
|
@ -71,7 +70,7 @@ impl Render for Breadcrumbs {
|
||||||
|
|
||||||
// let this = cx.view().downgrade();
|
// let this = cx.view().downgrade();
|
||||||
button
|
button
|
||||||
.style(ButtonStyle2::Filled)
|
.style(ButtonStyle::Filled)
|
||||||
.disabled(false)
|
.disabled(false)
|
||||||
.on_click(move |_, _cx| {
|
.on_click(move |_, _cx| {
|
||||||
todo!("outline::toggle");
|
todo!("outline::toggle");
|
||||||
|
|
|
@ -4,7 +4,7 @@ use gpui::{
|
||||||
ViewContext, WindowContext,
|
ViewContext, WindowContext,
|
||||||
};
|
};
|
||||||
use ui::prelude::*;
|
use ui::prelude::*;
|
||||||
use ui::{h_stack, v_stack, ButtonLike, Color, Icon, IconButton, Label};
|
use ui::{h_stack, v_stack, Icon, IconButton};
|
||||||
|
|
||||||
pub enum ToolbarItemEvent {
|
pub enum ToolbarItemEvent {
|
||||||
ChangeLocation(ToolbarItemLocation),
|
ChangeLocation(ToolbarItemLocation),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue