data-prototype/libs/BreezeStyleSheets
Ernst 5945969ab8 Playing around with dark themes, found one that works. TODO: Display
licenses.
2018-09-01 18:47:40 -07:00
..
assets Playing around with dark themes, found one that works. TODO: Display 2018-09-01 18:47:40 -07:00
dark Playing around with dark themes, found one that works. TODO: Display 2018-09-01 18:47:40 -07:00
light Playing around with dark themes, found one that works. TODO: Display 2018-09-01 18:47:40 -07:00
.gitignore Playing around with dark themes, found one that works. TODO: Display 2018-09-01 18:47:40 -07:00
LICENSE.md Playing around with dark themes, found one that works. TODO: Display 2018-09-01 18:47:40 -07:00
README.md Playing around with dark themes, found one that works. TODO: Display 2018-09-01 18:47:40 -07:00
breeze.qrc Playing around with dark themes, found one that works. TODO: Display 2018-09-01 18:47:40 -07:00
breeze_resouces.py Playing around with dark themes, found one that works. TODO: Display 2018-09-01 18:47:40 -07:00
dark.py Playing around with dark themes, found one that works. TODO: Display 2018-09-01 18:47:40 -07:00
dark.qss Playing around with dark themes, found one that works. TODO: Display 2018-09-01 18:47:40 -07:00
example.py Playing around with dark themes, found one that works. TODO: Display 2018-09-01 18:47:40 -07:00
light.py Playing around with dark themes, found one that works. TODO: Display 2018-09-01 18:47:40 -07:00
light.qss Playing around with dark themes, found one that works. TODO: Display 2018-09-01 18:47:40 -07:00
native.py Playing around with dark themes, found one that works. TODO: Display 2018-09-01 18:47:40 -07:00

README.md

BreezeStyleSheets

Breeze and BreezeDark-like stylesheets for Qt Applications.

Installation

Copy breeze.qrc, dark.qss, light.qss and the dark and light folders into your project directory and add the qrc file to your project file.

For example:

TARGET = app
SOURCES = main.cpp
RESOURCES = breeze.qrc

To load the stylesheet in C++, load the file using QFile and read the data. For example, to load BreezeDark, run:


#include <QApplication>
#include <QFile>
#include <QTextStream>


int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    // set stylesheet
    QFile file(":/dark.qss");
    file.open(QFile::ReadOnly | QFile::Text);
    QTextStream stream(&file);
    app.setStyleSheet(stream.readAll());

    // code goes here

    return app.exec();
}

License

MIT, see license.

Example

Breeze/BreezeDark

Example user interface using the Breeze and BreezeDark stylesheets side-by-side.

BreezeDark

Acknowledgements

BreezeStyleSheets is a fork of QDarkStyleSheet.

Contact

Email: ahuszagh@gmail.com
Twitter: KardOnIce