Simple Countdown

Plasma 4 Widgets

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

3
Score 77.7%
Description:

A very simple countdown. Just displays the name of the event and the remaining time.
Last changelog:

8 years ago

1.5
Text color fixed
1.4
Clicking switches between the countdown display and the date
1.3
Text size changes when the widget is resized
1.2
Fixed: 100% cpu load when event and time was not set
1.1
Fixed: countdown did not start after login

Landis

3 years ago

Thank you for the plasmoid. I've been using for a few years, but one thing I'd like is to change the font color to match my other polasmoids. In all others, I can change the color to be 'softer' than Bright White. I have black desktop with a little less than white color eg, rgb 222,222,222.

I've tried changing the main.py file:
setPen(Qt.white) to Qt.lightGray
and font.setBold(True) to False, but the Bright White 00 00 00 remain.

Please tell me, us how to change the Font Color.

again, thank you, ???????.
Landis.

Report

C

benjaminum

3 years ago

Hi,

the color is defined by the palette.

You can change the color in the init function like this:

palette = self.timeLabel.palette()
palette.setColor(QPalette.WindowText, QColor(222,222,222))
self.timeLabel.setPalette(palette)

The code is also on github in case you want to add something.
https://github.com/benjaminum/simplecountdown

best
Benjamin

Report

DanaKil

8 years ago

maybe you could add an option to display the time elapsed even after the end of the timer (ex: -00:01:30... -00:01:29...)

when I boil an egg or something like that, I often put a counter on my desktop but if I want to let it boil just a little bit more, the timer become useless because it is stopped at 00:00:00. It can be useful too when I don't exactly know when the timer stopped.

When the time goes negative, it could be displayed in red or something like that, with a little sound when it reach 00:00:00

Cheers :)

Report

yamaban

7 years ago

+1 on the counter beyond zero feature.
That would be very nice.

Report

MiTcX

9 years ago

what about :
- an option to display weeks/month/years not only days
- an option to count only working days ?

Report

And3rson

9 years ago

Nice!

Report

8 years ago

1.5
Text color fixed
1.4
Clicking switches between the countdown display and the date
1.3
Text size changes when the widget is resized
1.2
Fixed: 100% cpu load when event and time was not set
1.1
Fixed: countdown did not start after login

12345678910
9
product-maker Gerald Feb 23 2012 9 excellent
product-maker yamaban Nov 20 2011 9 excellent
product-maker sam13 Aug 28 2011 9 excellent
product-maker ecuadra Jul 19 2011 9 excellent
product-maker tr00per Jun 27 2011 9 excellent
product-maker Keksbubi Jun 23 2011 9 excellent
product-maker jlsalvador May 25 2011 9 excellent
product-maker batalych Apr 17 2011 9 excellent
product-maker jeast Jan 27 2011 9 excellent
product-maker Count: 4 Rating: 5.0
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
1.5
updated May 21 2011
added Mar 13 2010
downloads today
1
page views today 8