QSpinBox, QDoubleSpinBox styling

This commit is contained in:
stojce 2014-03-15 22:07:29 +01:00
parent 716979071c
commit ebd7dff4b9
2 changed files with 33 additions and 17 deletions

View file

@ -33,33 +33,48 @@ QPushButton {
padding: 10px 15px;
}
QSpinBox {
QSpinBox, QDoubleSpinBox {
padding: 5px;
border-width: 1;
}
QDoubleSpinBox::up-arrow,
QSpinBox::up-arrow {
background-image: url(styles/up.svg);
background-repeat: no-repeat;
background-position: center center;
}
QDoubleSpinBox::down-arrow,
QSpinBox::down-arrow {
background-image: url(styles/down.svg);
background-repeat: no-repeat;
background-position: center center;
}
QDoubleSpinBox::up-button,
QSpinBox::up-button,
QDoubleSpinBox::down-button,
QSpinBox::down-button {
width: 26px;
height: 13px;
background-color: #f2f2f2;
border-color: #ccc;
border-style: solid;
border-width: 1px;
}
QDoubleSpinBox::up-button,
QSpinBox::up-button {
width: 25px;
height: 18px;
background-image: url(styles/up.svg);
background-repeat: no-repeat;
border: 1px #ccc solid;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
}
QDoubleSpinBox::down-button,
QSpinBox::down-button {
width: 25px;
height: 18px;
background-image: url(styles/down.svg);
background-repeat: no-repeat;
border: 1px #ccc solid;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
}
QSlider {

View file

@ -19,6 +19,7 @@ FramelessDialog::FramelessDialog(QWidget *parent, Qt::WindowFlags flags) : QDial
QDir::setCurrent(Application::resourcesPath());
setStyleSheet(styleSheet.readAll());
}
setWindowOpacity(0.95);
setAttribute(Qt::WA_DeleteOnClose);
}