Skip to content

Instantly share code, notes, and snippets.

@thorbenk
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thorbenk/5ab06bea726de0aa7473 to your computer and use it in GitHub Desktop.
Save thorbenk/5ab06bea726de0aa7473 to your computer and use it in GitHub Desktop.
Compile Qt Creator with dark theme

Qt Creator dark theme

I've implemented a new dark theme for Qt Creator (inspired by this .css file), see attached screenshot.

Find the codereview over on https://codereview.qt-project.org/#/c/93717/

Here's how to compile it:

Optional: Compile Qt

Qt Creator now requires Qt 5.3.1 (see this commit). If you have Qt >= 5.3.1, you should be fine.

Otherwise, compile Qt for yourself. I've compiled Qt's 5.4 branch as follows.

On Ubuntu 14.04, install some dependencies

sudo apt-get install flex bison gperf libicu-dev libxslt-dev ruby \
                     "^libxcb.*" libx11-xcb-dev libglu1-mesa-dev libxrender-dev \
                     libfreetype6-dev libharfbuzz-dev
sudo apt-get remove appmenu-qt5 appmenu-qt

Then, compile Qt5 from git (see http://qt-project.org/wiki/Building_Qt_5_from_Git)

git clone git://gitorious.org/qt/qt5.git qt5
cd qt5
./init-repository
git checkout 5.4
git submodule update
git submodule foreach git clean -df
./configure -opensource -confirm-license -release \
            -nomake examples -system-sqlite -optimized-qmake -system-harfbuzz -v \
            --prefix=/nobackup/inst 
make -j3
make install

Build QtCreator

git checkout https://github.com/thorbenk/qt-creator.git
cd qt-creator
git checkout --track origin/creatortheme_dark
/nobackup/inst/bin/qmake qtcreator.pro -r
make -j3

Run with dark theme

./bin/qtcreator.sh -theme dark
@MaxBaeten
Copy link

That Qt looks awesome!
However, in the build step of Qtcreator, the first git checkout https://github.com/thorbenk/qt-creator.git gives me the following error:

git checkout https://github.com/thorbenk/qt-creator.git
error: pathspec 'https://github.com/thorbenk/qt-creator.git' did not match any file(s) known to git.

Did I do something wrong in the build of Qt5? I got an error there as well which i could surpass by adding -continue.

The files that are now in my ~/qt5 folder are:

configure qtdeclarative qtsensors
configure.bat qtdoc qtserialport
gnuwin32 qtdocgallery qtsvg
init-repository qtenginio qtsystems
LGPL_EXCEPTION.txt qtfeedback qttools
LICENSE.FDL qtgraphicaleffects qttranslations
LICENSE.GPLv2 qtimageformats qtwayland
LICENSE.LGPLv21 qtlocation qtwebchannel
LICENSE.LGPLv3 qtmacextras qtwebengine
LICENSE.PREVIEW.COMMERCIAL qtmultimedia qtwebkit
Makefile qtpim qtwebkit-examples
qt3d qt.pro qtwebsockets
qtactiveqt qtqa qtwinextras
qtandroidextras qtquick1 qtx11extras
qtbase qtquickcontrols qtxmlpatterns
qtcanvas3d qtrepotools README
qtconnectivity qtscript README.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment