Checkpoint
This commit is contained in:
parent
f3979a9f28
commit
e4fe9538d7
107 changed files with 81 additions and 81 deletions
|
@ -1,7 +1,7 @@
|
|||
use std::borrow::Cow;
|
||||
|
||||
use anyhow::{anyhow, Result};
|
||||
use gpui3::{AssetSource, SharedString};
|
||||
use gpui2::{AssetSource, SharedString};
|
||||
use rust_embed::RustEmbed;
|
||||
|
||||
#[derive(RustEmbed)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use crate::themes::rose_pine;
|
||||
use gpui3::{
|
||||
use gpui2::{
|
||||
div, view, Context, Focusable, KeyBinding, ParentElement, StatelessInteractive, Styled, View,
|
||||
WindowContext,
|
||||
};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use gpui3::{view, Context, View};
|
||||
use gpui2::{view, Context, View};
|
||||
use strum::IntoEnumIterator;
|
||||
use ui::prelude::*;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use crate::themes::rose_pine;
|
||||
use gpui3::{
|
||||
use gpui2::{
|
||||
div, px, view, Context, Element, ParentElement, SharedString, Styled, View, WindowContext,
|
||||
};
|
||||
use ui::ElementExt;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use gpui3::{div, view, white, Context, ParentElement, Styled, View, WindowContext};
|
||||
use gpui2::{div, view, white, Context, ParentElement, Styled, View, WindowContext};
|
||||
|
||||
pub struct TextStory {
|
||||
text: View<()>,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use std::marker::PhantomData;
|
||||
|
||||
use gpui3::{px, rgb, Div, Hsla};
|
||||
use gpui2::{px, rgb, Div, Hsla};
|
||||
use ui::prelude::*;
|
||||
|
||||
use crate::story::Story;
|
||||
|
|
|
@ -5,7 +5,7 @@ use crate::stories::*;
|
|||
use anyhow::anyhow;
|
||||
use clap::builder::PossibleValue;
|
||||
use clap::ValueEnum;
|
||||
use gpui3::{view, AnyView, Context};
|
||||
use gpui2::{view, AnyView, Context};
|
||||
use strum::{EnumIter, EnumString, IntoEnumIterator};
|
||||
use ui::prelude::*;
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ mod themes;
|
|||
use std::sync::Arc;
|
||||
|
||||
use clap::Parser;
|
||||
use gpui3::{
|
||||
use gpui2::{
|
||||
div, px, size, view, AnyView, BorrowAppContext, Bounds, Context, Element, ViewContext,
|
||||
WindowBounds, WindowOptions,
|
||||
};
|
||||
|
@ -53,7 +53,7 @@ fn main() {
|
|||
let theme = themes::load_theme(theme_name).unwrap();
|
||||
|
||||
let asset_source = Arc::new(Assets);
|
||||
gpui3::App::production(asset_source).run(move |cx| {
|
||||
gpui2::App::production(asset_source).run(move |cx| {
|
||||
let selector =
|
||||
story_selector.unwrap_or(StorySelector::Component(ComponentStory::Workspace));
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ mod rose_pine;
|
|||
pub use rose_pine::*;
|
||||
|
||||
use anyhow::{Context, Result};
|
||||
use gpui3::serde_json;
|
||||
use gpui2::serde_json;
|
||||
use serde::Deserialize;
|
||||
use ui::Theme;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use gpui3::serde_json::{self, json};
|
||||
use gpui2::serde_json::{self, json};
|
||||
use ui::Theme;
|
||||
|
||||
pub fn rose_pine() -> Theme {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue