Skip to content

Commit

Permalink
Added toggle to hide game logo
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayingKarrde committed Jun 12, 2020
1 parent 6242dd0 commit f6c69df
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
5 changes: 3 additions & 2 deletions GameDetails/GameView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ id: root
opacity: (content.currentIndex !== 0 || detailsScreen.opacity !== 0) ? 0 : 1
Behavior on opacity { NumberAnimation { duration: 200 } }
z: (content.currentIndex == 0) ? 10 : -10

visible: settings.GameLogo === "Show"
}

DropShadow {
Expand All @@ -255,6 +255,7 @@ id: root
source: logo
opacity: (content.currentIndex !== 0 || detailsScreen.opacity !== 0) ? 0 : 0.4
Behavior on opacity { NumberAnimation { duration: 200 } }
visible: settings.GameLogo === "Show"
}

// Platform title
Expand All @@ -279,7 +280,7 @@ id: root
elide: Text.ElideRight
wrapMode: Text.WordWrap
lineHeight: 0.8
visible: logo.source == ""
visible: logo.source === "" || settings.GameLogo === "Text only"
opacity: (content.currentIndex !== 0 || detailsScreen.opacity !== 0) ? 0 : 1
}

Expand Down
3 changes: 2 additions & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ Skraper will place these in your roms folder under another folder called media.
If no media files are showing up, make sure that Skraper Assets is checked in the Additional Data Sources section of Pegasus settings. It may also be preferable to convert the created gamelist.xml (assuming EmulationStation was chosen for the game list in Skraper) to a metadata.txt file using the [Pegasus conversion tool](http://pegasus-frontend.org/tools/convert/)

## Version history
v1.01
v1.05
- Added option to toggle mouse hover (off by default)
- Added option for blurring background in game view (off by default)
- Added option for turning off game logo in game view, or text only (shown by default)

v1.0
- Complete overhaul of the theme, rewritten from the ground up
Expand Down
4 changes: 4 additions & 0 deletions Settings/SettingsScreen.qml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ id: root
settingName: "Game Background"
setting: "Screenshot,Fanart"
}
ListElement {
settingName: "Game Logo"
setting: "Show,Text only,Hide"
}
ListElement {
settingName: "Default to full details"
setting: "No,Yes"
Expand Down
3 changes: 2 additions & 1 deletion theme.qml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ id: root
GridThumbnail: api.memory.has("Grid Thumbnail") ? api.memory.get("Grid Thumbnail") : "Dynamic Wide",
GridColumns: api.memory.has("Number of columns") ? api.memory.get("Number of columns") : "3",
GameBackground: api.memory.has("Game Background") ? api.memory.get("Game Background") : "Screenshot",
GameLogo: api.memory.has("Game Logo") ? api.memory.get("Game Logo") : "Show",
GameRandomBackground: api.memory.has("Randomize Background") ? api.memory.get("Randomize Background") : "No",
GameBlurBackground: api.memory.has("Blur Background") ? api.memory.get("Blur Background") : "No",
GameBlurBackground: api.memory.has("Blur Background") ? api.memory.get("Blur Background") : "No",
VideoPreview: api.memory.has("Video preview") ? api.memory.get("Video preview") : "Yes",
AllowThumbVideo: api.memory.has("Allow video thumbnails") ? api.memory.get("Allow video thumbnails") : "Yes",
AllowThumbVideoAudio: api.memory.has("Play video thumbnail audio") ? api.memory.get("Play video thumbnail audio") : "No",
Expand Down

0 comments on commit f6c69df

Please sign in to comment.