Skip to content

Commit

Permalink
design: add Christmas splash screen
Browse files Browse the repository at this point in the history
  • Loading branch information
acolombier committed Dec 16, 2024
1 parent fe75021 commit 7de07fc
Show file tree
Hide file tree
Showing 3 changed files with 3,496 additions and 2 deletions.
3,493 changes: 3,493 additions & 0 deletions res/images/mixxx-icon-logo-christmas.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions res/mixxx.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<file>images/heart_icon_dark.svg</file>
<file>images/heart_icon_rainbow.svg</file>
<file>images/mixxx-icon-logo-symbolic.svg</file> <!-- default launch image -->
<file>images/mixxx-icon-logo-christmas.svg</file> <!-- christmas launch image -->
<file>images/skin_preview_placeholder.png</file>
<file>images/ic_checkmark.svg</file>
<file>images/ic_delete.svg</file>
Expand Down
4 changes: 2 additions & 2 deletions src/skin/legacy/launchimage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "moc_launchimage.cpp"

namespace {
bool isIn2024ChristmasHollidays() {
bool isIn2024ChristmasHolidays() {
auto currentDate = QDate::currentDate();
return currentDate >= QDate(2024, 12, 24) &&
currentDate <= QDate(2025, 1, 6);
Expand All @@ -20,7 +20,7 @@ bool isIn2024ChristmasHollidays() {

LaunchImage::LaunchImage(QWidget* pParent, const QString& styleSheet)
: QWidget(pParent) {
if (isIn2024ChristmasHollidays()) {
if (isIn2024ChristmasHolidays()) {
setStyleSheet(
"LaunchImage { background-color: #202020; }"
"QLabel { "
Expand Down

0 comments on commit 7de07fc

Please sign in to comment.