Resizing plasmoids

Until this morning, resizing plasma applets meant maintaining the aspect ratio. There was no way to make them wider without changing the height, or vice versa, without manually editing the plasma config file.

Well, if you are running trunk, you can now freely resize applets by holding CTRL while resizing. This won’t make it to 4.0.0 (which has already been tagged), but all the current fixes in plasma should be backported to the 4.0 branch before we move on to 4.1 development. So it should make it to 4.0.1, which is good as it’s quite an important feature for certain plasmoids.

Also, I’ve greatly improved the Now Playing applet:

Resizing plasmoids
The text size will stretch to fit the height of the applet and, if the text doesn’t fit the width of the applet, any excess text will be ellided:

Resizing plasmoids

This is why I needed free resizing…

Advertisements

Tags: ,

11 Responses to “Resizing plasmoids”

  1. Dareus Says:

    That’s great. The Now playing engine is something really great!
    I think that in now playing case, resizing should work in a different way. In my opinion long text should be scrolling so you could see all of it.
    This is my 2 cents opinion.
    Dario

  2. randomguy3 Says:

    The reason I didn’t go with that was that there have been CPU usage issues with scrolling text, as demonstrated by the news ticker applet.

    If I can do it without hammering the system, then I’ll go for it. But it’s better like this than changing the text size for every song, in my opinion.

    Actually, if the scrolling was a character every second (or half-second) rather than “smooth” scrolling, that would probably work.

  3. kwilliam Says:

    Hallelujah! Down with the aspect ratio chains! We are free!!!

  4. what I’ve learnt about plasma « ChaniBlog Says:

    […] should also be raised hasn’t been decided afaik. new thing in today’s plasma: thanks to Alex, holding ctrl while resizing allows you to change the aspect ratio. dunno how this actually works […]

  5. Racchio Says:

    This is good but why don’t use the same behaviour many graphical apps have? Generally holding CTRL while resizing is used to KEEP the aspect ratio, I think it would be more usable to resize plasma applets the same way, what do you think about it?

  6. randomguy3 Says:

    Actually, I was thinking that a separate “resize” button would be best. So the rotate button would only rotate, and the resize button would resize freely, but you could hold CTRL to keep the aspect ratio.

    This, really, was just a simple way to allow free resizing without changing existing behaviour.

  7. Aurélien Gâteau Says:

    @Racchio: +1, my opinion too

  8. Thomas Zander Says:

    What about this; http://wiki.koffice.org/index.php?title=Libs/Modifier_keys

  9. Dennis Says:

    I’m trying to implement my own widget, and I’ve gotten some inspiration from nowplaying. But the version in KDE 4.0.80 doesn’t seem to include the patch you’re talking about here.

    Where can I get it? I want my plasmoid to resize nicely as well.
    If you can point me to any resources that’d be great!

  10. randomguy3 Says:

    @Dennis:

    Plasma has changed substantially since I wrote this, because of the inclusion of widgets-on-canvas in Qt 4.4. Having just finished my exams, I’m still catching up with recent plasma developments.

    I’d suggest #plasma on IRC (irc.freenode.org) for asking questions.

  11. Dennis Says:

    Thanks a lot!
    Good for you, my exams are just coming up… 😉
    and good luck with the results!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: