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:
commit
6ac187b4a4
3 changed files with 12 additions and 0 deletions
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
BIN
src/project/resources/Placeholder_GP.png
Normal file
BIN
src/project/resources/Placeholder_GP.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
Loading…
Reference in a new issue