[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [plasma-workspace] applets/digital-clock/package/contents/ui: [calendar] Add "No events for today" i
From:       Martin Klapetek <mklapetek () kde ! org>
Date:       2016-05-08 2:15:16
Message-ID: E1azEFY-0001qC-H8 () scm ! kde ! org
[Download RAW message or body]

Git commit 95e7f32597a77e3e0928f9f5645f53e921ad5ebd by Martin Klapetek.
Committed on 08/05/2016 at 02:15.
Pushed by mklapetek into branch 'master'.

[calendar] Add "No events for today" in the agenda when no events are available

Fills the big block of empty space with some nice string.

"No events for today" when today is selected and "No events for this
day" when other day is selected.

REVIEW: 127818

M  +12   -0    applets/digital-clock/package/contents/ui/CalendarView.qml

http://commits.kde.org/plasma-workspace/95e7f32597a77e3e0928f9f5645f53e921ad5ebd

diff --git a/applets/digital-clock/package/contents/ui/CalendarView.qml \
b/applets/digital-clock/package/contents/ui/CalendarView.qml index fcafe5a..f915654 \
                100644
--- a/applets/digital-clock/package/contents/ui/CalendarView.qml
+++ b/applets/digital-clock/package/contents/ui/CalendarView.qml
@@ -197,6 +197,18 @@ Item {
                 text: section
             }
         }
+
+        PlasmaExtras.Heading {
+            anchors.fill: holidaysList
+            anchors.leftMargin: units.largeSpacing
+            anchors.rightMargin: units.largeSpacing
+            text: monthView.isToday(monthView.currentDate) ? i18n("No events for \
today") +                                                           : i18n("No events \
for this day"); +            level: 3
+            opacity: 0.4
+            visible: holidaysList.count == 0
+        }
+
     }
     Item {
         id: cal


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic