Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fixes #3023

Merged
merged 2 commits into from
Jan 22, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Small fixes:
- count DP on Desktop
- centered position marker
- fixed visibility of Blur label
- fixed warning on Notification view
iiLubos committed Jan 22, 2024

Verified

This commit was signed with the committer’s verified signature.
renovate-bot Mend Renovate
commit fb3f4856245872f701d91e1f8caed0cf07edc327
4 changes: 2 additions & 2 deletions app/qml/components/MMMapBlurLabel.qml
Original file line number Diff line number Diff line change
@@ -21,14 +21,14 @@ Item {
anchors.fill: fastBlur
color: __style.forestColor
opacity: 0.8
radius: 21
radius: fastBlur.height / 2
}

FastBlur {
id: fastBlur

width: parent.width
height: 42 * __dp
height: 41 * __dp

radius: 32
opacity: 0.8
1 change: 0 additions & 1 deletion app/qml/components/MMNotificationView.qml
Original file line number Diff line number Diff line change
@@ -20,7 +20,6 @@ Item {

anchors.top: parent.top
width: parent.width
height: contentHeight
clip: true

model: __notificationModel
4 changes: 2 additions & 2 deletions app/qml/map/MMPositionMarker.qml
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ Item {
required property real xPos
required property real yPos
property real direction: 0
property int size: 24 * __dp
property int size: 23 * __dp
property real accuracyRingSize: 50 * __dp

property bool trackingMode: false
@@ -74,7 +74,7 @@ Item {
width: root.size * 2 / 3
height: width
radius: width / 2
color: __style.earthColor
color: root.trackingMode ? __style.earthColor : __style.forestColor

Rectangle {
anchors.centerIn: parent
2 changes: 0 additions & 2 deletions gallery/helper.cpp
Original file line number Diff line number Diff line change
@@ -56,7 +56,6 @@ qreal Helper::calculateScreenDpr()

qreal Helper::calculateDpRatio()
{
#if MOBILE_OS
const QList<QScreen *> screens = QGuiApplication::screens();

if ( !screens.isEmpty() )
@@ -66,7 +65,6 @@ qreal Helper::calculateDpRatio()
qreal realDpr = calculateScreenDpr();
return realDpr / screen->devicePixelRatio();
}
#endif
return 1;
}