Patch attached. Pressing of buttons were difficult to see mainly due to small buttons and small color distance between pressed and un-pressed state. This fix enlarges the buttons a little, and choses a different color for the pressed state. In addtion, the title fontsize was huge (for example showing in trip headers). It is now a little smaller smaller.
Signed-off-by: Jan Mulder <jlmul...@xs4all.nl>
>From 08c969dd11d68f2d93dbbd58fb4271c255166546 Mon Sep 17 00:00:00 2001 From: Jan Mulder <jlmul...@xs4all.nl> Date: Fri, 22 Jan 2016 13:07:53 +0100 Subject: [PATCH 2/2] [PATCH] QML-UI. Improved button style and font size change Pressing of buttons were difficult to see mainly due to small buttons and small color distance between pressed and un-pressed state. This fix enlarges the buttons a little, and choses a different color for the pressed state. In addtion, the title fontsize was huge (for example showing in trip headers). It is now a little smaller smaller. Signed-off-by: Jan Mulder <jlmul...@xs4all.nl> --- qt-mobile/qml/SubsurfaceButton.qml | 8 ++++---- qt-mobile/qml/main.qml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/qt-mobile/qml/SubsurfaceButton.qml b/qt-mobile/qml/SubsurfaceButton.qml index 5f8bb6f..669da4f 100644 --- a/qt-mobile/qml/SubsurfaceButton.qml +++ b/qt-mobile/qml/SubsurfaceButton.qml @@ -6,10 +6,10 @@ import org.kde.plasma.mobilecomponents 0.2 as MobileComponents Button { style: ButtonStyle { padding { - top: MobileComponents.Units.smallSpacing - left: MobileComponents.Units.smallSpacing * 2 - right: MobileComponents.Units.smallSpacing * 2 - bottom: MobileComponents.Units.smallSpacing + top: MobileComponents.Units.smallSpacing * 2 + left: MobileComponents.Units.smallSpacing * 4 + right: MobileComponents.Units.smallSpacing * 4 + bottom: MobileComponents.Units.smallSpacing * 2 } background: Rectangle { border.width: 1 diff --git a/qt-mobile/qml/main.qml b/qt-mobile/qml/main.qml index e69e910..959e463 100644 --- a/qt-mobile/qml/main.qml +++ b/qt-mobile/qml/main.qml @@ -191,10 +191,10 @@ MobileComponents.ApplicationWindow { QtObject { id: subsurfaceTheme - property int titlePointSize: Math.round(fontMetrics.font.pointSize * 1.5) + property int titlePointSize: Math.round(fontMetrics.font.pointSize * 1.2) property int smallPointSize: Math.round(fontMetrics.font.pointSize * 0.8) property color accentColor: "#2d5b9a" - property color shadedColor: "#224575" + property color shadedColor: "#132744" property color accentTextColor: "#ececec" } -- 2.7.0
_______________________________________________ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface