ErikReider / SwayNotificationCenter

A simple GTK based notification daemon for SwayWM
GNU General Public License v3.0
1.3k stars 62 forks source link

[Feature Request] How to set image height/width? #131

Closed TheMY3 closed 2 years ago

TheMY3 commented 2 years ago

Try to set image height\width adding this params to .image and .body-image, but when I run swaync-client -rs I got CSS reload success: false, when I removed it - CSS reload success: true.

Is it possible to make images smaller?

ErikReider commented 2 years ago

Not at the time of writing... The size is being set through Vala. GTK css only supports some standard css attributes. This would be a good addition to the config file.

Maybe try setting min-height/width in the mean time?

ErikReider commented 2 years ago

https://github.com/ErikReider/SwayNotificationCenter/blob/725b80c615a17e34fcc33d4644fb3e8184bb19db/src/notification/notification.vala#L40

TheMY3 commented 2 years ago

Ok, I am waiting for this attribute in config :)

I try to do small notification block, already changed to smaller font, but icon too large, and notification block can't decrease because of it

ErikReider commented 2 years ago

735f2c5 adds the notification-icon-size property

ErikReider commented 2 years ago

Should now work as expected. Thanks for the suggestion! :)

TheMY3 commented 2 years ago

Thank you, I use https://aur.archlinux.org/packages/swaync, I plan to go swaync-git for new updates :)

TheMY3 commented 2 years ago

@ErikReider when do you plan to create new release? :)

ErikReider commented 2 years ago

Probably when there's a few more features, a big new feature or a bug found

ErikReider commented 2 years ago

@TheMY3 v0.6.2 is now released :)

TheMY3 commented 2 years ago

@ErikReider thank you, downloading :)