mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-09 20:38:56 +00:00
font size changer and updates (#1322)
This commit is contained in:
@@ -17,6 +17,7 @@ static bool default_forceMetal = false;
|
||||
static QString default_lastVersionStarted = "";
|
||||
static int default_localDocsChunkSize = 256;
|
||||
static QString default_chatTheme = "Dark";
|
||||
static QString default_fontSize = "Small";
|
||||
static int default_localDocsRetrievalSize = 3;
|
||||
static bool default_localDocsShowReferences = true;
|
||||
static QString default_networkAttribution = "";
|
||||
@@ -493,6 +494,24 @@ void MySettings::setChatTheme(const QString &u)
|
||||
emit chatThemeChanged();
|
||||
}
|
||||
|
||||
QString MySettings::fontSize() const
|
||||
{
|
||||
QSettings setting;
|
||||
setting.sync();
|
||||
return setting.value("fontSize", default_fontSize).toString();
|
||||
}
|
||||
|
||||
void MySettings::setFontSize(const QString &u)
|
||||
{
|
||||
if(fontSize() == u)
|
||||
return;
|
||||
|
||||
QSettings setting;
|
||||
setting.setValue("fontSize", u);
|
||||
setting.sync();
|
||||
emit fontSizeChanged();
|
||||
}
|
||||
|
||||
bool MySettings::forceMetal() const
|
||||
{
|
||||
return m_forceMetal;
|
||||
|
Reference in New Issue
Block a user