Skip to content

Commit

Permalink
Small UI improvements for xCloud
Browse files Browse the repository at this point in the history
Enabled random backgrounds on authentication view
  • Loading branch information
unknownskl committed Sep 13, 2021
1 parent 84ebea9 commit d1b2474
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
11 changes: 6 additions & 5 deletions src/assets/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ body {
#xCloudGames {
display: flex;
flex-wrap: wrap;
padding-bottom: 40px;
}

#xCloudContent {
Expand All @@ -384,7 +385,7 @@ body {
#xCloudGames div.titleWrap {
width: 25%;
padding-top: 40px;
padding-bottom: 40px;
/* padding-bottom: 40px; */
}

#xCloudGames div.titleItem {
Expand All @@ -400,8 +401,8 @@ body {
padding-bottom: 5px;
font-size: 14px;
opacity: 0.7;
top: 8px;
left: 8px;
top: 5px;
left: 5px;
}

#xCloudGames img.titleImage {
Expand Down Expand Up @@ -630,8 +631,8 @@ button.btn {
}

button.btn-small {
height: 30px;
padding-top: 4px;
height: 24px;
padding-top: 0px;
min-width: 20px;
}

Expand Down
6 changes: 3 additions & 3 deletions src/frontend/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ export default class Application {
if(event.view === 'auth'){
const backgrounds = [
'linear-gradient(0deg, rgba(26,27,30,1) 0%, rgba(26,27,30,1) 50%, rgba(0,212,255,0) 100%), url(\'assets/images/background_1.jpg\')',
// 'linear-gradient(0deg, rgba(26,27,30,1) 0%, rgba(26,27,30,1) 50%, rgba(0,212,255,0) 100%), url(\'assets/images/background_2.jpg\')',
// 'linear-gradient(0deg, rgba(26,27,30,1) 0%, rgba(26,27,30,1) 50%, rgba(0,212,255,0) 100%), url(\'assets/images/background_3.jpg\')',
// 'linear-gradient(0deg, rgba(26,27,30,1) 0%, rgba(26,27,30,1) 50%, rgba(0,212,255,0) 100%), url(\'assets/images/background_4.jpg\')',
'linear-gradient(0deg, rgba(26,27,30,1) 0%, rgba(26,27,30,1) 50%, rgba(0,212,255,0) 100%), url(\'assets/images/background_2.jpg\')',
'linear-gradient(0deg, rgba(26,27,30,1) 0%, rgba(26,27,30,1) 50%, rgba(0,212,255,0) 100%), url(\'assets/images/background_3.jpg\')',
'linear-gradient(0deg, rgba(26,27,30,1) 0%, rgba(26,27,30,1) 50%, rgba(0,212,255,0) 100%), url(\'assets/images/background_4.jpg\')',
]

const authView = (<HTMLInputElement>document.getElementById('authView'))
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/xcloudview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export default class xCloudView {
renderHtml += '<div class="titleWrap"><div class="titleItem">'
renderHtml += ' <img class="titleImage" src="'+this._titles[title].image+'" />'
renderHtml += ' <span class="titleName">'+this._titles[title].name+'</span>'
renderHtml += ' <button class="btn btn-primary btn-small btn-xcloud-start" id="xcloud_stream_'+this._titles[title].titleId+'">Play!</button>'
renderHtml += ' <button class="btn btn-primary btn-small btn-xcloud-start" id="xcloud_stream_'+this._titles[title].titleId+'">Play</button>'
renderHtml += '<br style="clear: both;"></div></div>'

renderTitles.push(this._titles[title].titleId)
Expand Down

0 comments on commit d1b2474

Please sign in to comment.