mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 18:56:44 -04:00
Fix night-mode for videos #266
This commit is contained in:
parent
1d1691cd55
commit
3ea91e3173
@ -454,7 +454,7 @@ public class ZimContentProvider extends ContentProvider {
|
|||||||
JNIKiwixInt size = new JNIKiwixInt();
|
JNIKiwixInt size = new JNIKiwixInt();
|
||||||
byte[] data = jniKiwix.getContent(articleZimUrl, title, mime, size);
|
byte[] data = jniKiwix.getContent(articleZimUrl, title, mime, size);
|
||||||
if (mime.value != null && mime.value.equals("text/css") && KiwixMobileActivity.nightMode) {
|
if (mime.value != null && mime.value.equals("text/css") && KiwixMobileActivity.nightMode) {
|
||||||
out.write(("img { \n" +
|
out.write(("img, video { \n" +
|
||||||
" -webkit-filter: invert(1); \n" +
|
" -webkit-filter: invert(1); \n" +
|
||||||
" filter: invert(1); \n" +
|
" filter: invert(1); \n" +
|
||||||
"} \n").getBytes(Charset.forName("UTF-8")));
|
"} \n").getBytes(Charset.forName("UTF-8")));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user