Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 2.11 KB

README.md

File metadata and controls

42 lines (28 loc) · 2.11 KB

Material Design Qt-Client Side Decorations

ZenHub.io

License GitHub release Build Status GitHub issues Maintained

Installation

From the root of the repository, run:

mkdir build; cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DQML_INSTALL_DIR=lib/qt/qml
make
make install # use sudo if necessary

Usage

When using a Wayland session, set the environmental variable QT_WAYLAND_DECORATION to material, and newly launched applications will start up with the Material Design decorations instead of the default bradient decorations.

To change the window decoration color, add the following import to your QML file:

import io.papyros.decorations 0.1

And add the following code:

WindowDecorations {
    window: idOfYourWindow
    backgroundColor: "your-color"
    textColor: "your-color"
    iconColor: "your-color"
}

Check out QML Material for a Material Design framework for QtQuick that automatically sets the decoration color to the primary dark color to correspond to the primary color of the toolbar.

Licensing

Material Qt Decorations is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.