Fix streched background 81/15981/1 5.99.3 5.99.4 flounder/5.99.3 flounder/5.99.4 flounder_5.99.3 flounder_5.99.4
authorTadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
Fri, 3 Aug 2018 09:55:22 +0000 (09:55 +0000)
committerTadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
Fri, 3 Aug 2018 10:41:54 +0000 (10:41 +0000)
Fix side effect by improving multi-resolution support.

Bug-AGL: SPEC-1611

Change-Id: I697f6be3230f73a913fb1e605f67a23395921fb9
Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
imports/qtquickcontrols2aglstyle/ApplicationWindow.qml
imports/qtquickcontrols2aglstyle/images/AGL_HMI_Blue_Background_NoCar-01.png

index 6ea9645..0bf9cb6 100644 (file)
@@ -20,17 +20,16 @@ import QtQuick.Templates 2.0 as T
 
 T.ApplicationWindow {
     id: root
 
 T.ApplicationWindow {
     id: root
-    width: 1080
-    height: 1920 - 218 - 215
     visible: true
     flags: Qt.FramelessWindowHint
 
     font.family: 'Robota'
 
     background: Image {
     visible: true
     flags: Qt.FramelessWindowHint
 
     font.family: 'Robota'
 
     background: Image {
-        anchors.fill: parent
-        anchors.topMargin:  -218
-        anchors.bottomMargin: -215
+        anchors {
+            fill: parent
+            centerIn: parent
+        }
         source: './images/AGL_HMI_Blue_Background_NoCar-01.png'
     }
 }
         source: './images/AGL_HMI_Blue_Background_NoCar-01.png'
     }
 }
index 357c204..120c784 100644 (file)
Binary files a/imports/qtquickcontrols2aglstyle/images/AGL_HMI_Blue_Background_NoCar-01.png and b/imports/qtquickcontrols2aglstyle/images/AGL_HMI_Blue_Background_NoCar-01.png differ