quill/calendarapp.cpp

33 lines
703 B
C++
Raw Normal View History

2021-03-25 05:00:19 -07:00
#include "calendarapp.h"
#include "ui_calendarapp.h"
#include <QFile>
calendarApp::calendarApp(QWidget *parent) :
QWidget(parent),
ui(new Ui::calendarApp)
{
ui->setupUi(this);
2022-04-03 20:26:15 -07:00
calendarApp::setFont(QFont("u001"));
ui->backBtn->setFont(QFont("Inter"));
ui->backBtn->setStyleSheet("font-weight: bold");
2021-03-25 05:00:19 -07:00
// Stylesheet
2022-04-03 20:26:15 -07:00
QFile stylesheetFile("/mnt/onboard/.adds/inkbox/eink.qss");
2021-03-25 05:00:19 -07:00
stylesheetFile.open(QFile::ReadOnly);
this->setStyleSheet(stylesheetFile.readAll());
stylesheetFile.close();
ui->backBtn->setProperty("type", "borderless");
}
calendarApp::~calendarApp()
{
delete ui;
}
void calendarApp::on_backBtn_clicked()
{
calendarApp::close();
}