Skip to content

[Feature] Image fitting #662

@abdulrahim-ss

Description

@abdulrahim-ss

I am trying to create a notification popup for when I take a screenshot to ask whether I want to save it or not. I am trying to show the image in a preview, and so far I succeeded to do so by adding an HTML image tag in the body of the notification. <img src="/tmp/temp_screenshot.png">. When using GTK_DEBUG=interactive swaync, it appears that the image is actually converted to a GTK object picture. It has a property called content-fit or GtkContentFit that works exactly like CSS' object-fit. This is neither exposed in style.css or config.json. I noticed that swaync exposes the width and height via the notification-body-image-height
and notification-body-image-width properties. I would very much like for more properties to be exposed this way. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions