Warning, /rolisteam/rolisteam/src/libraries/qml_views/rolistyle/Button.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 2.15 0002 import QtQuick.Controls 2.15 0003 import QtQuick.Controls.impl 2.15 0004 import QtQuick.Templates 2.15 as T 0005 import Customization 1.0 0006 0007 T.Button { 0008 id: control 0009 property QtObject style: Theme.styleSheet("Palette") 0010 0011 implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset, 0012 implicitContentWidth + leftPadding + rightPadding) 0013 implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset, 0014 implicitContentHeight + topPadding + bottomPadding) 0015 0016 padding: 6 0017 horizontalPadding: padding + 2 0018 spacing: 6 0019 0020 icon.width: 24 0021 icon.height: 24 0022 icon.color: control.checked || control.highlighted ? control.style.brightText : 0023 control.flat && !control.down ? (control.visualFocus ? control.style.highlight : control.style.windowText) : control.style.buttonText 0024 0025 contentItem: IconLabel { 0026 spacing: control.spacing 0027 mirrored: control.mirrored 0028 display: control.display 0029 0030 icon: control.icon 0031 text: control.text 0032 font: control.font 0033 color: control.checked || control.highlighted ? control.style.brightText : 0034 control.flat && !control.down ? (control.visualFocus ? control.style.highlight : control.style.windowText) : control.style.buttonText 0035 } 0036 0037 background: Rectangle { 0038 implicitWidth: 100 0039 implicitHeight: 40 0040 visible: !control.flat || control.down || control.checked || control.highlighted 0041 color: Color.blend(control.checked || control.highlighted ? control.style.dark : control.style.button, 0042 control.style.mid, control.down ? 0.5 : 0.0) 0043 border.color: control.style.highlight 0044 border.width: control.visualFocus ? 2 : 0 0045 } 0046 } 0047