Commit 868c3d65 authored by Andreas Traczyk's avatar Andreas Traczyk

ui: set webview zoom to screen scaling factor

Change-Id: I2114f07d3179de88da1042ddb78a48e35da78b21
parent 0147bf1b
......@@ -54,6 +54,7 @@
#include "lrcinstance.h"
#include "animationhelpers.h"
#include "ringthemeutils.h"
#include "mainwindow.h"
CallWidget::CallWidget(QWidget* parent) :
NavWidget(parent),
......@@ -262,6 +263,13 @@ CallWidget::navigated(bool to)
void CallWidget::updateCustomUI()
{
auto scalingRatio = MainWindow::instance().getCurrentScalingRatio();
if (scalingRatio > 1.0) {
ui->messageView->setZoomFactor(1.15);
} else {
ui->messageView->setZoomFactor(1.0);
}
}
int
......
......@@ -80,7 +80,7 @@ private:
ScreenEnum lastScr_;
int lastAccountCount_;
Qt::WindowFlags flags_;
float currentScalingRatio_;
float currentScalingRatio_ = 1.0;
void readSettingsFromRegistry();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment