mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-05 06:59:50 -05:00
put shell in subdir, and add nix package
This commit is contained in:
parent
c45c04e9ac
commit
f41ea4b1cb
100 changed files with 57 additions and 126 deletions
32
shell/widgets/ColoredIcon.qml
Normal file
32
shell/widgets/ColoredIcon.qml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
pragma ComponentBehavior: Bound
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Effects
|
||||
import Quickshell.Widgets
|
||||
import ".."
|
||||
|
||||
Item {
|
||||
id: root
|
||||
required property var source
|
||||
property var implicitSize: 0
|
||||
property var color: "white"
|
||||
readonly property real actualSize: Math.min(root.width, root.height)
|
||||
|
||||
implicitWidth: implicitSize
|
||||
implicitHeight: implicitSize
|
||||
|
||||
IconImage {
|
||||
anchors.fill: parent
|
||||
source: root.source
|
||||
layer.enabled: true
|
||||
layer.effect: MultiEffect {
|
||||
colorization: 1
|
||||
colorizationColor: root.color
|
||||
}
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
color: root.color
|
||||
anchors.fill: parent
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue