feat: redesign login panel
Rust / build (macos-latest, stable) (push) Waiting to run
Rust / build (ubuntu-latest, stable) (push) Waiting to run
Rust / build (windows-latest, stable) (push) Waiting to run

This commit is contained in:
2026-11-21 13:43:21 +07:00
parent bfe2badb38
commit 13ebb24861
14 changed files with 247 additions and 53 deletions
+1
View File
@@ -37,6 +37,7 @@ gpui.workspace = true
gpui_platform.workspace = true
ui = { path = "../crates/ui" }
reqwest_client.workspace = true
rust-embed.workspace = true
tracing.workspace = true
tracing-subscriber.workspace = true
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 421 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 598 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 639 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

+27 -2
View File
@@ -3,16 +3,41 @@ use std::sync::Arc;
use gpui::*;
use gpui_platform::application;
use settings::SettingsStore;
use ui::Assets;
use ui::theme::{ActiveTheme as _, Theme};
actions!(signed, [Quit]);
#[derive(rust_embed::RustEmbed)]
#[folder = "assets"]
#[exclude = "*.DS_Store"]
struct BackgroundAssets;
/// Serves app artwork plus the ui crate's icon set.
struct AppAssets;
impl AssetSource for AppAssets {
fn load(&self, path: &str) -> gpui::Result<Option<std::borrow::Cow<'static, [u8]>>> {
if path.starts_with("backgrounds/") {
return Ok(BackgroundAssets::get(path).map(|file| file.data));
}
ui::Assets.load(path)
}
fn list(&self, path: &str) -> gpui::Result<Vec<SharedString>> {
let mut files: Vec<SharedString> = BackgroundAssets::iter()
.filter(|file| file.starts_with(path))
.map(SharedString::from)
.collect();
files.extend(ui::Assets.list(path)?);
Ok(files)
}
}
fn main() {
tracing_subscriber::fmt::init();
application()
.with_assets(Assets)
.with_assets(AppAssets)
.with_http_client(Arc::new(reqwest_client::ReqwestClient::new()))
.run(move |cx| {
ui::init(cx);