mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-19 21:06:09 +00:00
feat: the game page shows the game's logo
The hero on the Games page draws the game's logo instead of the plain title when there is one: Steam's cached logo.png or a chosen logo for Steam games, the resolved logo for added and store games. The title text stays as the fallback and as the logo's description for screen readers.
This commit is contained in:
1 parent
be384ca2a2
commit
8faf88de85
6 files changed
+108
-7
No files matched your search
@@ -1963,7 +1963,7 @@ class MainActivity : ComponentActivity() {
|
||||
steamGamesX64 = scannedX64
|
||||
steamGames = all.map { g ->
|
||||
val newer = current[g.appId]
|
||||
if (newer != null && g.library != Library.ADDED && steamArtRefreshes[g.appId] != artRefreshesAtStart[g.appId]) g.withArt(newer.art, newer.hero, newer.icon) else g
|
||||
if (newer != null && g.library != Library.ADDED && steamArtRefreshes[g.appId] != artRefreshesAtStart[g.appId]) g.withArt(newer.art, newer.hero, newer.icon, newer.logo) else g
|
||||
}
|
||||
shortcutLibraryScanning = false
|
||||
handleGameLink(all)
|
||||
|
||||
Reference in new issue
Block a user