|
|
@@ -584,6 +584,9 @@ public:
|
|
|
|
|
|
bool versionChanged() const;
|
|
|
|
|
|
+ const QColor &getBaseBackground() const;
|
|
|
+ void setBaseBackground(const QColor &p_bg);
|
|
|
+
|
|
|
private:
|
|
|
// Look up a config from user and default settings.
|
|
|
QVariant getConfigFromSettings(const QString §ion, const QString &key) const;
|
|
|
@@ -1044,6 +1047,9 @@ private:
|
|
|
// Whether the VNote instance has different version of vnote.ini.
|
|
|
bool m_versionChanged;
|
|
|
|
|
|
+ // Base background of MainWindow.
|
|
|
+ QColor m_baseBackground;
|
|
|
+
|
|
|
// The name of the config file in each directory.
|
|
|
static const QString c_dirConfigFile;
|
|
|
|
|
|
@@ -2714,4 +2720,14 @@ inline bool VConfigManager::versionChanged() const
|
|
|
{
|
|
|
return m_versionChanged;
|
|
|
}
|
|
|
+
|
|
|
+inline const QColor &VConfigManager::getBaseBackground() const
|
|
|
+{
|
|
|
+ return m_baseBackground;
|
|
|
+}
|
|
|
+
|
|
|
+inline void VConfigManager::setBaseBackground(const QColor &p_bg)
|
|
|
+{
|
|
|
+ m_baseBackground = p_bg;
|
|
|
+}
|
|
|
#endif // VCONFIGMANAGER_H
|