Image 01
profile-image

Terseus

Terseus noSurname
Customizable Weather Plasmoid (CWP)

Plasma 4 Widgets 1069 comments

Score 92%
92 Likes
8 Dislikes
Sep 02 2017
Hello.

The espanol.weather.com XML doesn't seem to work from one or two days to now, doesn't load temperature, wind, icon...

Thanks for your work. - Feb 13 2013
Tasker

Plasma 4 Widgets 5 comments

Score 58%
58 Likes
42 Dislikes
Nov 03 2013
I had a problem with the plasmoid, I wasn't able to resize it vertically (without respecting the original aspect ratio) which was a pain when the list grows and don't want to scroll too much.

I fixed it changing the aspectRatioMode property from 1 (KeepAspectRatio) to 0 (IgnoreAspectRatio).

Here's the patch, apply with:
cd <project_dir> && patch --dry-run -p1 -i file.patch && patch -p1 -i file.patch


=== BEGIN (do NOT copy this line) ===
diff -crB tasker-0.9.2/contents/ui/main.qml tasker-0.9.2-aspectRatioFix/contents/ui/main.qml
*** tasker-0.9.2/contents/ui/main.qml 2012-10-07 04:02:46.000000000 +0200
--- tasker-0.9.2-aspectRatioFix/contents/ui/main.qml 2012-10-16 17:53:40.917672467 +0200
***************
*** 41,46 ****
--- 41,67 ----
plasmoid.action_labelEdit = function() {
mainCaption.editing = ! mainCaption.editing
}
+ // In some systems (Archlinux with KDE 4.9.2) the default aspectRatioMode
+ // is KeepAspectRatio, changed to IgnoreAspectRatio.
+ // Takes more sense since we have a list of items.
+ // Possible values are:
+ // 0 = IgnoreAspectRatio
+ // The applet can be freely resized.
+ // 1 = KeepAspectRatio
+ // The applet keeps a fixed aspect ratio.
+ // 2 = Square
+ // The applet is always a square.
+ // 3 = ConstrainedSquare
+ // The applet is no wider (in horizontal formfactors) or no higher
+ // (in vertical ones) than a square.
+ // 4 = FixedSize
+ // The applet cannot be resized.
+ // -1 = InvalidAspectRatioMode
+ // Unsetted mode used for dev convenience when there is a need to
+ // store the aspectRatioMode somewhere.
+ //
+ // Doc extracted from http://lxr.kde.org/source/kde/kde-runtime/plasma/scriptengines/javascript/plasmoid/appletinterface.h
+ plasmoid.setAspectRatioMode(IgnoreAspectRatio)
plasmoid.setAction('labelEdit', i18n('Edit label'))
// config
plasmoid.activeConfig = "main";
Only in tasker-0.9.2-aspectRatioFix/contents/ui: main.qml~
=== END (do NOT copy this line) ===
- Oct 16 2012