mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Fix I/O not showing in Qt5
Images still gets stretched, because Qt5 doesn't support the aspect-ratio CSS property, but it's better than nothing. https://forums.ankiweb.net/t/possible-occulusion-issue-on-ver-23-10-and-the-solution/36894
This commit is contained in:
parent
0b164719a0
commit
c478689e5a
2 changed files with 8 additions and 2 deletions
|
@ -177,8 +177,10 @@ class ThemeManager:
|
||||||
classes.append("reduce-motion")
|
classes.append("reduce-motion")
|
||||||
if not aqt.mw.pm.minimalist_mode():
|
if not aqt.mw.pm.minimalist_mode():
|
||||||
classes.append("fancy")
|
classes.append("fancy")
|
||||||
if qtmajor == 5 and qtminor < 15:
|
if qtmajor == 5:
|
||||||
classes.append("no-blur")
|
classes.append("qt5")
|
||||||
|
if qtminor < 15:
|
||||||
|
classes.append("no-blur")
|
||||||
return " ".join(classes)
|
return " ".join(classes)
|
||||||
|
|
||||||
def body_classes_for_card_ord(
|
def body_classes_for_card_ord(
|
||||||
|
|
|
@ -129,3 +129,7 @@ button {
|
||||||
.nightMode img.drawing {
|
.nightMode img.drawing {
|
||||||
filter: unquote("invert(1) hue-rotate(180deg)");
|
filter: unquote("invert(1) hue-rotate(180deg)");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.qt5 #image-occlusion-container img {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue