solitare/qml
ItsDrike d21e9d1336
Fix SVG scaling in QML
For some reason, the default QML Image element doesn't scale SVGs like
it should. Essentially, it just reads the source size of the SVG and
scales it like it would a regular image (say PNG).

I'm fixing this by manually setting the source size of the image to the
current size. That said, this is in my opinion a hacky fix and it's
really weird that QML doesn't special-case SVGs and scale them as it
should.

Source:
https://stackoverflow.com/questions/69641034/qml-image-does-not-stretch-fit-svg
2024-12-09 20:57:51 +01:00
..
CardModel.qml Fix SVG scaling in QML 2024-12-09 20:57:51 +01:00
DrawPile.qml Fix SVG scaling in QML 2024-12-09 20:57:51 +01:00
FoundationPiles.qml Dynamically scale the cards & everything else 2024-12-08 13:09:15 +01:00
images.qrc List items in qrc in alphabetical order 2024-12-07 23:17:34 +01:00
Main.qml Add game timer 2024-12-08 14:02:04 +01:00
qml.qrc List items in qrc in alphabetical order 2024-12-07 23:17:34 +01:00
ScoreBar.qml Show game status in scorebar 2024-12-09 19:40:36 +01:00
Tableau.qml Convert winnability check to property 2024-12-08 17:08:15 +01:00
ThrowawayPile.qml Convert winnability check to property 2024-12-08 17:08:15 +01:00