Class sh::ui::qt::QtUIStyle

class sh::ui::qt::QtUIStyle

Methods for applying the Shallot visible style.

See sh::ui::qt::QtMainWindow about how to get an instance.

Public Functions

QtUIStyle(sh::ui::qt::QtMainWindow *mainwnd)

Constructed only by the infrastructure and made available otherwise.

QColor windowColor()
QColor backgroundColor()
QColor inactiveBackgroundColor()
QColor windowColorHighlighted()
QColor windowColorHalfHighlighted()
QColor windowColorDarkened()
QColor windowColorLikeTitlebar()
QColor linkColor()
QColor titlebarColor()
QColor foregroundColor()
QColor foregroundColorLighter1()
QColor foregroundColorLighter2()
int fontSizeInPt(int r = 100)
QColor mix(float n1, QColor c1, QColor c2)
Sheet createSheet()

Private Members

sh::ui::qt::QtMainWindow *_mainWindow
class Sheet

Public Functions

QString sheet()
Sheet customcss(QString css)
Sheet fontsize_byFactor(int f)
Sheet fontsize_header()
Sheet fontsize_smaller()
Sheet textcolor(QColor color)
Sheet textcolor_lighter1()
Sheet textcolor_lighter2()
Sheet background(QColor color, bool restrictQWidget = true)
Sheet background_highlighted(bool restrictQWidget = true)
Sheet background_halfhighlighted(bool restrictQWidget = true)
Sheet background_darkened(bool restrictQWidget = true)
Sheet background_liketitlebar(bool restrictQWidget = true)
Sheet applyTo(QWidget *widget)
Sheet bold()

Private Functions

Sheet(QtUIStyle *style, QString sheet)

Private Members

QString _sheet
QtUIStyle *_style

Friends

friend class QtUIStyle