mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
fix: notifications
This commit is contained in:
parent
04732abbc8
commit
fb4da4296e
4 changed files with 177 additions and 136 deletions
25
quickshell/Components/NotificationImage.qml
Normal file
25
quickshell/Components/NotificationImage.qml
Normal file
|
|
@ -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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue