Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(StarryNight): randomize shooting star positions and improve background of playlist #1121

Open
wants to merge 34 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
61b7fa0
fix(StarryNight): fix zero playbar width on startup and add instructi…
b-chen00 Apr 19, 2024
e9e2828
Merge branch 'spicetify:master' into master
b-chen00 Apr 24, 2024
0ae5ad2
Added forest green color scheme
jal1077 Apr 24, 2024
dee4a0c
Merge pull request #1 from b-chen00/julissa
b-chen00 Apr 28, 2024
e97ea3d
fixed explicit icon letter E being invisible
b-chen00 May 5, 2024
84d8f50
add several color schemes
b-chen00 May 5, 2024
ab58aee
Added the sunrise theme with orange and yellow
jal1077 May 6, 2024
3a8165a
Added theme with orange and yellow
jal1077 May 6, 2024
14379ed
fixed broken preview image path
b-chen00 May 8, 2024
436469e
Merge branch 'spicetify:master' into master
b-chen00 May 8, 2024
60c8a5b
Merge branch 'master' into julissa
b-chen00 May 8, 2024
d2007ba
Merge pull request #2 from b-chen00/julissa
b-chen00 May 8, 2024
5ab2612
add orange theme and fix broken marketplace preview image path
b-chen00 May 8, 2024
d1e71ae
add orange color scheme to starrynight in themes.md
b-chen00 May 8, 2024
be08974
sort color schemes alphabetically for marketplace color scheme selection
b-chen00 May 8, 2024
5302b83
fix template areas for experimental ui navbar
b-chen00 May 27, 2024
84ba5f4
remove square box shadow that remained from making cover art a circle
b-chen00 May 27, 2024
6a2ffb1
Merge branch 'spicetify:master' into master
b-chen00 May 27, 2024
cf8a03c
attempt to make stars more round instead of a square pixel but might …
b-chen00 May 27, 2024
b5897a2
fix invisible text on button and make some more backgrounds transparent
b-chen00 Aug 22, 2024
6c358e2
fix missing shooting stars
b-chen00 Aug 22, 2024
24cbb7a
remove unnecessary console log
b-chen00 Aug 22, 2024
b31ee17
fix invisible text when hovering search bar
b-chen00 Aug 22, 2024
a769db2
Merge branch 'master' into master
b-chen00 Aug 22, 2024
fc69490
fixed bad merge conflict resolution
b-chen00 Aug 22, 2024
29d6201
fix text visiblity issue on artist page and occasional missing shooti…
b-chen00 Sep 20, 2024
4f35b2a
remove duplicate css rule
b-chen00 Sep 20, 2024
12e5f06
Merge branch 'master' into master
b-chen00 Sep 20, 2024
d3bf909
remove spacing between playbar and right sidebar. fix width adjustmen…
b-chen00 Oct 1, 2024
10ebc3e
fixed background color of playlist and artist page
b-chen00 Oct 24, 2024
555ee61
updated highlight color for galaxy color scheme
b-chen00 Oct 24, 2024
eccd39e
randomize shooting stars
b-chen00 Oct 24, 2024
cdd3055
Merge branch 'master' into master
b-chen00 Oct 24, 2024
e58a3ce
fixed missing friend activity panel
b-chen00 Oct 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions StarryNight/color.ini
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ button-active = FFF3C4
button = FFF3C4
button-disabled = 939bb6

highlight = 9f45b0
highlight-elevated = 9f45b0
highlight = 9d00ff
highlight-elevated = 9d00ff

shadow = 000000
selected-row = FFFFFF
Expand Down
19 changes: 19 additions & 0 deletions StarryNight/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,24 @@ waitForElement(['.Root__top-container'], ([topContainer]) => {
shootingstar.style.animationDelay = `${Math.floor(Math.random() * 7)}s`;

backgroundContainer.appendChild(shootingstar);

shootingstar.addEventListener('animationend', () => {
if (Math.random() < 0.75) {
shootingstar.style.top = '-4px'; // hidden off screen when animation is delayed
shootingstar.style.right = `${random(0, 90)}%`;
} else {
shootingstar.style.top = `${random(0, 50)}%`;
shootingstar.style.right = '-4px'; // hidden when animation is delayed
}

shootingstar.style.animation = 'none'; // Remove animation

void shootingstar.offsetWidth;

shootingstar.style.animation = '';
shootingstar.style.animationDuration = `${
Math.floor(Math.random() * 4) + 3
}s`;
});
}
});
35 changes: 34 additions & 1 deletion StarryNight/user.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
grid-template-areas:
"left-sidebar main-view now-playing-bar"
"left-sidebar main-view right-sidebar";
grid-template-rows: auto auto 1fr;
}

.global-nav .Root__top-container {
Expand All @@ -26,8 +27,40 @@
"left-sidebar main-view right-sidebar" !important;
}

.Root__globalNav {
background-color: #00000000 !important;
}

.ffFwfKcPDbmAPLXzxzKq:before {
background-color: #00000000 !important;
}

.I0bVSxvqA3rm5HvciMap {
--bgColor: #00000000 !important;
}

.I0bVSxvqA3rm5HvciMap::after {
--bgColor: #00000000 !important;
}

.PeLrpasyfBW8ql_bmoAi {
background-color: #00000000 !important;
background-image: none !important;
}

.PkOz5g82CaoKk1J3GX0e {
background-color: #00000000 !important;
background-image: none !important;
}

.sv5suqIPUwjgUF_BzM41 {
transform: none !important;
}

.Root__right-sidebar {
width: min-content;
height: auto !important;
min-height: 100% !important;
}

.Root__now-playing-bar {
Expand Down Expand Up @@ -355,7 +388,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
height: 4px;
background: var(--spice-shooting-star);
border-radius: 50%;
animation: animate 3s linear infinite;
animation: animate 3s linear;
left: initial;
z-index: -1;
}
Expand Down