|
@@ -28,6 +28,7 @@ namespace vnotex
|
|
|
EditorHighlightStyle,
|
|
EditorHighlightStyle,
|
|
|
MarkdownEditorHighlightStyle,
|
|
MarkdownEditorHighlightStyle,
|
|
|
Cover,
|
|
Cover,
|
|
|
|
|
+ Icon,
|
|
|
Max
|
|
Max
|
|
|
};
|
|
};
|
|
|
|
|
|
|
@@ -44,6 +45,8 @@ namespace vnotex
|
|
|
// Return the file path of the theme or just the theme name.
|
|
// Return the file path of the theme or just the theme name.
|
|
|
QString getMarkdownEditorHighlightTheme() const;
|
|
QString getMarkdownEditorHighlightTheme() const;
|
|
|
|
|
|
|
|
|
|
+ bool getIconMonochrome() const;
|
|
|
|
|
+
|
|
|
QString name() const;
|
|
QString name() const;
|
|
|
|
|
|
|
|
static bool isValidThemeFolder(const QString &p_folder);
|
|
static bool isValidThemeFolder(const QString &p_folder);
|
|
@@ -69,6 +72,10 @@ namespace vnotex
|
|
|
// If not specified, will use m_editorHighlightTheme.
|
|
// If not specified, will use m_editorHighlightTheme.
|
|
|
// Valid only when KSyntaxCodeBlockHighlighter is used.
|
|
// Valid only when KSyntaxCodeBlockHighlighter is used.
|
|
|
QString m_markdownEditorHighlightTheme;
|
|
QString m_markdownEditorHighlightTheme;
|
|
|
|
|
+
|
|
|
|
|
+ // Whether the icon of the current theme uses monochrome.
|
|
|
|
|
+ // Default is monochrome.
|
|
|
|
|
+ bool m_IconMonochrome = true;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
typedef QJsonObject Palette;
|
|
typedef QJsonObject Palette;
|