widgets on notifications
This commit is contained in:
parent
40c0fa883e
commit
40742c8b13
1 changed files with 8 additions and 18 deletions
|
|
@ -1,21 +1,17 @@
|
||||||
|
import qs.config
|
||||||
|
import qs.constants
|
||||||
|
import qs.services
|
||||||
|
import qs.widgets
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import Quickshell.Io
|
|
||||||
import "../../../config/"
|
|
||||||
import "../../../constants/"
|
|
||||||
import "../../../services/"
|
|
||||||
import "../../../styled/"
|
|
||||||
|
|
||||||
Clickable {
|
StyledButton {
|
||||||
id: clickable
|
id: clickable
|
||||||
|
|
||||||
implicitWidth: text.width
|
|
||||||
implicitHeight: Dimensions.notifications.height
|
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
Notifications.clear();
|
Notifications.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
content: StyledText {
|
||||||
id: text
|
id: text
|
||||||
|
|
||||||
font.family: Theme.lucide.font.family
|
font.family: Theme.lucide.font.family
|
||||||
|
|
@ -25,12 +21,6 @@ Clickable {
|
||||||
|
|
||||||
color: clickable.containsMouse ? Theme.palette.base300 : Theme.palette.basecontent
|
color: clickable.containsMouse ? Theme.palette.base300 : Theme.palette.basecontent
|
||||||
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
topPadding: Dimensions.notifications.verticalPadding
|
|
||||||
bottomPadding: Dimensions.notifications.verticalPadding
|
|
||||||
leftPadding: Dimensions.notifications.horizontalPadding
|
|
||||||
rightPadding: Dimensions.notifications.horizontalPadding
|
|
||||||
|
|
||||||
states: State {
|
states: State {
|
||||||
when: Notifications.hasNotifications
|
when: Notifications.hasNotifications
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue