-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Apps
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


Sponsoring


-
- Content .- Fans (31) .- Knowledge Base  . 

Adjustable Clock

   4.1.4 "Hello QML"  

Plasmoid Binary

Score 89%
Adjustable Clock
zoom


Adjustable Clock
zoom


Adjustable Clock
zoom


Minimum required   KDE 4.x
Downloads:  10296
Submitted:  Nov 8 2008
Updated:  Nov 1 2013

Description:

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. ;-)




Changelog:

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.




LicenseGPL
Source(Adjustable Clock v4.1.4 (tar.bz2))
Source(Adjustable Clock master snapshot (zip))
SUSE(Packages on openSUSE Build Service)
Fedora(Packages for Fedora (by sokar620))
Ubuntu(Packages for Kubuntu (by Emdek))
Arch(Arch-Linux PKGBUILD (by ksolsim))
Donate
Send to a friend
Subscribe
Other  Apps  from Emdek
Report inappropriate content



goto page: prev   1  2  3  4  5  6  7  8  9  10  11 ...

-

 dbclock like seconds?

 
 by janet on: Jan 31 2009
 
Score 50%

Would it be possible to add an option to show the seconds the same way the karamba theme dblock does?

http://www.kde-look.org/content/show.php/dbClock?content=67687

I love the way how it displays the seconds in the background! Looks so stylish!


Want Debian Sid with spices? Get sidux at sidux.com - it simply works :)
Reply to this

-

 Re: dbclock like seconds?

 
 by Emdek on: Feb 1 2009
 
Score 50%

CSS support in Qt rich text engine is currently not enough advanced to create the same look as in that clock. As far as I know it is not possible to put one text under another, because position property is not implemented, also there is no opacity like property to make text partly transparent.
So it is easier to create dedicated clock or wait for better implementation in Qt (if there are plans to do that...).
You can try to partly emulate that clock by setting lighter color for seconds string (for example: <span style="color:#999;">%S</span>). But this probably will not look very good.


Reply to this

-
.

 Re: dbclock like seconds?

 
 by Num83rGuy on: Mar 30 2009
 
Score 50%
Num83rGuyNum83rGuy
-
Paul Clark 2

United States of America, Violet Hill
Last visit Apr 24 2014
0 Friends
0 Groups

More info
Send a message
Add as friend
Other contents
--

It took me a while but, this is the best I could come up with.

<center><table><tr><td rowspan="2"><h1><b>%l:%M</b></h1></td><td style="font-size: 11px"><b><u>%p</u></b></tr><tr><td style="font-size:14px; vertical-align: top;"><b>%S</b></td></tr></table></center>


Reply to this

-
.

 Re: Re: dbclock like seconds?

 
 by Num83rGuy on: Mar 30 2009
 
Score 50%
Num83rGuyNum83rGuy
-
Paul Clark 2

United States of America, Violet Hill
Last visit Apr 24 2014
0 Friends
0 Groups

More info
Send a message
Add as friend
Other contents
--

Sorry, I was thinking of another clock program.

No, I don't think that adjustable clock can emulate dbclock.

But, maybe this is a little better.

<center><table><tr><td rowspan="2"><h1><b>%l:%M</b></h1></td><td style="font-size: 11px; color: lightgrey;"><b><u> %p</u></b></tr><tr><td style="font-size:14px; vertical-align: top; color: grey;"><b>:%S</b></td></tr></table></center>


Reply to this

-

 Re: Re: Re: dbclock like seconds?

 
 by Emdek on: Jun 27 2009
 
Score 50%

With WebKit you can try:

<div style="text-align:center; white-space:pre; font-size:25px; margin:0 0 5px 5px;">%H:%M<span style="font-size:30px; position:relative; left:-8px; top:4px; z-index:-1; opacity:0.5;">%S</span></div>

Or:

<div style="text-align:center; white-space:pre; font-size:25px; margin:-15px 0 5px 5px; -webkit-box-reflect:below -5px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(0.5, transparent), to(white));">%H:%M<span style="font-size:30px; position:relative; left:-8px; top:4px; z-index:-1; opacity:0.5;">%S</span></div>

Both will be available in new version as predefined formats.


Life is unfair...
Reply to this

-

 wont build for me.

 
 by mscroggi on: Mar 3 2009
 
Score 50%

I am running:
openSUSE 11.1 (i586)
Linux 2.6.27.19-3.2-pae i686
4.2.00 (KDE 4.2.0) "release 102"

When I try to build it I get this -

Generating plasma-adjustableclock.moc
[ 0%] Built target plasma_applet_adjustableclock_automoc
[ 20%] Generating ui_clipboardActions.h
[ 40%] Generating ui_appearanceConfiguration.h
[ 60%] Generating ui_advancedConfiguration.h
[ 80%] Building CXX object CMakeFiles/plasma_applet_adjustableclock.dir/plasma_applet_adjustableclock_automoc.o
[100%] Building CXX object CMakeFiles/plasma_applet_adjustableclock.dir/plasma-adjustableclock.o
In file included from /home/monty/downloads/plasmoids/adjustableclock_1.1/applet/plasma-adjustableclock.cpp:21:
/home/monty/downloads/plasmoids/adjustableclock_1.1/applet/plasma-adjustableclock.h:36:37: error: plasmaclock/clockapplet.h: No such file or directory
In file included from /home/monty/downloads/plasmoids/adjustableclock_1.1/applet/plasma-adjustableclock.cpp:21:
/home/monty/downloads/plasmoids/adjustableclock_1.1/applet/plasma-adjustableclock.h:41: error: expected class-name before ‘{’ token
/home/monty/downloads/plasmoids/adjustableclock_1.1/applet/plasma-adjustableclock.h:41: warning: ‘class AdjustableClock’ has virtual functions and accessible non-virtual destructor
/home/monty/downloads/plasmoids/adjustableclock_1.1/applet/plasma-adjustableclock.cpp: In constructor ‘AdjustableClock::AdjustableClock(QObject*, const QVariantList&)’:
/home/monty/downloads/plasmoids/adjustableclock_1.1/applet/plasma-adjustableclock.cpp:42: error: class ‘AdjustableClock’ does not have any field named ‘ClockApplet’
/home/monty/downloads/plasmoids/adjustableclock_1.1/applet/plasma-adjustableclock.cpp:46: error: ‘setHasConfigurationInterface’ was not declared in this scope
/home/monty/downloads/plasmoids/adjustableclock_1.1/applet/plasma-adjustableclock.cpp:48: error: ‘resize’ was not declared in this scope
/home/monty/downloads/plasmoids/adjustableclock_1.1/applet/plasma-adjustableclock.cpp: In member function ‘void AdjustableClock::init()’:
/home/monty/downloads/plasmoids/adjustableclock_1.1/applet/plasma-adjustableclock.cpp:53: error: ‘config’ was not declared in this scope
/home/monty/downloads/plasmoids/adjustableclock_1.1/applet/plasma-adjustableclock.cpp:55: error: ‘ClockApplet’ has not been declared
/home/monty/downloads/plasmoids/adjustableclock_1.1/applet/plasma-adjustableclock.cpp:76: error: no matching function for call to ‘Plasma::Label::Label(AdjustableClock* const)’
/usr/include/KDE/Plasma/../../plasma/widgets/label.h:53: note: candidates are: Plasma::Label::Label(QGraphicsWidget*)
/usr/include/KDE/Plasma/../../plasma/widgets/label.h:41: note: Plasma::Label::Label(const Plasma::Label&)
<snip>

Any Idea as to what I need to do to fix this? This applet built just fine on another machine running the same linux release..

Any info would be greatly appreciated


Reply to this

-

 Re: wont build for me.

 
 by Emdek on: Mar 6 2009
 
Score 50%

Maybe you don't have installed workspace devel files (there is libplasmaclock)?


Reply to this

-

 Re: Re: wont build for me.

 
 by mscroggi on: Mar 9 2009
 
Score 50%

hmmm no I have that package installed... I am puzzled


Reply to this

-

 Re: Re: Re: wont build for me.

 
 by Emdek on: Mar 9 2009
 
Score 50%

Anyway it looks like it cannot find plasmaclock/clockapplet.h header file. Check if you have this file somewhere in /usr/include/ (maybe it has slightly different name or location).


Reply to this

-

 Option to disable the mouseover?

 
 by Ace2016 on: Mar 22 2009
 
Score 50%

I have all the info i want to see on the clock already shown on the applet in the panel, Would it be possible to disable the mouseover? sometimes it shows up when i'm trying to do other things


Reply to this

-

 Re: Option to disable the mouseover?

 
 by Emdek on: Mar 22 2009
 
Score 50%

You are thinking about disabling the tool tip?
I think that it could be disabled when setting it's format to empty string. I'll add this possibility in next version (maybe during next week).


Reply to this

-

 spacing issue

 
 by echoes on: Apr 24 2009
 
Score 50%

i have an issue with the spacing of the plasmoid. take a look:
http://img218.imageshack.us/img218/9523/snapshot4.png

i don't want it to use all that extra blank space to right. is there a way around this? i tried aligning it to the right, but that didn't work. that extra blank space stays there even if i try to shrink the size of the panel.
here is the code i am using:
<b><right><big>%X</big><br /></b>
<big>%x</big></right>


Reply to this

-

 Re: spacing issue

 
 by Emdek on: Apr 25 2009
 
Score 50%

Blank space could be added because applet tries to reserve space for changing text part of dates without resizing (for example when day of the week changes from Friday to Saturday), but this mechanism is not perfect...
You can try to set smaller font for date part, this should make that space smaller.
And there is no right tag. ;-)
You can try to use <p align="right"> tag.


Reply to this

-

 Re: Re: spacing issue

 
 by echoes on: Apr 25 2009
 
Score 50%

thanks for responding.
i am now using this code:
<p align="right"><b><big>%X</big><br /></b>
<big>%x</big></<p align="right">
however, as you can see, the problem still exists:
http://img2.imageshack.us/img2/3443/snapshot5.png

do you know of a workaround? if not, could you please investigate the issue further?


Reply to this

-

 Re: Re: Re: spacing issue

 
 by echoes on: Apr 25 2009
 
Score 50%

nevermind. after a reboot, it looks better. it still takes up a little bit more space to the right than i would like, but it is much better than before.


Reply to this

-
.

 Not all info displayed

 
 by echoes on: Jun 22 2009
 
Score 50%

with 2.0 i now have a problem with the alignment being a little screwy & the date not being displayed but i am still using the same format:
%X
%a %b %e %Y

it should be this like:
time am/pm on one line
date on the next line

but this is how it looks:
http://img235.imageshack.us/img235/1249/snapshot8.png


Reply to this

-

 Re: Not all info displayed

 
 by Emdek on: Jun 22 2009
 
Score 50%

Add white-space:pre; to style attribute of main block element.
WebKit behaves differently than simple label so old formats sometimes needs some adjusting.

I'll probably release new version in next week, with some formats to choose using combo box. And maybe I'll replace current visual editor with WebKit based, to make edited format look more like it will look in clock.


Life is unfair...
Reply to this

-

 Re: Re: Not all info displayed

 
 by echoes on: Jun 22 2009
 
Score 50%

i think i already have it:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"><p align="right" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt; font-weight:600;">%X</span></p><p align="right" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt; font-weight:600;">%a %b %e %Y</span></p></body></html>


Reply to this

-

 Re: Re: Re: Not all info displayed

 
 by Emdek on: Jun 22 2009
 
Score 50%

Try this code:
<div style="text-align:right;white-space:pre;font-weight:bold;margin:3px;">%X
%a %b %e %Y</div>


By the way, I've found bug that causes clock to not update every second for some formats. I've fixed it and I'll release new version this week (it will also add better editor based on WebKit and predefined formats to use).


Life is unfair...
Reply to this

-

 Re: Re: Re: Re: Not all info displayed

 
 by echoes on: Jun 22 2009
 
Score 50%

i noticed that problem with the seconds no progressing as well.

thanks for that code. i had to experiment a little bit to get it how i wanted:
<span style=" font-family:'Liberation-sans'; font-size:12pt; font-weight:600;"><div style="text-align:right;white-space:pre;font-weight:bold;margin:3px;">%X
%a %b %e %Y</div>


Reply to this

-

 Re: Re: Not all info displayed

 
 by echoes on: Jun 27 2009
 
Score 50%

as for replacing/rewriting the visual editor. i kindly submit amarok's playlist layout editor as an example. i think it would work perfectly for this plasmoid.
one can right-click on the entries & get context menus with B, I, U & L C R alignment options.
http://img265.imageshack.us/img265/4962/snapshot10u.png


Reply to this

-

 Re: Re: Re: Not all info displayed

 
 by Emdek on: Jun 27 2009
 
Score 50%

Interesting idea, thanks. :-)
I think that it could look like this, we still use visual editor in current form (already rewritten to WebKit) but instead of showing meaning less placeholders with % at start show texts / symbols telling with part of date and time will be inserted there and add combo box to insert / change them.
This would be very interesting but needs very much work. Current editor is very simple, new would need very strict control of selection, but I'm not sure if it is possible to change selection from code...


Life is unfair...
Reply to this

-

 Forces panel to be too big

 
 by sprouty76 on: Jun 25 2009
 
Score 50%

I'm using the following html:

<div style="white-space:pre;font-size:8pt;text-align:center;margin:0px;">%H:%M:%S %d/%m/%y</div>

This makes the clock look how I like it, but the applet is still big - in particular, it's forcing the panel to be bigger vertically, which in turn is resizing the other applets in the panel.


Reply to this

-

 Re: Forces panel to be too big

 
 by Emdek on: Jun 25 2009
 
Score 50%

It's strange, probably WebKit reports wrong contents size or something like that. I'll try to find reason and fix if it is possible.

You can try to enable option to rescale contents (in Advanced section), maybe it will help.


Life is unfair...
Reply to this

-

 Re: Re: Forces panel to be too big

 
 by sprouty76 on: Jul 25 2009
 
Score 50%

This issue still occurs when I set rescale to true. Any chance you could have a look into it? I'm really stuck using v1.1 for now.

The panel is now drawn bigger than it actually needs to be, which in turn rescales a lot of the other content in the panel.


Reply to this

-

 Re: Re: Re: Forces panel to be too big

 
 by Emdek on: Jul 25 2009
 
Score 50%

I'll search for reason soon (now I'm busy with other applets...) or try to create format that will fit your needs.

For now you can try to experiment with margins of main DIV, font sizes and try to not use rescale option (it is a bit experimental and sometimes can create more problems than solve).


Life is unfair...
Reply to this

goto page: prev   1  2  3  4  5  6  7  8  9  10  11 ...

Add commentBack






-
-
How do you like Plasma 5?
 The best KDE Desktop ever.
 Definitely a nice improvement.
 Not decided yet. Haven't tried it yet.
 I do not like some of the changes.
 KDE is taking the wrong way.
 I am still sticking with KDE 3.5.
 I have no opinion, but wanted to vote anyway.

resultmore
 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
Events RSS   

Participate
Groups
Forum
Add App
Public API
About KDE-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2003-2014 KDE-Apps.org Team  
All rights reserved. KDE-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
KDE and K Desktop Environment are trademarks of KDE e.V.