wip: no endpoint, role rework, visual ratio

This commit is contained in:
Hane 2024-08-14 17:02:57 +02:00
commit d4db24ed7d
12 changed files with 184 additions and 57 deletions

View file

@ -46,16 +46,19 @@ int main (int argc, char* argv[]) {
* log_debugcpp(a.toStdString());
* }
*/
QApplication::setStyle(new MixerStyle(QStyleFactory::create("Fusion")));
//QApplication::setFont(font);
QPalette palette = QGuiApplication::palette();
//todo: ez full apply os accent colorw
palette.setColor(QPalette::Active, QPalette::Highlight, QColor(255, 192, 203, 200));//QColor(30,30,30,100));
QGuiApplication::setPalette(palette);
//Check if running
//https://stackoverflow.com/questions/48060989/qt-show-application-if-currently-running
initialize_file_log();
atexit(closeDebugFileLog);
//Check if running
//https://stackoverflow.com/questions/48060989/qt-show-application-if-currently-running
//std::set_terminate(closeDebugFileLog2);
if (!isSingleInstanceRunning("Mixer"))
startSingleInstanceServer("Mixer");
@ -71,7 +74,7 @@ int main (int argc, char* argv[]) {
//INIT FRONT
QScopedPointer<QApplication> app(createApplication(argc, argv));
MainWindow window = MainWindow();
//window.setSizePolicy(QSizePolicy::Fixed, QSizePolicy::QSizePolicy::MinimumExpanding)
QApplication::setQuitOnLastWindowClosed(false);