Skip to content

Commit 30d05f3

Browse files
Merge pull request #303 from Esri/michael-tims/Linux_base_ppi_scaleFactor
Update Linux base PPI for scaleFactor
2 parents e4d9c62 + 18294eb commit 30d05f3

18 files changed

+18
-18
lines changed

Import/Esri/ArcGISRuntime/Toolkit/Controls/Callout.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ Item {
215215
/*! \internal */
216216
property int padding: 3 * displayScaleFactor
217217
/*! \internal */
218-
property real displayScaleFactor: (Screen.logicalPixelDensity * 25.4) / (Qt.platform.os === "windows" ? 96 : 72)
218+
property real displayScaleFactor: (Screen.logicalPixelDensity * 25.4) / (Qt.platform.os === "windows" || Qt.platform.os === "linux" ? 96 : 72)
219219
/*! \internal */
220220
property real anchorPointx: 0
221221
/*! \internal */

Import/Esri/ArcGISRuntime/Toolkit/Controls/CppApi/ArcGISCompass.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Item {
4949
}
5050
\endcode
5151
*/
52-
property real scaleFactor: (Screen.logicalPixelDensity * 25.4) / (Qt.platform.os === "windows" ? 96 : 72)
52+
property real scaleFactor: (Screen.logicalPixelDensity * 25.4) / (Qt.platform.os === "windows" || Qt.platform.os === "linux" ? 96 : 72)
5353

5454
/*!
5555
\qmlproperty bool autoHideCompass

Import/Esri/ArcGISRuntime/Toolkit/Controls/CppApi/CoordinateConversion.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Item {
5151
}
5252
\endcode
5353
*/
54-
property real scaleFactor: (Screen.logicalPixelDensity * 25.4) / (Qt.platform.os === "windows" ? 96 : 72)
54+
property real scaleFactor: (Screen.logicalPixelDensity * 25.4) / (Qt.platform.os === "windows" || Qt.platform.os === "linux" ? 96 : 72)
5555

5656
/*!
5757
\qmlproperty int textColor

Import/Esri/ArcGISRuntime/Toolkit/Controls/CppApi/TimeSlider.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Item {
8787
the width or height of UI elements so that the sizes appear similar
8888
(relative to screen size) across devices.
8989
*/
90-
property real scaleFactor: (Screen.logicalPixelDensity * 25.4) / (Qt.platform.os === "windows" ? 96 : 72)
90+
property real scaleFactor: (Screen.logicalPixelDensity * 25.4) / (Qt.platform.os === "windows" || Qt.platform.os === "linux" ? 96 : 72)
9191

9292
/*!
9393
\qmlproperty int textColor

Import/Esri/ArcGISRuntime/Toolkit/Controls/LocationButton20.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ StyleButton {
2525
id: locationButton
2626
property bool isActive: mapview && mapview.locationDisplay.started
2727
property int maxModes: 4;
28-
property real displayScaleFactor: (Screen.logicalPixelDensity * 25.4) / (Qt.platform.os === "windows" ? 96 : 72)
28+
property real displayScaleFactor: (Screen.logicalPixelDensity * 25.4) / (Qt.platform.os === "windows" || Qt.platform.os === "linux" ? 96 : 72)
2929
property MapView mapview: null
3030

3131
visible: mapview && mapview.locationDisplay

Import/Esri/ArcGISRuntime/Toolkit/Controls/NorthArrow20.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Item {
2525
property MapView mapview: null
2626
property real size: 40
2727
property bool resetOnClick: true
28-
property real displayScaleFactor: (Screen.logicalPixelDensity * 25.4) / (Qt.platform.os === "windows" ? 96 : 72)
28+
property real displayScaleFactor: (Screen.logicalPixelDensity * 25.4) / (Qt.platform.os === "windows" || Qt.platform.os === "linux" ? 96 : 72)
2929

3030
signal clicked()
3131

Import/Esri/ArcGISRuntime/Toolkit/Controls/OverviewMap20.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Item {
3131
property var overviewLayer: null
3232
property string fillColor : "#60000000"
3333
property real zoomRatio: 10
34-
property real displayScaleFactor: (Screen.logicalPixelDensity * 25.4) / (Qt.platform.os === "windows" ? 96 : 72)
34+
property real displayScaleFactor: (Screen.logicalPixelDensity * 25.4) / (Qt.platform.os === "windows" || Qt.platform.os === "linux" ? 96 : 72)
3535

3636
width: 200 * displayScaleFactor
3737
height: width * 0.665

Import/Esri/ArcGISRuntime/Toolkit/Controls/PopupStackView.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Item {
6767
id: popupStackView
6868

6969
/*! \internal */
70-
property real displayScaleFactor: (Screen.logicalPixelDensity * 25.4) / (Qt.platform.os === "windows" ? 96 : 72)
70+
property real displayScaleFactor: (Screen.logicalPixelDensity * 25.4) / (Qt.platform.os === "windows" || Qt.platform.os === "linux" ? 96 : 72)
7171

7272
/*========================================
7373
Configurable properties

Import/Esri/ArcGISRuntime/Toolkit/Controls/PopupView.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Item {
6868
id: popupView
6969

7070
/*! \internal */
71-
property real displayScaleFactor: (Screen.logicalPixelDensity * 25.4) / (Qt.platform.os === "windows" ? 96 : 72)
71+
property real displayScaleFactor: (Screen.logicalPixelDensity * 25.4) / (Qt.platform.os === "windows" || Qt.platform.os === "linux" ? 96 : 72)
7272

7373
/*========================================
7474
Configurable properties

Import/Esri/ArcGISRuntime/Toolkit/Controls/PopupViewBase.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Item {
3434
property color attributeValueTextColorInternal
3535
property color closeButtonColorInternal
3636
property var popupManagerInternal: null
37-
property real displayScaleFactor: (Screen.logicalPixelDensity * 25.4) / (Qt.platform.os === "windows" ? 96 : 72)
37+
property real displayScaleFactor: (Screen.logicalPixelDensity * 25.4) / (Qt.platform.os === "windows" || Qt.platform.os === "linux" ? 96 : 72)
3838
property var displayedFields: null
3939
property var attachments: null
4040
property bool showAttachments: false

0 commit comments

Comments
 (0)