File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -128,15 +128,20 @@ void MainWindow::loadStyleSheet() {
128128 QFile styleFile (" :/stylesheet.qss" );
129129
130130 if (!styleFile.exists ()) {
131- // Try loading from file system
131+ // Try loading from current directory (for development)
132132 styleFile.setFileName (" stylesheet.qss" );
133133 }
134134
135+ if (!styleFile.exists ()) {
136+ // Try loading from system installation path
137+ styleFile.setFileName (" /usr/share/alg-app-store/stylesheet.qss" );
138+ }
139+
135140 if (styleFile.open (QFile::ReadOnly)) {
136141 QString styleSheet = QLatin1String (styleFile.readAll ());
137142 qApp->setStyleSheet (styleSheet);
138143 styleFile.close ();
139- Logger::info (" Stylesheet loaded successfully" );
144+ Logger::info (QString ( " Stylesheet loaded successfully from: %1 " ). arg (styleFile. fileName ()) );
140145 } else {
141146 Logger::warning (" Could not load stylesheet" );
142147 }
You can’t perform that action at this time.
0 commit comments