Added stylesheet

This commit is contained in:
Tats
2014-04-29 17:48:03 -04:00
parent e400285730
commit 3f4dd9979c
2 changed files with 20 additions and 0 deletions
+8
View File
@@ -18,14 +18,22 @@ int main(int argc, char *argv[])
return 1;
}
// Load translation.
QTranslator translator;
translator.load("mapmap_fr");
app.installTranslator(&translator);
// Create main window.
MainWindow win;
// Load stylesheet.
QFile stylesheet("mapmap.qss");
stylesheet.open(QFile::ReadOnly);
app.setStyleSheet(QLatin1String(stylesheet.readAll()));
//win.setLocale(QLocale("fr"));
// Launch program.
win.show();
return app.exec();
+12
View File
@@ -0,0 +1,12 @@
/*
Colors:
White: #f6f5f5
Dark gray: #323541
Darker gray: #272a36
*/
QMainWindow
{
background-color: #f6f5f5;
}