mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
feat: multi-height delegates
This commit is contained in:
parent
b15bb36dae
commit
9ae22c832f
9 changed files with 284 additions and 212 deletions
|
|
@ -0,0 +1,25 @@
|
|||
import Quickshell
|
||||
import Quickshell.Widgets
|
||||
import Quickshell.Io
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import QtQuick.Controls
|
||||
import "root:/DataSources"
|
||||
import "root:/Helpers"
|
||||
import Quickshell.Services.Notifications
|
||||
|
||||
|
||||
ClippingWrapperRectangle {
|
||||
required property string image
|
||||
radius: 5
|
||||
Layout.preferredWidth: visible ? 80 : 0
|
||||
Layout.preferredHeight: visible ? parent.height : 0
|
||||
visible: image != ""
|
||||
color: Stylix.base00
|
||||
Image {
|
||||
fillMode: Image.PreserveAspectFit
|
||||
Layout.preferredWidth: 80
|
||||
Layout.preferredHeight: parent.height
|
||||
source: image.replace("file://", "")
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue