mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-17 08:36:42 +00:00
added title below image, need to do some more styling to whole interface eventually
This commit is contained in:
parent
1778513544
commit
7d598ebaf4
@ -177,4 +177,8 @@ main {
|
||||
}
|
||||
.not-current-game {
|
||||
border: 1px solid black;
|
||||
}
|
||||
}
|
||||
.game-title {
|
||||
color: #000;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
@ -235,7 +235,7 @@ function showApps() {
|
||||
appList.forEach(function (app) {
|
||||
api.getBoxArt(app.id).then(function (resolvedPromise) {
|
||||
var imageBlob = new Blob([resolvedPromise], {type: "image/png"});
|
||||
$("#game-grid").append($("<div>", {html:$("<img \>", {src: URL.createObjectURL(imageBlob), id: 'game-'+app.id, name: app.title }), class: 'box-art mdl-cell mdl-cell--3-col'}));
|
||||
$("#game-grid").append($("<div>", {html:$("<img \>", {src: URL.createObjectURL(imageBlob), id: 'game-'+app.id, name: app.title }), class: 'box-art mdl-cell mdl-cell--3-col'}).append($("<span>", {html: app.title, class:"game-title"})));
|
||||
$('#game-'+app.id).on('click', startGame);
|
||||
|
||||
if (api.currentGame === app.id){ // stylize the currently running game
|
||||
|
Loading…
x
Reference in New Issue
Block a user