About me

我的相片
I'm a web and software developer from Kaohsiung, Taiwan.
I design and implement user interfaces, also contribute to open source projects.
http://penkia.net/portfolio

2014年1月7日 星期二

LiveReload for QML

If you're like me, don't use QtCreator much, prefer command line and usually have a simple QtQuick view, then this is for you: https://github.com/penk/qml-livereload

QML LiveReload takes QFileSystemWatcher to monitor file changes, and lively updates the view when possible. It's no match for what QtCreator does but comes handy for simple projects.

Update:

Works on remote device too:

2013年12月24日 星期二

How to Pack a Qt Web Browser on Mac OSX

Copy QtWebProcess into app bundle (in our case, SlateKit.app):

mkdir -p SlateKit.app/Contents/libexec
cp ~/Qt5.2.0/5.2.0/clang_64/libexec/QtWebProcess SlateKit.app/Contents/libexec/

Set QPA and plugin path:

cat > SlateKit.app/Contents/libexec/qt.conf << EOF
[Paths]
Plugins = ../../PlugIns
Imports = ../../Resources/qml
Qml2Imports = ../../Resources/qml
EOF

Make the app bundle self-contained:

~/Qt5.2.0/5.2.0/clang_64/bin/macdeployqt SlateKit.app -qmldir=qml/ -executable=SlateKit.app/Contents/libexec/QtWebProcess -verbose=3 -dmg

Note there's a known bug of macdeployqt before Qt 5.1, here is a patched one.

More SlateKit Shell packages

In addition to the PPA and deb package, SlateKit Shell has been packed into several formats:

This can already be found on the Ubuntu Touch Software Centre:

2013年6月16日 星期日

SlateKit's handwriting recognition ported to Ubuntu Touch

One of the major components of SlakteKit project is its handwriting recognition input method. It's a usable fully open source solution, consists of Tegaki model, Zinnia engine and a simple QML Canvas stroke detection.

With a patch to maliit-keyboard, and my qtdeclarative5-zinnia-plugin package, it's now being ported to Ubuntu Touch:

I'll keep polishing the keyboard layout and settings of maliit. You can follow me on Twitter or the discussion thread at Ubuntu App Developers for updates.

Happy hacking,
penk

2013年6月9日 星期日

My Ubuntu Touch Weekend Hackathon on Nexus 4

I got some time to play with a Nexus 4 this weekend, and I decided to improve SlateKit Shell on Ubuntu Touch, here are some results:

Fixed the url text (TextField) layout, and improved Suggestion list:

Enabled OrientationHelper:

Tweaked Reader Mode text size:

And here's the tricky one, long pressed Context Menu support:

You can find all the commits from: https://code.launchpad.net/~penk/slatekit-shell/trunk

Best,
penk

2013年6月6日 星期四

SlateKit.org Grand Re-Opening

SlateKit.org, the official project website of SlateKit Launcher, Keyboard, NetWiz and recently Shell, hasn't been updated for a while. So this morning I took some time to assemble a new project site, here's the whole screen capture:

Here's the original sketch:

It's as simple as Twitter Bootstrap, Font Awesome and good old FancyZoom. It's a bit plain but I'm quite happy with the result. :-)

SlateKit Shell is now available on Ubuntu Touch

Some quick updates:

  • New features: Reader Mode and User-Agent string Switch
  • Install on Desktop
  • Debian package information landed in Github, this also provides an Ubuntu PPA, so you can install it on Ubuntu Desktop 13.04 (Raring) or later by:

    sudo add-apt-repository ppa:penk/touch
    sudo apt-get update
    sudo apt-get install slatekit-shell

  • Install on Ubuntu Touch
  • SlateKit Shell has been added to Collection PPA, thanks to Michael Hall's help. If you're working on Ubuntu Touch please give it a shot: ppa:ubuntu-touch-coreapps-drivers/collection.

  • UI Components
  • Rather than being tied to one single platform, I would like to make SlateKit a generic QML app suite. Only the one hosted on Launchpad will be using Ubuntu Components (mostly units for now, and some Popover); the main Github repository will not.

  • New Icon
  • Thanks to Georgi Karavasilev, we just got a very first graphical asset, an icon. Stay tuned! ;-)

Best,
Ping-Hsun Chen (penk) <penkia@gmail.com>