From 78d68d00e0640ae58f88875e2683cfc00f88e1a8 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Tue, 7 Feb 2023 12:23:14 +0100 Subject: [PATCH] qml: override default Material styling for toolbar, use grays --- electrum/gui/qml/components/main.qml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/electrum/gui/qml/components/main.qml b/electrum/gui/qml/components/main.qml index ec31d5720..822da4ac2 100644 --- a/electrum/gui/qml/components/main.qml +++ b/electrum/gui/qml/components/main.qml @@ -2,6 +2,7 @@ import QtQuick 2.6 import QtQuick.Layouts 1.0 import QtQuick.Controls 2.3 import QtQuick.Controls.Material 2.0 +import QtQuick.Controls.Material.impl 2.12 import QtQml 2.6 import QtMultimedia 5.6 @@ -35,6 +36,17 @@ ApplicationWindow header: ToolBar { id: toolbar + background: Rectangle { + implicitHeight: 48 + color: Material.dialogColor + + layer.enabled: true + layer.effect: ElevationEffect { + elevation: 4 + fullWidth: true + } + } + ColumnLayout { spacing: 0 width: parent.width @@ -52,6 +64,12 @@ ApplicationWindow Layout.preferredHeight: 1 } + Image { + source: '../../icons/wallet.png' + Layout.preferredWidth: constants.iconSizeSmall + Layout.preferredHeight: constants.iconSizeSmall + } + Label { Layout.preferredHeight: Math.max(implicitHeight, toolbarTopLayout.height) text: stack.currentItem.title