Generate media¶
Most media files used in the HIG are generated from QML files.
The command line tool qmlgrabber is used to create media from the source files.
Source files are located in HIG/source/qml
.
If you are new to KDE devlopment, make sure to read how to become a kde developer first.
Getting Started¶
Install some tools with your distro’s package manager:
Distribution |
Command |
---|---|
Arch, Manjaro |
|
Debian, Ubuntu, KDE Neon |
|
openSUSE |
|
Fedora |
|
CentOS/RHEL |
|
Clone qmlgrabber source code repository into an empty folder:
git clone https://anongit.kde.org/scratch/mart/qmlgrabber.git cd qmlgrabber qmake PREFIX=~/.local/bin make make install
If you install it in you home directory, make sure you have the installed packages in your path by adding it to your .profile:
echo "PATH=~/.local/bin:\$PATH" >> ~/.profile source ~/.profile
Now you are ready to create media files for the the HIG!
Change to a directory containing qml source files. E.g.
cd HIG/source/qml/components/actionbutton
Run
makemedia.php Actionbutton1.qml
ormakemedia.php .
to create media files.