Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add way to show app-icon if image data/path isn't providen #85

Merged
merged 3 commits into from
Dec 19, 2024

Conversation

JarKz
Copy link
Contributor

@JarKz JarKz commented Dec 19, 2024

Motivation

Need to follow D-Bus specification.

Changes

Added a way to show app-icon using freedesktop_icons crate with configurable icon theme and size. The app-icon will be shown if there is no image_data or image_path.

Syntax of icons configuration

[display]
icons = { theme = "Papirus", size = [ 64, 48, 32, 24] }

Note

The size presents possible values to pick and iterates from first to last until the suitable doesn't picked. Under 'suitable' I mean the first one that can be found in system resources.

@JarKz JarKz requested a review from jsonmaf1a December 19, 2024 20:55
@JarKz JarKz self-assigned this Dec 19, 2024
@JarKz JarKz merged commit 8b7880f into main Dec 19, 2024
5 checks passed
@JarKz JarKz deleted the app-icon branch December 19, 2024 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants