Add option to specify the scale factor

fixes #357
fixes #335
fixes #230
This commit is contained in:
Konstantinos Sideris 2018-07-22 19:48:58 +03:00
parent 18695d636d
commit 85e93a88a6
7 changed files with 99 additions and 5 deletions

View file

@ -15,6 +15,23 @@ utils::localUser()
return settings.value("auth/user_id").toString();
}
void
utils::setScaleFactor(float factor)
{
if (factor < 1 || factor > 3)
return;
QSettings settings;
settings.setValue("settings/scale_factor", factor);
}
float
utils::scaleFactor()
{
QSettings settings("nheko", "nheko");
return settings.value("settings/scale_factor", -1).toFloat();
}
bool
utils::respondsToKeyRequests(const std::string &roomId)
{