Easy_xkcd
Easy_xkcd copied to clipboard
Widgets: Option to choose betwen w/b and color display
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.
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 :/
Also Related to this. the alt text in the widget is un-readable on dark backgrounds.
im working on a fix, dont get your hopes up though
if tom wouldn't mind walking me through how images are loaded into the widget
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
Is that the same process that the main app uses? Where does the inversion happen usually.