Warning, /maui/mauikit/src/csd.6/Default/CSD.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 2.15 0002 import QtQuick.Controls 2.15 0003 0004 import org.mauikit.controls 1.3 as Maui 0005 0006 Control 0007 { 0008 id: control 0009 0010 property int iconSize : 16 0011 0012 padding: Maui.Style.space.small 0013 implicitHeight: _layout.implicitHeight + topPadding + bottomPadding 0014 implicitWidth: _layout.implicitWidth + leftPadding + rightPadding 0015 spacing: Maui.Style.space.medium 0016 0017 background: null 0018 0019 contentItem: Row 0020 { 0021 id: _layout 0022 spacing: control.spacing 0023 0024 ToolSeparator 0025 { 0026 height: 8 0027 anchors.verticalCenter: parent.verticalCenter 0028 } 0029 0030 Repeater 0031 { 0032 model: buttonsModel 0033 delegate: pluginButton 0034 } 0035 } 0036 0037 Component 0038 { 0039 id: pluginButton 0040 0041 AbstractButton 0042 { 0043 id: _button 0044 0045 visible: modelData === "A" ? canMaximize : true 0046 0047 hoverEnabled: true 0048 0049 implicitWidth: control.iconSize 0050 implicitHeight: control.iconSize 0051 0052 focusPolicy: Qt.NoFocus 0053 0054 Maui.CSDButton 0055 { 0056 id: button 0057 style: "Default" 0058 type: mapType(modelData) 0059 isHovered: _button.hovered 0060 isPressed: _button.pressed 0061 isFocused: isActiveWindow 0062 isMaximized: maximized 0063 } 0064 0065 contentItem: Maui.Icon 0066 { 0067 smooth: true 0068 source: button.source 0069 0070 color: Maui.Theme.textColor 0071 0072 Behavior on color 0073 { 0074 Maui.ColorTransition{} 0075 } 0076 } 0077 0078 0079 onClicked: 0080 { 0081 console.log("NITRUX CSD BUTTON CLICKED", button.type) 0082 buttonClicked(button.type) 0083 } 0084 } 0085 } 0086 }