Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Hakan-Abbas authored Jun 10, 2024
1 parent d7547ae commit 8e5fbbd
Show file tree
Hide file tree
Showing 4 changed files with 1,779 additions and 0 deletions.
39 changes: 39 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#include "mainwindow.h"
#include <QApplication>
#include <QStyleFactory>
#include <QFontDatabase>

int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;

qApp->setStyle(QStyleFactory::create("Fusion"));
QFontDatabase::addApplicationFont(":/resource/fonts/Ubuntu.ttf");
QFont fontUbuntu = QFont("Ubuntu Condensed",11);
//fontUbuntu.setStyleStrategy(QFont::PreferAntialias);
QApplication::setFont(fontUbuntu);

QPalette darkPalette;
darkPalette.setColor(QPalette::Window, QColor(53,53,53));
darkPalette.setColor(QPalette::WindowText, Qt::white);
darkPalette.setColor(QPalette::Base, QColor(25,25,25));
darkPalette.setColor(QPalette::AlternateBase, QColor(53,53,53));
darkPalette.setColor(QPalette::ToolTipBase, Qt::gray);
darkPalette.setColor(QPalette::ToolTipText, Qt::black);
darkPalette.setColor(QPalette::Text, Qt::white);
darkPalette.setColor(QPalette::Button, QColor(53,53,53));
darkPalette.setColor(QPalette::ButtonText, Qt::white);
darkPalette.setColor(QPalette::BrightText, Qt::red);
darkPalette.setColor(QPalette::Link, QColor(42, 130, 218));
darkPalette.setColor(QPalette::Highlight, QColor(42, 130, 218));
darkPalette.setColor(QPalette::HighlightedText, Qt::black);
darkPalette.setColor(QPalette::Disabled, QPalette::Text, Qt::darkGray);
darkPalette.setColor(QPalette::Disabled, QPalette::ButtonText, Qt::darkGray);

qApp->setPalette(darkPalette);

w.show();

return a.exec();
}
Loading

0 comments on commit 8e5fbbd

Please sign in to comment.