gwen: Embed Gwen icon in about window and test runner

This commit is contained in:
yenru0 committed 2026-09-23 01:47:04 +09:00
1 parent e5a89be25c
commit 2ad867cd0b
2 files changed
+8 -14

No files matched your search

+1 -1
View File
@@ -132,7 +132,7 @@ mod constants {
pub const BASELINE_DIR: &str = "crates/zed/test_fixtures/visual_tests";
/// Embedded test image (Zed app icon) for visual tests.
pub const EMBEDDED_TEST_IMAGE: &[u8] = include_bytes!("../resources/app-icon.png");
pub const EMBEDDED_TEST_IMAGE: &[u8] = include_bytes!("../resources/app-icon-gwen.png");
/// Threshold for image comparison (0.0 to 1.0)
/// Images must match at least this percentage to pass
+7 -13
View File
@@ -1526,19 +1526,13 @@ fn initialize_pane(
}
fn open_about_window(cx: &mut App) {
fn about_window_icon(release_channel: ReleaseChannel) -> Arc<Image> {
let bytes = match release_channel {
ReleaseChannel::Dev => include_bytes!("../resources/app-icon-dev.png").as_slice(),
ReleaseChannel::Nightly => {
include_bytes!("../resources/app-icon-nightly.png").as_slice()
}
ReleaseChannel::Preview => {
include_bytes!("../resources/app-icon-preview.png").as_slice()
}
ReleaseChannel::Stable => include_bytes!("../resources/app-icon.png").as_slice(),
};
Arc::new(Image::from_bytes(ImageFormat::Png, bytes.to_vec()))
fn about_window_icon(_release_channel: ReleaseChannel) -> Arc<Image> {
Arc::new(Image::from_bytes(
ImageFormat::Png,
include_bytes!("../resources/app-icon-gwen.png")
.as_slice()
.to_vec(),
))
}
struct AboutWindow {