aboutsummaryrefslogtreecommitdiff
path: root/wizard/WizardMenuItem.qml
diff options
context:
space:
mode:
authordsc <xmrdsc@protonmail.com>2019-04-11 03:17:29 +0200
committerdsc <xmrdsc@protonmail.com>2019-04-24 05:37:35 +0200
commit42f7afaefddbf5a7929ddf88dbe7b27e7f40a669 (patch)
treecbbe7fc3e3950354f7a4dcb925b6e1e9dc62efd8 /wizard/WizardMenuItem.qml
parent358e1d23facbd10fefbb2bf04c45b98f0c728ad0 (diff)
downloadmonzero-gui-42f7afaefddbf5a7929ddf88dbe7b27e7f40a669.tar.gz
monzero-gui-42f7afaefddbf5a7929ddf88dbe7b27e7f40a669.tar.xz
monzero-gui-42f7afaefddbf5a7929ddf88dbe7b27e7f40a669.zip
White theme
Diffstat (limited to 'wizard/WizardMenuItem.qml')
-rw-r--r--wizard/WizardMenuItem.qml24
1 files changed, 20 insertions, 4 deletions
diff --git a/wizard/WizardMenuItem.qml b/wizard/WizardMenuItem.qml
index 1ca2e1fb..1649c8aa 100644
--- a/wizard/WizardMenuItem.qml
+++ b/wizard/WizardMenuItem.qml
@@ -26,9 +26,10 @@
// 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.7
+import QtQuick 2.9
import QtQuick.Dialogs 1.2
import QtQuick.Layouts 1.2
+import QtGraphicalEffects 1.0
import QtQuick.Controls 2.0
import "../components" as MoneroComponents
@@ -49,11 +50,24 @@ RowLayout {
Image {
id: icon
+ visible: !isOpenGL || MoneroComponents.Style.blackTheme
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
source: ""
}
+ DropShadow {
+ visible: isOpenGL && !MoneroComponents.Style.blackTheme
+ anchors.fill: icon
+ horizontalOffset: 3
+ verticalOffset: 3
+ radius: 10.0
+ samples: 15
+ color: "#1E000000"
+ source: icon
+ cached: true
+ }
+
MouseArea {
cursorShape: Qt.PointingHandCursor
anchors.fill: parent
@@ -68,12 +82,13 @@ RowLayout {
Layout.fillWidth: true
spacing: 0
- Text {
+ MoneroComponents.TextPlain {
id: header
Layout.fillWidth: true
leftPadding: parent.leftPadding
topPadding: 0
color: MoneroComponents.Style.defaultFontColor
+ opacity: MoneroComponents.Style.blackTheme ? 1.0 : 0.8
font.bold: true
font.family: MoneroComponents.Style.fontRegular.name
font.pixelSize: {
@@ -93,7 +108,7 @@ RowLayout {
}
}
- Text {
+ MoneroComponents.TextPlain {
id: body
Layout.fillWidth: true
color: MoneroComponents.Style.dimmedFontColor
@@ -106,7 +121,8 @@ RowLayout {
}
}
topPadding: 4 * scaleRatio
- wrapMode: Text.WordWrap;
+ wrapMode: Text.WordWrap
+ themeTransition: false
MouseArea {
cursorShape: Qt.PointingHandCursor