[Calendar Applet] Show day or week number in icon
ClosedPublic

Authored by broulik on Jun 14 2016, 12:46 PM.

Details

Summary

Rather than showing the generic calendar icon the day number is shown there instead.
There is also an option to have it show the week number instead.

FIXED-IN: 5.7.0
BUG: 343467

Test Plan

All this effort with the singleton type just because JS Date is stupid and doesn't have a weeknumber property.

Diff Detail

Repository
R120 Plasma Workspace
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik updated this revision to Diff 4454.Jun 14 2016, 12:46 PM
broulik retitled this revision from to [Calendar Applet] Show day or week number in icon.
broulik updated this object.
broulik edited the test plan for this revision. (Show Details)
broulik added reviewers: Plasma, Plasma: Design.
broulik set the repository for this revision to R120 Plasma Workspace.
Restricted Application added a project: Plasma. · View Herald TranscriptJun 14 2016, 12:46 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript

Might need a new icon though

Where did you take that icon from?
We have apps/office-calendar and org.kde.plasma.calendar, both of which look quite different from this one.

That icon has been shipped, but never used, with the calendar applet for so long I don't even find a trace of it being added in git log.

It's plasma-workspace/applets/calendar/package/contents/images/mini-calendar.svgz

mart accepted this revision.Jun 15 2016, 10:04 AM
mart added a reviewer: mart.
mart added a subscriber: mart.
mart added inline comments.
applets/calendar/plugin/calendarplugin.h
37 ↗(On Diff #4454)

i would prefer to have a c++ calendar applet instead of having more private qml imports, that i would like to completely get rid of eventually.

This revision is now accepted and ready to land.Jun 15 2016, 10:04 AM
broulik updated this revision to Diff 4501.Jun 15 2016, 12:48 PM
broulik edited edge metadata.

Use a C++ applet instead of a private import

broulik updated this revision to Diff 4503.Jun 15 2016, 12:54 PM

Fix cmake to include calendar subdir instead of installing

This revision was automatically updated to reflect the committed changes.