Easy_xkcd icon indicating copy to clipboard operation
Easy_xkcd copied to clipboard

Widgets: Option to choose betwen w/b and color display

Open rugk opened this issue 9 years ago • 6 comments
trafficstars

I think for dark backgrounds it would also be useful to have the black/white display in the Widget. It should be choosable per widget.

rugk avatar Jul 14 '16 16:07 rugk

Unfortunately it seems like it's not possible to apply the color filter I use to the Widget's Image, since Android handles Widgets in quite a weird way :/

tom-anders avatar Aug 13 '16 09:08 tom-anders

Also Related to this. the alt text in the widget is un-readable on dark backgrounds.

PeterHindes avatar Jan 08 '20 17:01 PeterHindes

im working on a fix, dont get your hopes up though

PeterHindes avatar Jan 10 '20 17:01 PeterHindes

if tom wouldn't mind walking me through how images are loaded into the widget

PeterHindes avatar Jan 10 '20 17:01 PeterHindes

Basically, the layout contains an image view https://github.com/tom-anders/Easy_xkcd/blob/557fec6fee3452a816673b3ef195fe62c35657fe/app/src/main/res/layout/widget_latest_layout.xml#L18-L27 and I use Glide to load the images into it: https://github.com/tom-anders/Easy_xkcd/blob/557fec6fee3452a816673b3ef195fe62c35657fe/app/src/main/java/de/tap/easy_xkcd/widget/WidgetLatestProvider.java#L93-L105

tom-anders avatar Jan 10 '20 21:01 tom-anders

Is that the same process that the main app uses? Where does the inversion happen usually.

PeterHindes avatar Jan 16 '20 20:01 PeterHindes