mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Added stylesheet
This commit is contained in:
@@ -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
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Colors:
|
||||
White: #f6f5f5
|
||||
Dark gray: #323541
|
||||
Darker gray: #272a36
|
||||
*/
|
||||
|
||||
QMainWindow
|
||||
{
|
||||
background-color: #f6f5f5;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user