StyleClock

Various KDE 1.-4. Improvements

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

1
5.0
Available as/for: -
Description:

Styleclock is a themeable replacement for KDE's clock applet. It comes with an integrated alarm clock / timer.

The themes are bitmap based, so you can simply use gimp and a text editor to edit or create themes. These images are finally composed by a little ecmascript program, which makes it easy to create weird and innovative clock types.

To keep the cpu load low, styleclock uses OpenGL to scale and rotate the images.
Last changelog:

16 years ago

New in 0.5.1:
- New digital theme: Centurion by Daniel Dotsenko
- Enabled date switch (only used by centurion so far)

New in 0.5:
- New theme: clean by Clairvoyant
- New theme: station
- Hopefully no black windows anymore
- Better support for theme developers

New in 0.4:
- The first user-contributed themes:
blue, simple - thanks to Sami Vento :)
- New textual theme: glow
- Possibility to change theme colors.
Only used in "glow" and "simple" so far.
- Better resize behaviour

New in 0.3:
- Popup calendar like the original KDE clock
- Saves recently used countdown times
- Ability to display non-rectangular clocks and a binary clock to demonstrate it.

New in 0.2:
- Transparency support
- Simple & efficient alarm clock/timer
- Nice context menu

oshogg

16 years ago

Hi,

I noticed that the cursor will become low quality (kinda like when we watch a video with mplayer or xine) when I start styleclock. As soon as I quit styleclock the cursor is back to normal again. Anyone else seeing this problem?

cheers,
Osho

Report

C

uddw

16 years ago

funny.. I've never seen this before, neither with styleclock nor with mplayer, so I don't think I can do much about it. Looks like a fscked up graphics driver to me, but all in all I'm clueless.

Report

Lenz

16 years ago

Apopros Gentoo: Is there an ebuild available? Would be nice.

Report

CARTMAN

16 years ago

Very nice app!

Report

laktose

16 years ago

