I use Drawer from QtQuick.Controls 2.2
Drawer {
id: drawer
width: parent.width/2
height: parent.height
modal: true
...
}
With style:
[Controls]
Style=Material
[Material]
Theme=Dark
Accent=Red
Primary=#c64949
I want to change a color of the Drawer shadow. Style Material uses a white color for the shadow (that to the right of the open Drawer).
-- Edit by Bounty Sponsor --
I have discovered the shadow is defined, ie. here: http://code.qt.io/cgit/qt/qtquickcontrols2.git/tree/src/imports/controls/Drawer.qml
as:
T.Overlay.modal: Rectangle {
color: Color.transparent(control.palette.shadow, 0.5)
}
T.Overlay.modeless: Rectangle {
color: Color.transparent(control.palette.shadow, 0.12)
}
Without defining an entirely new Style, how can one modify them as one-off?
I presumably can redefine an entirely custom control.. but there ought to be a compatible version?