kopia lustrzana https://gitlab.com/eliggett/wfview
Fixed interesting stylesheet issue.
rodzic
31fcaff210
commit
45ce7c0ca7
|
@ -2,15 +2,53 @@
|
|||
#include "ui_calibrationwindow.h"
|
||||
#include "logcategories.h"
|
||||
|
||||
#include <QStyleFactory>
|
||||
|
||||
calibrationWindow::calibrationWindow(QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::calibrationWindow)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
QString sheet = QString("#main { background-image: url(:resources/dark_wide.png); }");
|
||||
this->setObjectName("main");
|
||||
this->setStyleSheet(sheet);
|
||||
//QString sheet = QString("#main { background-image: url(:resources/dark_wide.png); }");
|
||||
|
||||
QString modSheet = "QDialog { \
|
||||
color: #eff0f1;\
|
||||
background-color: transparent;\
|
||||
background-image: url(:resources/dark_wide.png);\
|
||||
selection-background-color: #3daee9;\
|
||||
selection-color: #eff0f1;\
|
||||
background-clip: border;\
|
||||
border-image: none;\
|
||||
border: 0px transparent black;\
|
||||
outline: 0;\
|
||||
}";
|
||||
|
||||
QString modSheet2 = "QWidget { \
|
||||
color: #eff0f1;\
|
||||
background-color: transparent;\
|
||||
selection-background-color: #3daee9;\
|
||||
selection-color: #eff0f1;\
|
||||
background-clip: border;\
|
||||
border-image: none;\
|
||||
border: 0px transparent black;\
|
||||
outline: 0;\
|
||||
}\n";
|
||||
|
||||
//this->setObjectName("main");
|
||||
//this->setStyleSheet(sheet);
|
||||
|
||||
this->setStyleSheet(modSheet + modSheet2);
|
||||
|
||||
|
||||
|
||||
//ui->verticalLayoutWidget->setObjectName("vlayout");
|
||||
//sheet = QString("#vlayout { background-color: transparent; }");
|
||||
//sheet = QString("#vlayout { background-image: url(:resources/dark_wide.png); }");
|
||||
//ui->verticalLayoutWidget->setStyleSheet(sheet);
|
||||
//ui->verticalLayoutWidget->setStyle(QStyleFactory::create("Fusion"));
|
||||
|
||||
|
||||
|
||||
ui->calCourseSlider->setDisabled(true);
|
||||
ui->calCourseSpinbox->setDisabled(true);
|
||||
|
|
Ładowanie…
Reference in New Issue