eww: [BUG] Cannot use Image Widget

Checklist before submitting an issue

  • I have searched through the existing closed and open issues for eww and made sure this is not a duplicate
  • I have specifically verified that this bug is not a common user error
  • I am providing as much relevant information as I am able to in this bug report (Minimal config to reproduce the issue for example, if applicable)

Describe the bug

When defining an image widget no image is generated inside the widget itself

Reproducing the issue

Add an image widget using

(defwidget sidebar_toggle []
    (box :class "sidebar_toggle"
         :orientation "h"
    (button :class "sidebar_button"
            :onclick "~/.config/eww/scripts/sidebar-toggle"
            (image :path "~/.config/eww/icons/fingerprint.svg")))
)

also not nesting the image in the button definition but use it instead of the button doesn’t generate any image inside the widget. Already tried with full path instead of ~ and with $HOME var (that as far as I know shouldn’t work but I’ve tried anyway)

The image I’m using for this is taken from here, tried with svg and png also (changing the extension in path the image widget)

Expected behaviour

An image get shown in the widget

Additional context

No SCSS style is applied yet, only a background for the box widget. Tried changing color in CSS or set width/height in image widget but nothing change.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (9 by maintainers)

Most upvoted comments

Should be fixed now!