last 7 months of qs changes
This commit is contained in:
parent
2c64563ade
commit
4b90113a54
103 changed files with 3467 additions and 1415 deletions
19
modules/user/modules/quickshell/shell/bar/ClickableIcon.qml
Normal file
19
modules/user/modules/quickshell/shell/bar/ClickableIcon.qml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import QtQuick
|
||||
|
||||
BarButton {
|
||||
id: root
|
||||
required property string image;
|
||||
property alias cache: imageComponent.cache;
|
||||
property alias asynchronous: imageComponent.asynchronous;
|
||||
property bool scaleIcon: !asynchronous
|
||||
|
||||
Image {
|
||||
id: imageComponent
|
||||
anchors.fill: parent
|
||||
|
||||
source: root.image
|
||||
sourceSize.width: scaleIcon ? width : (root.width - baseMargin)
|
||||
sourceSize.height: scaleIcon ? height : (root.height - baseMargin)
|
||||
cache: false
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue