Skip to content

Commit

Permalink
Options
Browse files Browse the repository at this point in the history
  • Loading branch information
MostOriginalIGN committed Jan 8, 2023
1 parent fddb9b3 commit d8e4112
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion LivelyInfo.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"AppVersion": "1.2.0-beta1",
"AppVersion": "1.2.0-beta2",
"Title": "minimalistic desktop",
"Thumbnail": "minimalisticdesktop.png",
"Preview": "minimalisticdesktop.gif",
Expand Down
5 changes: 5 additions & 0 deletions LivelyProperties.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,10 @@
"min": 0,
"step": 1,
"value": 5
},
"middleAlign": {
"type": "checkbox",
"value": true,
"text": "Middle Align Lyrics"
}
}
4 changes: 2 additions & 2 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ version{
height: 10.5rem;
overflow: hidden;
transition: opacity 1s ease;
transform: translateY(-50%);
top: 50%;


}
.lyric-line{
position: absolute;
Expand Down
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@
window.backgroundBlur = backgroundBlur;
console.log(name, val);
$('.background').css('filter', `blur(${backgroundBlur}px)`);
case "middleAlign":
var middleAlign = val;
window.middleAlign = middleAlign;
console.log(name, val);
}
}
</script>
Expand Down
8 changes: 7 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// IMPORTANT IMPORTANT IMPORTANT IMPORTANT IMPORTANT IMPORTANT IMPORTANT IMPORTANT IMPORTANT IMPORTANT IMPORTANT IMPORTANT IMPORTANT IMPORTANT

let version = "1.2.0-beta1";
let version = "1.2.0-beta2";

// CONFIG
let api = 'PUT OPENWEATHERMAP API KEY HERE'
Expand All @@ -15,6 +15,7 @@ let showAMPM = false;
let showLyrics = true;
let syncOffset = 1;
let backgroundBlur = 5;
let middleAlign = true;
// END CONFIG

const wrapper = document.createElement('div');
Expand Down Expand Up @@ -359,12 +360,17 @@ function init() {
showSec = window.showSec;
showAMPM = window.showAMPM;
backgroundBlur = window.backgroundBlur;
middleAlign = window.middleAlign;
console.log("Lively Wallpaper");
} else {
console.log("No Lively Wallpaper")
window.showLyrics = showLyrics;
window.syncOffset = syncOffset;
}
if(middleAlign){
$('#lyrics-container').css('transform','translateY(-50%)');
$('#lyrics-container').css('top','50%');
}
bk.css('filter', `blur(${backgroundBlur}px)`);
getLatest();
setInterval(nextBackground, 1000 * 60);
Expand Down

0 comments on commit d8e4112

Please sign in to comment.