Merge pull request #11773 from cbjeukendrup/gp_recent_file_placeholder

Recent Scores: Add Guitar Pro file icon and fix pixelated icons on low-res screens
This commit is contained in:
RomanPudashkin 2022-05-27 12:07:55 +02:00 committed by GitHub
commit 6ac187b4a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 0 deletions

View file

@ -45,6 +45,7 @@
<file>qml/MuseScore/Project/internal/ProjectPropertiesBottomPanel.qml</file>
<file>qml/MuseScore/Project/internal/ProjectPropertiesView.qml</file>
<file>qml/MuseScore/Project/internal/PropertyItem.qml</file>
<file>resources/Placeholder_GP.png</file>
<file>resources/Placeholder_MIDI.png</file>
<file>resources/Placeholder_MXML.png</file>
<file>resources/Placeholder_Other.png</file>

View file

@ -233,6 +233,14 @@ FocusScope {
source: {
switch (root.suffix) {
case "gtp":
case "gp3":
case "gp4":
case "gp5":
case "gpx":
case "gp":
case "ptb":
return "qrc:/resources/Placeholder_GP.png"
case "mid":
case "midi":
case "kar":
@ -247,6 +255,9 @@ FocusScope {
}
fillMode: Image.PreserveAspectFit
// Prevent image from looking pixelated on low-res screens
mipmap: true
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB