Add option to specify the scale factor
fixes #357 fixes #335 fixes #230
This commit is contained in:
parent
18695d636d
commit
85e93a88a6
7 changed files with 99 additions and 5 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue