Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#67264 - [qtile] Image Widget does not render with custom background

Attached to Project: Community Packages
Opened by Kyle Crandall (likesmith) - Monday, 13 July 2020, 14:18 GMT
Last edited by Doug Newgard (Scimmia) - Monday, 13 July 2020, 14:21 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Image Widget does not render with custom background

reproduce:
add image widget to bar:

config.py:
```
...
widget.Image(filename="~/icon.png", background="#FF0000"),
...
```
image widget will render with default bar background.

Cause and Fix
The image widget ignores any custom background color given when drawing. see line 77 of libqtile/widget/image.py:
```
self.drawer.clear(self.bar.background)
```
This line should be:
```
self.drawer.clear(self.background or self.bar.background)
```
This will only use the default background if the custom background remains undefined.

Package Version: 0.15.1-1

Note this change is present in the qtile git repository:
https://github.com/qtile/qtile/blob/master/libqtile/widget/image.py
This task depends upon

Closed by  Doug Newgard (Scimmia)
Monday, 13 July 2020, 14:21 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#67263 

Loading...