this is what i get when i try to compile it:
make[3]: Entering directory `/damaged/styleclock-0.2/src/testapp'
/bin/sh ../../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -DENABLE_REPAINT -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -o fashionclock -R /usr/lib -R /usr/lib/qt3//lib -R /usr/X11R6/lib -L/usr/X11R6/lib -L/usr/lib/qt3//lib -L/usr/lib main.o fashionclock.o fashionclockview.o pref.o fashionclockiface_skel.o ../../src/styleclockwidget/libstyleclockwidget.la -lkio -lkdeprint
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0xe9): In function `ClockPaintView::loadTexture(QString)':
: undefined reference to `glGenTextures'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0xf9): In function `ClockPaintView::loadTexture(QString)':
: undefined reference to `glBindTexture'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x110): In function `ClockPaintView::loadTexture(QString)':
: undefined reference to `glTexParameteri'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x12a): In function `ClockPaintView::loadTexture(QString)':
: undefined reference to `glTexParameteri'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x141): In function `ClockPaintView::loadTexture(QString)':
: undefined reference to `glTexParameteri'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x158): In function `ClockPaintView::loadTexture(QString)':
: undefined reference to `glTexParameteri'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x215): In function `ClockPaintView::loadTexture(QString)':
: undefined reference to `glTexImage2D'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x33c): In function `ClockPaintView::initializeGL()':
: undefined reference to `glClearColor'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x348): In function `ClockPaintView::initializeGL()':
: undefined reference to `glDisable'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x354): In function `ClockPaintView::initializeGL()':
: undefined reference to `glEnable'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x360): In function `ClockPaintView::initializeGL()':
: undefined reference to `glDisable'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x371): In function `ClockPaintView::initializeGL()':
: undefined reference to `glBlendFunc'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x37d): In function `ClockPaintView::initializeGL()':
: undefined reference to `glEnable'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x38f): In function `ClockPaintView::initializeGL()':
: undefined reference to `glGenTextures'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x3d1): In function `ClockPaintView::resizeGL(int, int)':
: undefined reference to `glViewport'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x3dd): In function `ClockPaintView::resizeGL(int, int)':
: undefined reference to `glMatrixMode'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x3e2): In function `ClockPaintView::resizeGL(int, int)':
: undefined reference to `glLoadIdentity'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x41a): In function `ClockPaintView::resizeGL(int, int)':
: undefined reference to `glOrtho'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x1a85): In function `ClockPaintView::setTheme(QString const&)':
: undefined reference to `glDeleteTextures'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x30e8): In function `ClockPaintView::paintGL()':
: undefined reference to `glBindTexture'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x30ff): In function `ClockPaintView::paintGL()':
: undefined reference to `glTexParameteri'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x3116): In function `ClockPaintView::paintGL()':
: undefined reference to `glTexParameteri'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x312d): In function `ClockPaintView::paintGL()':
: undefined reference to `glTexParameteri'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x3144): In function `ClockPaintView::paintGL()':
: undefined reference to `glTexParameteri'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x317b): In function `ClockPaintView::paintGL()':
: undefined reference to `glTexImage2D'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x3188): In function `ClockPaintView::paintGL()':
: undefined reference to `glMatrixMode'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x31a1): In function `ClockPaintView::paintGL()':
: undefined reference to `glBindTexture'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x31ad): In function `ClockPaintView::paintGL()':
: undefined reference to `glEnable'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x31b9): In function `ClockPaintView::paintGL()':
: undefined reference to `glBegin'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x31db): In function `ClockPaintView::paintGL()':
: undefined reference to `glTexCoord2f'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x3203): In function `ClockPaintView::paintGL()':
: undefined reference to `glVertex3f'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x3218): In function `ClockPaintView::paintGL()':
: undefined reference to `glTexCoord2f'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x3235): In function `ClockPaintView::paintGL()':
: undefined reference to `glVertex3f'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x3256): In function `ClockPaintView::paintGL()':
: undefined reference to `glTexCoord2f'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x327e): In function `ClockPaintView::paintGL()':
: undefined reference to `glVertex3f'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x3287): In function `ClockPaintView::paintGL()':
: undefined reference to `glTexCoord2f'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x32b2): In function `ClockPaintView::paintGL()':
: undefined reference to `glVertex3f'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x32b7): In function `ClockPaintView::paintGL()':
: undefined reference to `glEnd'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x32d8): In function `ClockPaintView::paintGL()':
: undefined reference to `glColor4f'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x351a): In function `ClockPaintView::paintGL()':
: undefined reference to `glPushMatrix'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x3541): In function `ClockPaintView::paintGL()':
: undefined reference to `glScalef'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x356a): In function `ClockPaintView::paintGL()':
: undefined reference to `glTranslatef'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x3597): In function `ClockPaintView::paintGL()':
: undefined reference to `glRotatef'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x35ae): In function `ClockPaintView::paintGL()':
: undefined reference to `glTranslatef'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x35e1): In function `ClockPaintView::paintGL()':
: undefined reference to `glTranslatef'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x35f4): In function `ClockPaintView::paintGL()':
: undefined reference to `glBindTexture'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x3600): In function `ClockPaintView::paintGL()':
: undefined reference to `glEnable'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x360c): In function `ClockPaintView::paintGL()':
: undefined reference to `glBegin'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x3621): In function `ClockPaintView::paintGL()':
: undefined reference to `glTexCoord2f'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x363e): In function `ClockPaintView::paintGL()':
: undefined reference to `glVertex3f'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x3653): In function `ClockPaintView::paintGL()':
: undefined reference to `glTexCoord2f'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x3670): In function `ClockPaintView::paintGL()':
: undefined reference to `glVertex3f'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x3685): In function `ClockPaintView::paintGL()':
: undefined reference to `glTexCoord2f'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x36a2): In function `ClockPaintView::paintGL()':
: undefined reference to `glVertex3f'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x36b7): In function `ClockPaintView::paintGL()':
: undefined reference to `glTexCoord2f'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x36d4): In function `ClockPaintView::paintGL()':
: undefined reference to `glVertex3f'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x36d9): In function `ClockPaintView::paintGL()':
: undefined reference to `glEnd'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0x36de): In function `ClockPaintView::paintGL()':
: undefined reference to `glPopMatrix'
collect2: ld returned 1 exit status
make[3]: *** [fashionclock] Error 1
make[3]: Leaving directory `/damaged/styleclock-0.2/src/testapp'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/damaged/styleclock-0.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/damaged/styleclock-0.2'
make: *** [all] Error 2

Report

scsi

16 years ago

I use gentoo, and I have the same problem.
Unfortunately, I use nvidia driver, too.
I also try http://fred.hexbox.de/styleclock/styleclock-0.2.1.tar.gz
make is finish, but I can't not add this applet to panel. it show nothing to panel.

kde: 3.2.3
qt:3.3.2
X: xorg-6.7.0

Report

C

uddw

16 years ago

What happens when you run "appletproxy styleclock"? Any unresolved symbols?

Report

lrathle

16 years ago

Do you have a NVidia driver ? This error looks like one I had and after a reinstallation of the nvidia driver everything went fine.

Report

C

uddw

16 years ago

Let me guess.. are you using Gentoo?

Please try this slightly modified version and tell me if it makes a difference: http://fred.hexbox.de/styleclock/styleclock-0.2.1.tar.gz

Apart from that it would be always interesting to know if you have the same problems with similar programs, like gltrash or something.

Report

laktose

16 years ago

hmm.. well i got it installed.. and it doesn't work still.. when i add the applet the clock doesn't show up.. then when i try to click configure the applet just crashes and is removed from the kicker panel.. oh well

Report

laktose

16 years ago

Nope, using MDK 10 :)
That package did fix the error though, thanks a bunch

An yeah, I am using the NVIDIA driver, though I had many issues with the kernel yesterday so it was reinstalled many many times. heh

Report

kaaleppi

