Skip to content

📖 Qt client-side window decorations for Wayland implementing Material Design

License

Notifications You must be signed in to change notification settings

papyros/material-qt-decorations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

📖 Qt client-side window decorations for Wayland implementing Material Design

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published