mirror of
https://github.com/overte-org/overte.git
synced 2025-05-07 05:10:01 +02:00
* canRez(Tmp)Certified() * CertifiedItem beginnings * Skeleton of verifyOwnerChallenge() * Controlled failure; updateLocation() skeletion * Controlled failure on checkout page with ctrl+f * Skeleton Purchases first-use tutorial * Initial progress on new setup * Security pic tip * Skeleton Certificate page * Updates to Certificate * General progress; setup is nearly complete * Better buttons; last step almost done * Initial progress on wallet home * Completed recent transactions * Security page * Scrollbar * Fix auth error text * PassphraseSelection * Change security pic * Minor layout changes; beginnings of emulated header * Various layout changes; wallet nav bar * Help screen * Quick onaccepted change * First pass at new purchases * Small style updates * Some error progress * Lightbox in purchases * Collapse other help answers when clicking on another * REZZED notif * Commerce Lightbox * Lots of new interactions in Purchases * Hook up 'view certificate' * Fix errors, fix close button on cert * Purchases timer; much faster filter * Add debugCheckout * Purchase updates * GlyphButton; separator; Checkout Success; Ledger fix; debug modes * Lock glyph below security pic should be white * Various fixes, round 1 * Circular mask * Passphrase change button fix; TextField error edge highlighting * Recent Activity fixes * Various changes * Standard Security Pic location * Color changes * Filter bar changes * Styling for multiple owned items * Minor language change * Header dropdown (harder than expected) * Small fixes * View backup instructions * marketplaces.js onCommerceScreen * Beginnign of new injection * Marketplace injection changes * Purchase button style changes * More button styling * MY PURCHASES button * marketplace onUsernameChanged * New help QA * Help text changes etc * Downscale security image, reducing filesize * Lots of bugfixes * Cleanup before PR * Only open cert during inspection if commerce switch is on * Help text changes * Purchase status incl. change to confirmed; Help text; Open Explorer to hifikey * Quick glyph change * New 'wallet not set up' flow for when entering Purchases or Checkout without set-up wallet
153 lines
4.8 KiB
QML
153 lines
4.8 KiB
QML
//
|
|
// CommerceLightbox.qml
|
|
// qml/hifi/commerce/common
|
|
//
|
|
// CommerceLightbox
|
|
//
|
|
// Created by Zach Fox on 2017-09-19
|
|
// Copyright 2017 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
import Hifi 1.0 as Hifi
|
|
import QtQuick 2.5
|
|
import QtGraphicalEffects 1.0
|
|
import QtQuick.Controls 1.4
|
|
import "../../../styles-uit"
|
|
import "../../../controls-uit" as HifiControlsUit
|
|
import "../../../controls" as HifiControls
|
|
|
|
// references XXX from root context
|
|
|
|
Rectangle {
|
|
property string titleText;
|
|
property string bodyImageSource;
|
|
property string bodyText;
|
|
property string button1text;
|
|
property string button1method;
|
|
property string button2text;
|
|
property string button2method;
|
|
|
|
readonly property string securityPicBodyText: "When you see your Security Pic, your actions and data are securely making use of your " +
|
|
"Wallet's private keys.<br><br>You can change your Security Pic in your Wallet.";
|
|
|
|
id: root;
|
|
visible: false;
|
|
anchors.fill: parent;
|
|
color: Qt.rgba(0, 0, 0, 0.5);
|
|
z: 999;
|
|
|
|
// This object is always used in a popup.
|
|
// This MouseArea is used to prevent a user from being
|
|
// able to click on a button/mouseArea underneath the popup.
|
|
MouseArea {
|
|
anchors.fill: parent;
|
|
propagateComposedEvents: false;
|
|
}
|
|
|
|
Rectangle {
|
|
anchors.centerIn: parent;
|
|
width: parent.width - 100;
|
|
height: childrenRect.height + 30;
|
|
color: "white";
|
|
|
|
RalewaySemiBold {
|
|
id: titleText;
|
|
text: root.titleText;
|
|
anchors.top: parent.top;
|
|
anchors.topMargin: 30;
|
|
anchors.left: parent.left;
|
|
anchors.leftMargin: 30;
|
|
anchors.right: parent.right;
|
|
anchors.rightMargin: 30;
|
|
height: paintedHeight;
|
|
color: hifi.colors.baseGray;
|
|
size: 24;
|
|
verticalAlignment: Text.AlignTop;
|
|
wrapMode: Text.WordWrap;
|
|
}
|
|
|
|
Image {
|
|
id: bodyImage;
|
|
visible: root.bodyImageSource;
|
|
source: root.bodyImageSource ? root.bodyImageSource : "";
|
|
anchors.top: root.titleText ? titleText.bottom : parent.top;
|
|
anchors.topMargin: root.titleText ? 20 : 30;
|
|
anchors.left: parent.left;
|
|
anchors.leftMargin: 30;
|
|
anchors.right: parent.right;
|
|
anchors.rightMargin: 30;
|
|
height: 140;
|
|
fillMode: Image.PreserveAspectFit;
|
|
mipmap: true;
|
|
}
|
|
|
|
RalewayRegular {
|
|
id: bodyText;
|
|
text: root.bodyText;
|
|
anchors.top: root.bodyImageSource ? bodyImage.bottom : (root.titleText ? titleText.bottom : parent.top);
|
|
anchors.topMargin: root.bodyImageSource ? 20 : (root.titleText ? 20 : 30);
|
|
anchors.left: parent.left;
|
|
anchors.leftMargin: 30;
|
|
anchors.right: parent.right;
|
|
anchors.rightMargin: 30;
|
|
height: paintedHeight;
|
|
color: hifi.colors.baseGray;
|
|
size: 20;
|
|
verticalAlignment: Text.AlignTop;
|
|
wrapMode: Text.WordWrap;
|
|
}
|
|
|
|
Item {
|
|
id: buttons;
|
|
anchors.top: bodyText.bottom;
|
|
anchors.topMargin: 30;
|
|
anchors.left: parent.left;
|
|
anchors.right: parent.right;
|
|
height: 70;
|
|
|
|
// Button 1
|
|
HifiControlsUit.Button {
|
|
color: hifi.buttons.noneBorderlessGray;
|
|
colorScheme: hifi.colorSchemes.light;
|
|
anchors.top: parent.top;
|
|
anchors.bottom: parent.bottom;
|
|
anchors.bottomMargin: 20;
|
|
anchors.left: parent.left;
|
|
anchors.leftMargin: 10;
|
|
width: root.button2text ? parent.width/2 - anchors.leftMargin*2 : parent.width - anchors.leftMargin * 2;
|
|
text: root.button1text;
|
|
onClicked: {
|
|
eval(button1method);
|
|
}
|
|
}
|
|
|
|
// Button 2
|
|
HifiControlsUit.Button {
|
|
visible: root.button2text;
|
|
color: hifi.buttons.noneBorderless;
|
|
colorScheme: hifi.colorSchemes.light;
|
|
anchors.top: parent.top;
|
|
anchors.bottom: parent.bottom;
|
|
anchors.bottomMargin: 20;
|
|
anchors.right: parent.right;
|
|
anchors.rightMargin: 10;
|
|
width: parent.width/2 - anchors.rightMargin*2;
|
|
text: root.button2text;
|
|
onClicked: {
|
|
eval(button2method);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
//
|
|
// FUNCTION DEFINITIONS START
|
|
//
|
|
signal sendToParent(var msg);
|
|
//
|
|
// FUNCTION DEFINITIONS END
|
|
//
|
|
}
|