From 2fa1bd25a8f563d85296e96e3df73dfb99d043f3 Mon Sep 17 00:00:00 2001 From: Zach Fox Date: Tue, 15 Aug 2017 16:41:04 -0700 Subject: [PATCH] Clipping and mipping! --- interface/resources/qml/hifi/commerce/Checkout.qml | 1 + interface/resources/qml/hifi/commerce/Inventory.qml | 2 ++ .../resources/qml/hifi/commerce/SecurityImageSelection.qml | 6 ++++-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/interface/resources/qml/hifi/commerce/Checkout.qml b/interface/resources/qml/hifi/commerce/Checkout.qml index 435aea83fb..b9d15b61e4 100644 --- a/interface/resources/qml/hifi/commerce/Checkout.qml +++ b/interface/resources/qml/hifi/commerce/Checkout.qml @@ -99,6 +99,7 @@ Rectangle { width: height; anchors.verticalCenter: parent.verticalCenter; fillMode: Image.PreserveAspectFit; + mipmap: true; } // Title Bar text diff --git a/interface/resources/qml/hifi/commerce/Inventory.qml b/interface/resources/qml/hifi/commerce/Inventory.qml index 488efb3872..d7ffae7c3c 100644 --- a/interface/resources/qml/hifi/commerce/Inventory.qml +++ b/interface/resources/qml/hifi/commerce/Inventory.qml @@ -76,6 +76,7 @@ Rectangle { width: height; anchors.verticalCenter: parent.verticalCenter; fillMode: Image.PreserveAspectFit; + mipmap: true; } // Title Bar text @@ -209,6 +210,7 @@ Rectangle { } ListView { id: inventoryContentsList; + clip: true; // Anchors anchors.top: inventoryContentsLabel.bottom; anchors.topMargin: 8; diff --git a/interface/resources/qml/hifi/commerce/SecurityImageSelection.qml b/interface/resources/qml/hifi/commerce/SecurityImageSelection.qml index c030f642b8..7775f1ff9c 100644 --- a/interface/resources/qml/hifi/commerce/SecurityImageSelection.qml +++ b/interface/resources/qml/hifi/commerce/SecurityImageSelection.qml @@ -158,6 +158,7 @@ Rectangle { GridView { id: securityImageGrid; + clip: true; // Anchors anchors.fill: parent; currentIndex: -1; @@ -170,12 +171,13 @@ Rectangle { Item { anchors.fill: parent; Image { - width: parent.width - 20; - height: parent.height - 20; + width: parent.width - 8; + height: parent.height - 8; source: sourcePath; anchors.horizontalCenter: parent.horizontalCenter; anchors.verticalCenter: parent.verticalCenter; fillMode: Image.PreserveAspectFit; + mipmap: true; } } MouseArea {