123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- import QtQuick
- import QtQuick.Templates as T
- import QtQuick.Controls.Material
- import QtQuick.Controls.Material.impl
- T.ToolBar {
- id: control
- Material.elevation: 4
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
- Material.foreground: Material.toolTextColor
- spacing: 16
- background: Rectangle {
- implicitHeight: 48
- color: control.Material.toolBarColor
- layer.enabled: control.Material.elevation > 0
- layer.effect: ElevationEffect {
- elevation: control.Material.elevation
- fullWidth: true
- }
- }
- }
|