mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-17 16:46:31 +00:00
added borders to all box art, because it looked weird
This commit is contained in:
parent
2674de45ea
commit
96514784a9
@ -175,3 +175,6 @@ main {
|
|||||||
.current-game {
|
.current-game {
|
||||||
border: 3px solid green;
|
border: 3px solid green;
|
||||||
}
|
}
|
||||||
|
.not-current-game {
|
||||||
|
border: 1px solid black;
|
||||||
|
}
|
@ -239,12 +239,15 @@ function showApps() {
|
|||||||
$('#game-'+app.id).on('click', startGame);
|
$('#game-'+app.id).on('click', startGame);
|
||||||
|
|
||||||
if (api.currentGame === app.id){ // stylize the currently running game
|
if (api.currentGame === app.id){ // stylize the currently running game
|
||||||
$('#game-'+ api.currentGame).addClass("current-game");
|
// destylize it, if it has the not-current-game style
|
||||||
|
if ($('#game-'+ app.id).hasClass("not-current-game")) $('#game-'+ app.id).removeClass("not-current-game");
|
||||||
|
// add the current-game style
|
||||||
|
$('#game-'+ app.id).addClass("current-game");
|
||||||
} else {
|
} else {
|
||||||
if ($('#game-'+ api.id).hasClass("current-game")) { // destylize it otherwise
|
// destylize it, if it has the current-game style
|
||||||
console.log('stripping now inactive game: ' + app.title);
|
if ($('#game-'+ app.id).hasClass("current-game")) $('#game-'+ app.id).removeClass("current-game");
|
||||||
$('#game-'+ api.id).removeClass("current-game");
|
// add the not-current-game style
|
||||||
}
|
$('#game-'+ app.id).addClass('not-current-game');
|
||||||
}
|
}
|
||||||
|
|
||||||
}, function (failedPromise) {
|
}, function (failedPromise) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user