mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: remember the theme
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
26b206af1f
commit
206df227f8
4 changed files with 28 additions and 1 deletions
|
@ -1250,6 +1250,21 @@ void QMLManager::setTimeThreshold(int time)
|
|||
emit timeThresholdChanged();
|
||||
}
|
||||
|
||||
void QMLManager::setTheme(QString theme)
|
||||
{
|
||||
QSettings s;
|
||||
s.beginGroup("Theme");
|
||||
s.setValue("currentTheme", theme);
|
||||
emit themeChanged();
|
||||
}
|
||||
|
||||
QString QMLManager::theme() const
|
||||
{
|
||||
QSettings s;
|
||||
s.beginGroup("Theme");
|
||||
return s.value("currentTheme", "Blue").toString();
|
||||
}
|
||||
|
||||
bool QMLManager::loadFromCloud() const
|
||||
{
|
||||
return m_loadFromCloud;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue