TheBlindCow

28 June 2010

Preparing presentations

Filed under: KDE,KDE-Edu,my projects,Software Libre,talks — apol @ 2:07 pm

When preparing these KDE presentation we usually need some artwork from the KDE icons and sometimes I’m too lazy to find them. That won’t happen anymore since I created this really small tool that solves part of this problem :) .

Works like that:

This generates a 128px kalgebra.png file with the KAlgebra icon:
kde-devel@tatilx:~$ kicons kalgebra 128

This generates a 128px kalgebra128.png file with the KAlgebra icon:
kde-devel@tatilx:~$ kicons kalgebra 128 kalgebra128.png

And of course, the real reason to post :)
I'm going to Akademy 2010

5 Comments

  1. Does this tool generate the 128px icons from the SVG sources? This sounds like an incredibly useful tool, perhaps to ship in a development kit (or kde-examples) somewhere. :)

    Comment by Diederik — 28 June 2010 @ 2:31 pm

  2. Nice utility, Aleix!

    Nitpicking about the build system, QIcon::fromTheme() was introduced in Qt 4.6.0 so I would include this line in CMakeLists.txt just before find_package(Qt4):
    set(QT_MIN_VERSION 4.6.0)

    And you can omit qt4_automoc() as there are no new QObjects in the project.

    Comment by Pedro — 28 June 2010 @ 3:10 pm

  3. @Diederik: Yes, actually it uses the QIcon facilities so it should choose the version that fits best automatically.

    @Pedro: I know, it’s just that I used KDevelop’s template and didn’t bother that much xD. If someone thinks it’s worth distributing somewhere we can make it ready (like putting a README and Lincense at least).

    Comment by apol — 28 June 2010 @ 3:28 pm

  4. I envy you!!!!!!
    :)

    Comment by baltolkien — 28 June 2010 @ 9:08 pm

  5. There is a shell script with gui support at kdesupport/oxygen-icons/scalable/ called export_pngs.sh ;-)

    Comment by pipesmoker — 30 June 2010 @ 2:35 pm

RSS feed for comments on this post. TrackBack URI

Sorry, the comment form is closed at this time.

Powered by WordPress