Skip to content

Commit af5eddb

Browse files
committed
quickshell/bar/clock: add notifications indicator
1 parent f452958 commit af5eddb

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

home/services/quickshell/bar/Clock.qml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import QtQuick
2+
import QtQuick.Layouts
23
import Quickshell.Widgets
34
import "../components"
45
import "../utils/."
@@ -9,7 +10,16 @@ WrapperMouseArea {
910
Config.showSidebar = !Config.showSidebar;
1011
}
1112

12-
Text {
13-
text: Qt.formatDateTime(Utils.clock.date, "ddd MMM d hh:mm")
13+
RowLayout {
14+
spacing: Config.padding * 2
15+
16+
Text {
17+
text: Qt.formatDateTime(Utils.clock.date, "ddd MMM d hh:mm")
18+
}
19+
20+
MaterialIcon {
21+
text: "notifications" + (NotificationState.allNotifs.length > 0 ? "_unread" : "")
22+
font.pointSize: Config.iconSize
23+
}
1424
}
1525
}

0 commit comments

Comments
 (0)