grrrr.
Now with attachment.

On Tue, Jan 26, 2016 at 3:04 PM, Tomaz Canabrava <[email protected]> wrote:

> Fixes ugly screens for the Mobile on Desktop.
> Thanks sebas and notmart for helping me find that.
>
>
> On Tue, Jan 26, 2016 at 2:49 PM, Tomaz Canabrava <[email protected]>
> wrote:
>
>> cloud storage is being used from mobile and desktop, but we are using
>> different functions to deal with that. this is the first step to deal with
>> that.
>>
>>
>
From 4c4c3aa0a281ca3534134e6619c3d7fc1630f9a4 Mon Sep 17 00:00:00 2001
From: Tomaz Canabrava <[email protected]>
Date: Tue, 26 Jan 2016 14:55:23 -0200
Subject: [PATCH 5/5] Round placement sizes of TopBar.qml

I was having really ugly fonts here and I actually blamed
QML for that (while I still think it is it's fault), but we
where using pixel fractions. So every time we may hit a pixel
fraction, round that.

Signed-off-by: Tomaz Canabrava <[email protected]>
---
 qt-mobile/qml/TopBar.qml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/qt-mobile/qml/TopBar.qml b/qt-mobile/qml/TopBar.qml
index f87bc62..5eeef7d 100644
--- a/qt-mobile/qml/TopBar.qml
+++ b/qt-mobile/qml/TopBar.qml
@@ -14,7 +14,7 @@ Rectangle {
 	property bool goBack: (stackView.depth > 1)
 
 	color: subsurfaceTheme.accentColor
-	Layout.minimumHeight: MobileComponents.Units.gridUnit * 2.5
+	Layout.minimumHeight: Math.round(MobileComponents.Units.gridUnit * 2.5)
 	Layout.fillWidth: true
 	Layout.margins: 0
 	RowLayout {
@@ -32,7 +32,7 @@ Rectangle {
 			Image {
 				id: mainMenuIcon
 				source: "qrc:/qml/main-menu.png"
-				width: MobileComponents.Units.gridUnit * 1.5
+				width: Math.round(MobileComponents.Units.gridUnit * 1.5)
 				height: width
 				anchors {
 					top: parent.top
@@ -60,17 +60,17 @@ Rectangle {
 					topMargin: MobileComponents.Units.smallSpacing * -1
 					left: parent.left
 				}
-				width: MobileComponents.Units.gridUnit * 1.7
+				width: Math.round(MobileComponents.Units.gridUnit * 1.7)
 				height: width
 			}
 			MobileComponents.Label {
 				text: qsTr("Subsurface-mobile")
-				font.pointSize: MobileComponents.Theme.defaultFont.pointSize * 1.3
+				font.pointSize: Math.round(MobileComponents.Theme.defaultFont.pointSize * 1.3)
 				height: subsurfaceLogo.height * 2
 				anchors {
 					left: subsurfaceLogo.right
 					bottom: subsurfaceLogo.bottom
-					leftMargin: MobileComponents.Units.gridUnit / 2
+					leftMargin: Math.round(MobileComponents.Units.gridUnit / 2)
 				}
 				font.weight: Font.Light
 				verticalAlignment: Text.AlignBottom
@@ -91,7 +91,7 @@ Rectangle {
 			Image {
 				id: contextMenuIcon
 				source: "qrc:/qml/context-menu.png"
-				width: MobileComponents.Units.gridUnit * 1.5
+				width: Math.round(MobileComponents.Units.gridUnit * 1.5)
 				height: width
 				anchors {
 					top: parent.top
-- 
2.7.0

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to