Skip to content

Let's explore gpui by recreating a classic – iTunes 5.0

Notifications You must be signed in to change notification settings

iamnbutler/gpuitunes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gpuitunes

Created with create-gpui-app.

Important note: gpui is still currently a part of Zed. It's unlikely it can be used in any sort of production application at this time.

Usage

  • Ensure Rust is installed - Rustup
  • Run your app with cargo run

gpui TODOs:

  • Add radial gradient to gpui
  • Add multi-stop gradients (see if linear_gradient can just take a vec of ColorStop?)
  • BoxShadow can't have a blur radius of 0 - (Merged! - PR)
  • We don't seem to render divs with no children
  • No text centering makes things difficult
  • Need to be able to rotate elements to reduce amount of svgs required

Maybe useful to share?

Create an app without a titlebar

You can create an app without a titlebar by setting the titlebar option to None in the WindowOptions struct.

/// Minimal Example
fn main() {
    App::new().run(|cx: &mut AppContext| {
        cx.open_window(
            WindowOptions {
                titlebar: None,
                ..Default::default()
            },
            |cx| {
                cx.new_view(|_cx| SomeView {
                    text: "World".into(),
                })
            },
        )
        .unwrap();

        cx.activate(true);
    });
}

About

Let's explore gpui by recreating a classic – iTunes 5.0

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages