
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
Plasmoid to show date and time in adjustable format using rich text.
Developed and tested on KDE 4.11 with Qt 4.8 (Kubuntu 13.10).
Source (main repository, with more frequent updates) is located at:
https://github.com/Emdek/plasmoid-adjustable-clock
Warning!
Version 4.0 (and newer) is not backwards compatible with 3.x, all custom formats need to be exported and manually converted.
QML themes support is currently considered as experimental, behavior and available API are not yet stable and most probably will be changed with next release.
Tips:
- to change tool tip text you need to set options toolTipExpressionMain and toolTipExpressionSub in applets configuration file (usually located at ~/.kde4/share/config/plasma-desktop-appletsrc), in group containing line plugin=adjustableclock;
- you can use advanced WebKit features (all of these that work with for example rekonq should work here too), for example use CSS to create reflections:
-webkit-box-reflect:below 5px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(0.5, transparent), to(white));
And much more. ;-)
If you created interesting theme and want to share it then post in comments!
Features:
- fully custom date and time using JavaScript API to obtain date and time components;
- multiple clock themes utilizing various designs;
- possibility to use rich text editor or edit source directly (HTML and CSS or QML) to adjust theme;
- context menu with actions to copy formatted (adjustable expressions) date and time to clipboard;
- fast copy to clipboard of adjustable date and time expression after middle mouse click on the clock or activation of keyboard shortcut;
- adjustable tool tip (hidden option, toolTipExpressionMain and toolTipExpressionSub keys);
- standard clock calendar.
If you have found bugs or have suggestions you can contact me via email, message or using comments, before you will vote bad. And remember that not everybody has enough time for fast replying. ;-)
7 years ago
4.1.4 (01.11.2013):
- fixed week number not being updated;
- added missing title of "Insert Component" dialog.
4.1.3 (27.09.2013):
- ensure that component values are always up to date;
- adjust timestamp for time zone offset;
- do not allow for accidental nesting of components in editor;
- added option to hide date in Train Clock theme;
- added workaround to ensure that hands of SVG Clock have correct initial positions as soon as possible.
4.1.2 (01.06.2013):
- ensure that center of SVG Clock theme is always valid;
- improve resizing in vertical panels.
4.1.1 (25.05.2013):
- fixed WYSIWYG editor for HTML themes;
- fixed missing dialog for "Insert Component" actions.
4.1 (15.05.2013):
- added SVG Clock theme (analog clock that uses Plasma theme);
- added experimental support for QML themes (alpha state);
- added simple file templates for new themes;
- move theme editor to own dialog;
- move theme specific actions to context menu;
- added ability to install and export themes (Plasma Package ZIP);
- some other improvements and fixes.
7 years ago
4.1.4 (01.11.2013):
- fixed week number not being updated;
- added missing title of "Insert Component" dialog.
4.1.3 (27.09.2013):
- ensure that component values are always up to date;
- adjust timestamp for time zone offset;
- do not allow for accidental nesting of components in editor;
- added option to hide date in Train Clock theme;
- added workaround to ensure that hands of SVG Clock have correct initial positions as soon as possible.
4.1.2 (01.06.2013):
- ensure that center of SVG Clock theme is always valid;
- improve resizing in vertical panels.
4.1.1 (25.05.2013):
- fixed WYSIWYG editor for HTML themes;
- fixed missing dialog for "Insert Component" actions.
4.1 (15.05.2013):
- added SVG Clock theme (analog clock that uses Plasma theme);
- added experimental support for QML themes (alpha state);
- added simple file templates for new themes;
- move theme editor to own dialog;
- move theme specific actions to context menu;
- added ability to install and export themes (Plasma Package ZIP);
- some other improvements and fixes.
5er
9 years ago
http://pastebin.com/gx7zcihv
Report
Emdek
9 years ago
I'm planning new release for Wednesday, so if you have some ideas for original clock designs (mainly like your previous one or dbClock like) then it's best time to publish them (so those could be included in bundle). ;-)
Report
5er
9 years ago
http://pastebin.com/RJGSY5r4
Report
Emdek
9 years ago
Can I include it in next version (with some cosmetic changes)?
Report
5er
9 years ago
Report
Emdek
9 years ago
I'm thinking about something a bit different (small changes though):
http://simplest-image-hosting.net/png-0-plasma-desktopfn1969
Report
cyberconan
9 years ago
I tried to disable tooltip using toolTipFormat=, ToolTipFormatMain= and ToolTipFormatSub=, but not work. Any solution?
Thanks!
Report
Emdek
9 years ago
toolTipFormatSub=
You can try to modify default value, %!Z%E, for example just remove %E.
Report
cyberconan
9 years ago
Report
Emdek
9 years ago
You can try to use plasmaengineexplorer to check what calendar data engine returns for query:
events:2012-02-15:2012-02-17
(you may need to update dates range)
If it shows too many things then it probably should reported on bugs.kde.org.
Report
gytis
9 years ago
Report
Emdek
9 years ago
Report
gytis
9 years ago
Report
Emdek
9 years ago
Format placeholders were changed too, to allow to have more options and have more consistent (but no longer compatible with strftime()) placeholders (and make it harder to run off of free symbols).
Big thanks goes to Tomasz Wasilczyk due to his help with testing.
Report
Pafrape
9 years ago
In early versions, we could remove the clock display to have the calendar when the cursor mouse passed over the plasmoid.
This option was later removed.
Is there a possibility to set this option to delete the clock when the cursor mouse passed over the plasmoid ?
Thank you very much.
Report
Emdek
9 years ago
Or you ask how to remove time part from tool tip (it's described as second tip on this page, in applet description)?
Report
5er
9 years ago
I feel the need to share my very simple configuration: http://pastebin.com/nwzC4fXu
Report
5er
9 years ago
Report
Emdek
9 years ago
You can also try to debug issue using background on main container to check if it's not caused by margins, paddings, font size, line height etc.
And last but not least there is always possibility to try to scale it disproportionate using CTRL (this is useful but hidden feature of default applet handle).
Report
flyingsheep
9 years ago
http://paste.kde.org/100915/
Report
cubuanic
9 years ago
Expected behavior: same as in default "Digital clock" applet with several additional timezones selected.
Report
Emdek
9 years ago
Report
woodsdog
9 years ago
http://pastebin.com/e9sHgEPL
Report
chio
9 years ago
Backtrace (plasmoidviewer adjustableclock): http://tinypaste.com/a4f8ca
OS: Debian SID/amd64, libqt4 4.7.2, KDE 4.6.1 (from http://qt-kde.debian.net/.
P.S.: Sorry for my bad English.
Report
Emdek
9 years ago
If this doesn't help then it looks like a QtWebkit 64 bit version bug, as it crashes during JavaScript evaluation (I've the same versions of KDE and Qt on Mandriva 32 bit and it works fine).
Report