mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-02-10 19:52:24 +00:00
Split into multible files (dedup code)
This commit is contained in:
committed by
Tim Gromeyer
parent
2fe9724da5
commit
6ad36560a8
31
linux/PodColumn.qml
Normal file
31
linux/PodColumn.qml
Normal file
@@ -0,0 +1,31 @@
|
||||
import QtQuick 2.15
|
||||
|
||||
Column {
|
||||
property bool isVisible: true
|
||||
property bool inEar: true
|
||||
property string iconSource
|
||||
property int batteryLevel: 0
|
||||
property bool isCharging: false
|
||||
property string indicator: ""
|
||||
|
||||
spacing: 5
|
||||
opacity: inEar ? 1 : 0.5
|
||||
visible: isVisible
|
||||
|
||||
Image {
|
||||
source: parent.iconSource
|
||||
width: parent.indicator === "" ? 92 : 72
|
||||
height: 72
|
||||
fillMode: Image.PreserveAspectFit
|
||||
mipmap: true
|
||||
mirror: parent.indicator === "R"
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
}
|
||||
|
||||
BatteryIndicator {
|
||||
batteryLevel: parent.batteryLevel
|
||||
isCharging: parent.isCharging
|
||||
darkMode: true
|
||||
indicator: parent.indicator
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user