Showing the changes to interface/src/ui/FramelessDialog.cpp (1 of 5 files). Show all
Unified · Split
| @@ -6,13 +6,17 @@ · 5 unmodified lines | ||
| 6 | 6 | // |
| 7 | 7 | // |
| 8 | 8 | |
| 9 | −#include "FramelessDialog.h" | |
| 10 | −#include <QPushButton> | |
| 11 | 9 | #include <QFile> |
| 10 | +#include <QPushButton> | |
| 11 | + | |
| 12 | +#include "Application.h" | |
| 13 | +#include "FramelessDialog.h" | |
| 12 | 14 | |
| 13 | 15 | FramelessDialog::FramelessDialog(QWidget *parent, Qt::WindowFlags flags) : QDialog(parent, flags | Qt::FramelessWindowHint) { |
| 14 | − QFile styleSheet("resources/styles/global.qss"); | |
| 16 | + | |
| 17 | + QFile styleSheet(Application::resourcesPath() + "styles/global.qss"); | |
| 15 | 18 | if (styleSheet.open(QIODevice::ReadOnly)) { |
| 19 | + QDir::setCurrent(Application::resourcesPath()); | |
| 16 | 20 | setStyleSheet(styleSheet.readAll()); |
| 17 | 21 | } |
| 18 | 22 | setWindowOpacity(0.95); |