/usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Styles/Breeze/ProgressBarStyle.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 58 59 60 61 62 63 64 65 66 67 68 69 | import QtQuick 2.0
import QtQuick.Controls.Styles 1.1
import "ColorUtils.js" as ColorUtils
ProgressBarStyle {
SystemPalette { id: sysPalette; colorGroup: SystemPalette.Active }
background: Rectangle {
opacity: control.enabled ? 1.0 : 0.5
anchors.centerIn: parent
implicitWidth: 300
implicitHeight: 16
color: "transparent"
Rectangle {
visible: !control.indeterminate
anchors.fill: parent
anchors.margins: 5
color: ColorUtils.adjustAlpha(sysPalette.buttonText, 0.3)
radius: 3
}
}
progress: Rectangle {
id: __progressRoot
opacity: control.enabled ? 1.0 : 0.5
anchors.fill: parent
color: "transparent"
Rectangle {
anchors.fill: parent
anchors.margins: 5
color: sysPalette.highlight
radius: 3
clip: true
Row {
visible: control.indeterminate
anchors.fill: parent
anchors.leftMargin: -28
Repeater {
model: 100
Item {
anchors.verticalCenter: parent.verticalCenter
width: 28
height: 6
Rectangle {
anchors.centerIn: parent
width: 6
height: 14
radius: 0
color: ColorUtils.blendColors(sysPalette.highlight, sysPalette.window, 0.7)
transform: Rotation {
angle: 90
origin.x: 3
origin.y: 7
}
}
}
}
NumberAnimation on anchors.leftMargin {
from: -28
to: 1
duration: 800
loops: Animation.Infinite
running: control.indeterminate
}
}
}
}
}
|