From 145bac9ddda066186e72dfca48a6bb0de158de05 Mon Sep 17 00:00:00 2001 From: Evangelos Paterakis Date: Wed, 11 Oct 2023 22:08:39 +0300 Subject: [PATCH 1/2] feat(Celebrate): Halloween --- data/style.css | 5 +++++ src/Utils/Celebrate.vala | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/data/style.css b/data/style.css index 35326c2fe..b09a08229 100644 --- a/data/style.css +++ b/data/style.css @@ -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; diff --git a/src/Utils/Celebrate.vala b/src/Utils/Celebrate.vala index f6d7ce01e..735801a83 100644 --- a/src/Utils/Celebrate.vala +++ b/src/Utils/Celebrate.vala @@ -15,7 +15,8 @@ public class Tuba.Celebrate { ARO, ACE, NON_BINARY, - AUTISM; + AUTISM, + HALLOWEEN; public string to_string () { switch (this) { @@ -45,6 +46,8 @@ public class Tuba.Celebrate { return "non-binary"; case AUTISM: return "autism"; + case HALLOWEEN: + return "halloween"; default: assert_not_reached (); } @@ -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 = { From 636d691044eedef14f64eae95df82854adda78bd Mon Sep 17 00:00:00 2001 From: Evangelos Paterakis Date: Wed, 11 Oct 2023 22:26:58 +0300 Subject: [PATCH 2/2] fix: tests --- tests/Celebrate.test.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Celebrate.test.vala b/tests/Celebrate.test.vala index 093ec0a0d..0c77c9f07 100644 --- a/tests/Celebrate.test.vala +++ b/tests/Celebrate.test.vala @@ -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 = { } },