Improve appearance page more

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2025-03-22 13:58:41 +00:00
parent 06b5ac9a25
commit 99eeef40d9
No known key found for this signature in database
GPG key ID: 5E39D70B4C93C38E
12 changed files with 913 additions and 602 deletions

View file

@ -43,7 +43,7 @@
#include "FileSystem.h"
#include "Json.h"
QString BasicCatPack::path()
QString BasicCatPack::path() const
{
const auto now = QDate::currentDate();
const auto birthday = QDate(now.year(), 11, 1);
@ -100,12 +100,12 @@ QDate ensureDay(int year, int month, int day)
return QDate(year, month, day);
}
QString JsonCatPack::path()
QString JsonCatPack::path() const
{
return path(QDate::currentDate());
}
QString JsonCatPack::path(QDate now)
QString JsonCatPack::path(QDate now) const
{
for (auto var : m_variants) {
QDate startDate = ensureDay(now.year(), var.startTime.month, var.startTime.day);