aboutsummaryrefslogtreecommitdiff
path: root/components/StandardDialog.qml
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-04-25 13:05:54 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-04-25 13:05:54 -0500
commitfb4dfd0ea8a09999a7433e4d0d9ad1aa5009821d (patch)
treecbbe7fc3e3950354f7a4dcb925b6e1e9dc62efd8 /components/StandardDialog.qml
parent358e1d23facbd10fefbb2bf04c45b98f0c728ad0 (diff)
parent42f7afaefddbf5a7929ddf88dbe7b27e7f40a669 (diff)
downloadmonzero-gui-fb4dfd0ea8a09999a7433e4d0d9ad1aa5009821d.tar.gz
monzero-gui-fb4dfd0ea8a09999a7433e4d0d9ad1aa5009821d.tar.xz
monzero-gui-fb4dfd0ea8a09999a7433e4d0d9ad1aa5009821d.zip
Merge pull request #2060
42f7afa White theme (xmrdsc)
Diffstat (limited to 'components/StandardDialog.qml')
-rw-r--r--components/StandardDialog.qml27
1 files changed, 18 insertions, 9 deletions
diff --git a/components/StandardDialog.qml b/components/StandardDialog.qml
index 15069a33..ba5b198e 100644
--- a/components/StandardDialog.qml
+++ b/components/StandardDialog.qml
@@ -26,7 +26,7 @@
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-import QtQuick 2.0
+import QtQuick 2.9
import QtQuick.Controls 2.0
import QtQuick.Dialogs 1.2
import QtQuick.Layouts 1.1
@@ -34,6 +34,7 @@ import QtQuick.Controls.Styles 1.4
import QtQuick.Window 2.0
import "../components" as MoneroComponents
+import "effects/" as MoneroEffects
Rectangle {
id: root
@@ -56,12 +57,18 @@ Rectangle {
signal rejected()
signal closeCallback();
- Image {
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.top: parent.top
- anchors.bottom: parent.bottom
- source: "../images/middlePanelBg.jpg"
+ // background
+ MoneroEffects.GradientBackground {
+ anchors.fill: parent
+ fallBackColor: MoneroComponents.Style.middlePanelBackgroundColor
+ initialStartColor: MoneroComponents.Style.middlePanelBackgroundGradientStart
+ initialStopColor: MoneroComponents.Style.middlePanelBackgroundGradientStop
+ blackColorStart: MoneroComponents.Style._b_middlePanelBackgroundGradientStart
+ blackColorStop: MoneroComponents.Style._b_middlePanelBackgroundGradientStop
+ whiteColorStart: MoneroComponents.Style._w_middlePanelBackgroundGradientStart
+ whiteColorStop: MoneroComponents.Style._w_middlePanelBackgroundGradientStop
+ start: Qt.point(0, 0)
+ end: Qt.point(height, width)
}
// Make window draggable
@@ -188,11 +195,13 @@ Rectangle {
height: 48 * scaleRatio
color: "transparent"
- Image {
+ MoneroEffects.ImageMask {
anchors.centerIn: parent
width: 16 * scaleRatio
height: 16 * scaleRatio
- source: "../images/close.png"
+ image: MoneroComponents.Style.titleBarCloseSource
+ color: MoneroComponents.Style.defaultFontColor
+ opacity: 0.75
}
MouseArea {