23 #include <QTextStream>
31 StyleSheet(QLatin1String style_sheet_name, QLatin1String file_name)
32 : styleSheetName(style_sheet_name), fileName(file_name)
34 QLatin1String styleSheetName;
35 QLatin1String fileName;
38 static inline QString read_stylesheet(
const QString &stylesheet)
40 QFile file(stylesheet);
41 file.open(QFile::ReadOnly | QFile::Text);
42 QTextStream stream(&file);
43 return stream.readAll();
52 static QString currentStyle;
53 static void resetStyle();
55 static const QStringList styles;
56 static const QString defaultStyle;
57 static const QList<StyleSheet> styleSheets;
60 static void setStyle(
const QString &style_key);
61 static void setStyle(
const StyleSheet &style_sheet);
62 static void setStyle(
const QPalette &palette);
63 static QPalette darkPalette();
64 static const QString& style();