Skip to content
Snippets Groups Projects
Commit 868c3d65 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

ui: set webview zoom to screen scaling factor

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