mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-04 07:29:32 +00:00
theme2: Move stories to RPITIT for Render
This commit is contained in:
parent
6027962937
commit
219999cd8d
2 changed files with 4 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
use gpui::prelude::*;
|
||||
use gpui::{div, px, Div, ViewContext};
|
||||
use gpui::{div, px, ViewContext};
|
||||
use story::Story;
|
||||
|
||||
use crate::{default_color_scales, ColorScaleStep};
|
||||
|
@ -7,9 +7,7 @@ use crate::{default_color_scales, ColorScaleStep};
|
|||
pub struct ColorsStory;
|
||||
|
||||
impl Render for ColorsStory {
|
||||
type Element = Div;
|
||||
|
||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> Self::Element {
|
||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl Element {
|
||||
let color_scales = default_color_scales();
|
||||
|
||||
Story::container().child(Story::title("Colors")).child(
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use gpui::{div, img, px, Div, ParentElement, Render, Styled, ViewContext};
|
||||
use gpui::{div, img, px, Element, ParentElement, Render, Styled, ViewContext};
|
||||
use story::Story;
|
||||
|
||||
use crate::{ActiveTheme, PlayerColors};
|
||||
|
@ -6,9 +6,7 @@ use crate::{ActiveTheme, PlayerColors};
|
|||
pub struct PlayerStory;
|
||||
|
||||
impl Render for PlayerStory {
|
||||
type Element = Div;
|
||||
|
||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> Self::Element {
|
||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl Element {
|
||||
Story::container().child(
|
||||
div()
|
||||
.flex()
|
||||
|
|
Loading…
Reference in a new issue