16 years ago

I'm getting compile erros with lots of undefined reference to `XXXX'

and then this

collect2: ld returned 1 exit status
make[3]: *** [fashionclock] Error 1
make[3]: Leaving directory `/home/mikko/src/styleclock-0.2/src/testapp'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/mikko/src/styleclock-0.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mikko/src/styleclock-0.2'
make: *** [all] Error 2

Report

scsi

16 years ago

I like this applet very much.
but I got a compile error!
can everybody help me.

it seems like miss reference to OpenGL funcitons

./../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0xc3b): In function `ClockPaintView::loadTexture(QString)':
: undefined reference to `glGenTextures'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0xc4e): In function `ClockPaintView::loadTexture(QString)':
: undefined reference to `glBindTexture'
.
.
.
collect2: ld returned 1 exit status
make[3]: *** [fashionclock] Error 1

Report

redrat

16 years ago

A transparet background would be great. This is the only feature I'm missing right now...

Report

oshogg

16 years ago

Really cool little clock.. I personally liked the plain version better than the crystal one. Here is my wish list:

1. option to have no seconds hand
2. color of hour, minute, seconds hand user selectable
3. area outside the Circle of the clock should be transparent, or at least an option to make it transparent.
4. Similar mouse 1st, 2nd and 3rd button functionality as the KDE Clock.

Regarding date, I think a tooltip should be fine..

cheers,
Osho

Report

C

uddw

16 years ago

Hiding the minute hand is actually the only option which works currently. But it's not checked in the script of the plain theme. For the moment, you can simply copy the main.js from the crystal theme over to plain.

Changing colors is planned already.
I also want to add a very simple timer/alarm clock.

Report

kwr2k

16 years ago

Great applet! Rivals longhorn and MacOS X ones :-)
Hoping to see more improvements. Looks great for an early version!!

Keep it up, mate!

Report

blueSceaDa

16 years ago

maybe call it klock ? ;)

Report

link97381

16 years ago

Well for the date you could just do a tool tip like the current clock does. Also does it open the kalander(lol I've been using KDE so long I automaticaly spell stuff with a k)? And for people with a smaller task bar they should be able to mouse over the clock and have it enlarged so they can read it then when they take the mouse off it goes back to normal.

Report

Remenic

16 years ago

This is really good stuff! Please please, let us play with it! :)

Report

telex

16 years ago

Though you didn't have much success at first, I'd suggest it'd be a really good idea to try and implement this with SVGs.

Scaling of bitmaps on the panel is horrible, and having to provide all the default sizes is a pain both for artists and those with custom sized panels.

Report

C

uddw

16 years ago

The clock on the screenshot is scaled down from a 128x128 image. It doesn't look *that* horrible in my eyes.

It is in fact a problem when the image is getting too small, because all the little details are gone then, so it might make sense to provide special images for smaller sizes.

But SVG has the same problem. They also don't look better if you scale them down too much. So you'd also have to provide different SVGs for different sizes - no benefits compared to Bitmaps.

The other problem is that KSVG is part of kdegraphics, not kdelibs. OpenGL support on the other hand is in Qt already and libkjs belongs to kdelibs.
I just don't want a simple clock to depend on hundreds of libraries.
Plus, last time I checked, KSVG was simply not usable by other programs.

Report

Superstoned

16 years ago

I hope you can improve this (eg you might ask others for help with svg support, and better code).

but the look is already very nice! maybe you can add the code to the current clock? so there is another option (beside analog/etc): theme.


(ps my girlfriend put some of her underwear on my monitor, looks quite strange)

Report

beorn

16 years ago

As for the date, I think a tooltip will do fine.

Report

bowfinger

16 years ago

I've got an idea for integrating the date _into_ the clock (well at least this might work for high resolutions): Let it be displayed in the background of the clock.

Or - as in many watches - just display the number of the day (e.g. 15 for today, the 15th of July) where three o'clock should usually be.

Report

16 years ago

New in 0.5.1:
- New digital theme: Centurion by Daniel Dotsenko
- Enabled date switch (only used by centurion so far)

New in 0.5:
- New theme: clean by Clairvoyant
- New theme: station
- Hopefully no black windows anymore
- Better support for theme developers

New in 0.4:
- The first user-contributed themes:
blue, simple - thanks to Sami Vento :)
- New textual theme: glow
- Possibility to change theme colors.
Only used in "glow" and "simple" so far.
- Better resize behaviour

New in 0.3:
- Popup calendar like the original KDE clock
- Saves recently used countdown times
- Ability to display non-rectangular clocks and a binary clock to demonstrate it.

New in 0.2:
- Transparency support
- Simple & efficient alarm clock/timer
- Nice context menu

12345678910
Be the first to comment
obelix
Dec 12 2009
File (click to download) Version Description PackagetypeArchitecture Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.5.1
updated Dec 13 2004
added Jul 14 2004
downloads 24h
0
mediaviews 24h 0
pageviews 24h 3