This repository has been archived by the owner on Oct 17, 2024. It is now read-only.
How can I set the window icon? #51
-
Beta Was this translation helpful? Give feedback.
Answered by
david-swift
Sep 8, 2024
Replies: 1 comment 1 reply
-
In the shellIf you run the app in a Flatpak (e.g. based on the template), follow the steps below. In case you simply want to try to build the template and show the icon (no custom icon), start at step 4.
"install -Dm644 data/icons/<app-id>.svg $DESTDIR/app/share/icons/hicolor/scalable/apps/<app-id>.svg",
"install -Dm644 data/icons/<app-id>-symbolic.svg $DESTDIR/app/share/icons/hicolor/symbolic/apps/<app-id>-symbolic.svg"
Access in the app's UIIf you want to display the icon in the app's UI using .aboutDialog(
visible: $about,
app: "AdwaitaTemplate",
developer: "david-swift",
version: "dev",
icon: .custom(name: "io.github.AparokshaUI.AdwaitaTemplate"), // The app icon
website: .init(string: "https://github.com/AparokshaUI/AdwaitaTemplate")!,
issues: .init(string: "https://github.com/AparokshaUI/AdwaitaTemplate/issues")!
) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Jak2k
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the shell
If you run the app in a Flatpak (e.g. based on the template), follow the steps below. In case you simply want to try to build the template and show the icon (no custom icon), start at step 4.
./data/icons
(or any other directory in your project). Normally, you would follow the following naming scheme (` should be replaced by the reverse DNS style identifier:<app-id>.Source.svg
for the file based on the SVG template.<app-id>.svg
for the icon visible in the dash and app overview grid<app-id>-symbolic.svg
for the symbolic icon which is visible for notifications for example./<app-id…