Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/screenshots/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ publish = false

[dependencies]
gpui = { workspace = true }
gpui_platform = { workspace = true }
fluent-core = { workspace = true }
fluent-primitives = { workspace = true }
fluent-layout = { workspace = true }
Expand Down
8 changes: 5 additions & 3 deletions examples/screenshots/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ use fluent_primitives::{
ToggleButton,
};
use gpui::{
div, prelude::*, px, App, Application, Bounds, Context, Entity, IntoElement, Point,
SharedString, Size, TitlebarOptions, Window, WindowBounds, WindowDecorations, WindowOptions,
div, prelude::*, px, App, Bounds, Context, Entity, IntoElement, Point, SharedString, Size,
TitlebarOptions, Window, WindowBounds, WindowDecorations, WindowOptions,
};

const SENTINEL: &str = "/tmp/.fluent-screenshot-ready";
Expand Down Expand Up @@ -574,7 +574,9 @@ fn main() {
let component = args.get(1).cloned().unwrap_or_else(|| "button".into());
let dark = !args.iter().any(|a| a == "--light");

Application::new()
// The vendored gpui removed `Application::new()`; the platform crate
// constructs the application (see docs/gpui-api-drift.md).
gpui_platform::application()
.with_assets(FluentAssets::new(None))
.run(move |cx: &mut App| {
if dark {
Expand Down
Loading