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(Celebrate): Halloween #601

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions data/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,11 @@ video > overlay > revealer > controls {
.theme-intersex.about .app-version:hover{background:radial-gradient(closest-side circle at center,#ffd800 44%,#7902aa 44%,#7902aa 56%,#ffd800 56%);}
.theme-autism.about .app-version{background:linear-gradient(to bottom,#e5304355,#e5304355 16.66%,#f6834755 16.66%,#f6834755 33.33%,#fac85755 33.33%,#fac85755 66.67%,#99d67155 66.67%,#99d67155 83.33%,#21ae7555 83.33%,#21ae7555);}
.theme-autism.about .app-version:hover{background:linear-gradient(to bottom,#e53043,#e53043 16.66%,#f68347 16.66%,#f68347 33.33%,#fac857 33.33%,#fac857 66.67%,#99d671 66.67%,#99d671 83.33%,#21ae75 83.33%,#21ae75);}
.theme-halloween.about .main-page{background-image:radial-gradient(225px circle at 10% 6%,@light_1 0%,@light_4 80%,#000 100%);margin-top:-46px;padding-top:46px;}
.theme-halloween.about .main-page .title-1,.theme-halloween.about windowcontrols{color:@orange_3;text-shadow:-1px -1px 0#000,1px -1px 0#000,-1px 1px 0#000,1px 1px 0#000;}
.theme-halloween.about .app-version{background: alpha(@orange_3,.5);}
.theme-halloween.about .app-version:hover{background:@orange_3;}
.theme-halloween.about preferencesgroup{filter:drop-shadow(0 10px 1rem @orange_3);}

.lww-scale-emoji-hover .lww-emoji {
transition-duration: 150ms;
Expand Down
7 changes: 6 additions & 1 deletion src/Utils/Celebrate.vala
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ public class Tuba.Celebrate {
ARO,
ACE,
NON_BINARY,
AUTISM;
AUTISM,
HALLOWEEN;

public string to_string () {
switch (this) {
Expand Down Expand Up @@ -45,6 +46,8 @@ public class Tuba.Celebrate {
return "non-binary";
case AUTISM:
return "autism";
case HALLOWEEN:
return "halloween";
default:
assert_not_reached ();
}
Expand Down Expand Up @@ -78,6 +81,8 @@ public class Tuba.Celebrate {
{ 23, 9, CelebrateStyle.BI },
// Agender Pride Day
{ 19, 5, CelebrateStyle.AGENDER },
// 🎃 Halloween 🕸️
{ 31, 10, CelebrateStyle.HALLOWEEN },
};

const Celebration[] CELEBRATIONS_WEEKS = {
Expand Down
2 changes: 1 addition & 1 deletion tests/Celebrate.test.vala
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private TestCelebrate[] get_celebrate_tests () {
},
TestCelebrate () {
date = new GLib.DateTime.local (2023, 10, 31, 0, 0, 0),
css_classes = { "theme-black-history" }
css_classes = { "theme-black-history", "theme-halloween" }
},
TestCelebrate () { date = new GLib.DateTime.local (2023, 9, 30, 23, 59, 0), css_classes = { } },
TestCelebrate () { date = new GLib.DateTime.local (2023, 11, 1, 0, 0, 0), css_classes = { } },
Expand Down