Skip to content

Commit 7495e34

Browse files
authored
Merge pull request #101 from cosmic-utils/bugfix/fix-appp-icon-in-about-page
fix app icon in about page
2 parents 796e4d9 + e6188a2 commit 7495e34

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ fn ensure_photo_directory() -> Result<std::path::PathBuf, std::io::Error> {
7676

7777
const REPOSITORY: &str = "https://github.com/cosmic-utils/camera";
7878

79+
/// App icon SVG for the about page (scalable, non-pixelated)
80+
const APP_ICON: &[u8] =
81+
include_bytes!("../../resources/icons/hicolor/scalable/apps/io.github.cosmicutils.camera.svg");
82+
7983
impl cosmic::Application for AppModel {
8084
/// The async executor that will be used to run your application's commands.
8185
type Executor = cosmic::executor::Default;
@@ -105,7 +109,7 @@ impl cosmic::Application for AppModel {
105109
// Create the about widget
106110
let about = About::default()
107111
.name(fl!("app-title"))
108-
.icon(widget::icon::from_name(Self::APP_ID))
112+
.icon(widget::icon::from_svg_bytes(APP_ICON).symbolic(false))
109113
.version(env!("GIT_VERSION"))
110114
.author("Frederic Laing")
111115
.license("GPL-3.0-only")

0 commit comments

Comments
 (0)