wip: refactor

This commit is contained in:
reya
2024-12-25 13:44:16 +07:00
parent 37d810d9e5
commit 0745b497f0
13 changed files with 117 additions and 120 deletions
+3 -9
View File
@@ -1,10 +1,4 @@
use gpui::{
canvas, div, point, px, size, AnyElement, AppContext, Bounds, DismissEvent, DragMoveEvent,
Entity, EntityId, EventEmitter, FocusHandle, FocusableView, Half, InteractiveElement,
IntoElement, MouseButton, MouseDownEvent, MouseUpEvent, ParentElement, Pixels, Point, Render,
ScrollHandle, Size, StatefulInteractiveElement, Styled, ViewContext, VisualContext, WeakView,
WindowContext,
};
use gpui::*;
use std::{
cell::Cell,
fmt::{Debug, Formatter},
@@ -92,8 +86,8 @@ pub struct Tiles {
}
impl Panel for Tiles {
fn panel_name(&self) -> &'static str {
"Tiles"
fn panel_name(&self) -> SharedString {
"Tiles".into()
}
fn title(&self, _cx: &WindowContext) -> AnyElement {