mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
set default theme to moonlight
This commit is contained in:
parent
220fba09a9
commit
3b046ab0ee
@ -42,6 +42,8 @@ void MainConfig::init()
|
||||
m_widgetConfig->init(appJobj, userJobj);
|
||||
|
||||
if (isVersionChanged()) {
|
||||
doVersionSpecificOverride();
|
||||
|
||||
// Update user config.
|
||||
writeToSettings();
|
||||
}
|
||||
@ -111,3 +113,9 @@ QString MainConfig::getVersion(const QJsonObject &p_jobj)
|
||||
const auto metadataObj = p_jobj.value(QStringLiteral("metadata")).toObject();
|
||||
return metadataObj.value(QStringLiteral("version")).toString();
|
||||
}
|
||||
|
||||
void MainConfig::doVersionSpecificOverride()
|
||||
{
|
||||
// In a new version, we may want to change one value by force.
|
||||
m_coreConfig->setTheme(QStringLiteral("moonlight"));
|
||||
}
|
||||
|
@ -44,6 +44,8 @@ namespace vnotex
|
||||
|
||||
QJsonObject saveMetaData() const;
|
||||
|
||||
void doVersionSpecificOverride();
|
||||
|
||||
// Version of VNoteX.
|
||||
QString m_version;
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
"version" : "3.0.0-beta.3"
|
||||
},
|
||||
"core" : {
|
||||
"theme" : "native",
|
||||
"theme" : "moonlight",
|
||||
"locale" : "",
|
||||
"shortcuts" : {
|
||||
"FullScreen" : "F11",
|
||||
|
Loading…
x
Reference in New Issue
Block a user