/usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Styles/Breeze/ButtonStyle.qml is in qml-module-qtquick-controls-styles-breeze 4:5.12.4-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | import QtQuick 2.0
import QtQuick.Controls.Styles 1.1
import "ColorUtils.js" as ColorUtils
ButtonStyle {
SystemPalette { id: sysPalette; colorGroup: SystemPalette.Active }
background: Item {
property color borderColor: ColorUtils.blendColors(sysPalette.windowText, sysPalette.window, 0.75)
opacity: control.enabled ? 1.0 : 0.5
implicitHeight: 32
implicitWidth: 96
Rectangle {
anchors.centerIn: parent
implicitHeight: parent.height - 2
implicitWidth: parent.width - 2
radius: 2.5
color: ColorUtils.adjustAlpha(sysPalette.shadow, 0.2)
transform: Translate {x: 1; y: 1}
}
Rectangle {
anchors.centerIn: parent
implicitWidth: parent.width - 2
implicitHeight: parent.height - 2
border.width: control.activeFocus ? 0: 1
border.color: (control.activeFocus || control.hovered) ? sysPalette.highlight : borderColor
radius: 2.5
color: control.pressed || control.activeFocus ? sysPalette.highlight : sysPalette.button
gradient: Gradient {
GradientStop {
position: 0.0
color: control.activeFocus ? Qt.lighter(sysPalette.highlight, 1.03) :
Qt.lighter(sysPalette.button, 1.01)
}
GradientStop {
position: 1.0
color: control.activeFocus ? Qt.darker(sysPalette.highlight, 1.10) :
Qt.darker(sysPalette.button, 1.03)
}
}
transform: Translate {x: control.pressed ? 1 : 0; y: control.pressed ? 1 : 0}
}
}
label: Item {
opacity: control.enabled ? 1.0 : 0.5
implicitWidth: __buttonText.implicitWidth + 16
implicitHeight: __buttonText.implicitHeight + 8
Text {
id:__buttonText
anchors.centerIn: parent
text: control.text
color: control.activeFocus ? sysPalette.highlightedText : sysPalette.buttonText
}
transform: Translate {x: control.pressed ? 1 : 0; y: control.pressed ? 1 : 0}
}
}
|