mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 21:05:31 +08:00
refs #335, style sheet fixes / improvements and support methods
style sheets: * style sheets with background textures * scroll area / toolbox style sheet fix * floating dock widgets * kept 1st version of stylesheets in backup directory * removed maininfoarea stylesheet, no longer needed with fixed style sheet code * central paintEvent method to enable style sheets in derived widgets * detect frameless windows, dynamic properties
This commit is contained in:
committed by
Roland Winklmeier
parent
65c2ed9db4
commit
c965fbb785
@@ -89,9 +89,9 @@ namespace BlackGui
|
||||
}
|
||||
|
||||
//! File name maininfoarea.qss
|
||||
static const QString &fileNameMainInfoArea()
|
||||
static const QString &fileNameInfoWindow()
|
||||
{
|
||||
static const QString f("maininfoarea.qss");
|
||||
static const QString f("stylesheetinfo.qss");
|
||||
return f;
|
||||
}
|
||||
|
||||
@@ -109,6 +109,13 @@ namespace BlackGui
|
||||
return s;
|
||||
}
|
||||
|
||||
//! Transparent background color
|
||||
static const QString &transparentBackgroundColor()
|
||||
{
|
||||
static const QString t = "background-color: transparent;";
|
||||
return t;
|
||||
}
|
||||
|
||||
//! qss directory
|
||||
static QString qssDirectory();
|
||||
|
||||
@@ -121,6 +128,10 @@ namespace BlackGui
|
||||
//! Font as combined weight and style
|
||||
static QString fontAsCombinedWeightStyle(const QFont &font);
|
||||
|
||||
//! Use style sheets in derived widgets
|
||||
//! \sa QWidget::paintEvent
|
||||
static void useStyleSheetInDerivedWidget(QWidget *derivedWidget);
|
||||
|
||||
signals:
|
||||
//! Sheets have been changed
|
||||
void styleSheetsChanged();
|
||||
|
||||
Reference in New Issue
Block a user