Skip to content

Commit

Permalink
tweaks/fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
asdfgasfhsn committed May 20, 2019
1 parent 6611fd3 commit c69dfa0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions GameGridItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ Rectangle {
signal doubleClicked()
signal imageLoaded(int imgWidth, int imgHeight)

scale: selected ? 1.5 : 1.0
scale: selected ? 1.5 : 1
opacity: 1 //selected ? 1 : 0.666
z: selected ? 3 : 1

Behavior on scale { PropertyAnimation { duration: 333 } }
Behavior on opacity { PropertyAnimation { duration: 333 } }
Behavior on scale { PropertyAnimation { duration: 150 } }
// Behavior on opacity { PropertyAnimation { duration: 333 } }

layer.enabled: selected ? true : false
layer.effect: DropShadow {
Expand Down
4 changes: 2 additions & 2 deletions GameVideoItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ Item {
}

asynchronous: true
visible: game.assets.screenshots[0] || game.assets.boxFront || ""
visible: game.assets.screenshots[0] || game.assets.boxFront || false

smooth: true

source: (steam) ? game.assets.logo : game.assets.screenshots[0] || ""
sourceSize { width: 256; height: 256 }
fillMode: Image.PreserveAspectRatio
fillMode: Image.PreserveAspectCrop

property bool rounded: true
property bool adapt: true
Expand Down
14 changes: 7 additions & 7 deletions theme.qml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ FocusScope {
// }
// }

Timer {
id: timer
repeat: true
interval: 1000 / fps
onTriggered: { frame += 1 }
running: parent.running
}
// Timer {
// id: timer
// repeat: true
// interval: 1000 / fps
// onTriggered: { frame += 1 }
// running: parent.running
// }

StarField {
anchors {
Expand Down
6 changes: 3 additions & 3 deletions utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ function formatLastPlayed(lastPlayed) {
function formatPlayTime(playTime) {
var minutes = Math.ceil(playTime / 60)
if (minutes <= 90)
return Math.round(minutes) + " M";
return Math.round(minutes) + " Mins";

return parseFloat((minutes / 60).toFixed(1)) + " H"
return parseFloat((minutes / 60).toFixed(1)) + " Hours"
}

function systemColor(input_str) {
var colors = ["#711521", "#C1121C", "#C1121C", "#F7BA0B", "#007243", "#00387b", "#514689", "#a7a4e0", "#17569b"]
var colors = ["#711521", "#C1121C", "#F7BA0B", "#007243", "#00387b", "#514689", "#17569b"]
var colorCount = colors.length
// From: https://www.raphnet.net/design/console_colors/index.php
// Famicom #711521
Expand Down

0 comments on commit c69dfa0

Please sign in to comment.