🧩 Collection of Material Components based on QtQuickControls2.
A collection Material Components to build faster UI using Qml.
Warning : If you intend to use Qaterial in your project, you should use a stable version (v1.3) or create your own fork. I'm using this library for my own projects, and I will introduce breaking change if needed. This library isn't meant for LTS. Use at your own risk.
Feel free to pull request.
Some history. I started this library as a way to learn qml and how controls work. I made some api mistake so i'm fixing them here and there as time go. There will be breaking change.
My goal is to move to more standard API relying more only on QtQuickControls default property. I think i made the mistake to introduce some property in type that doesn't need to be there. Here are some idea where i'm going:
textType
to only use font
that is present in every controls. (Already in master)
Now you can use Label.Headline6
for example where you used textType: Qaterial.Style.TextType.Title
. Or font: Qaterial.Style.textTheme.headline6
.onPrimary
, colorReverse
, etc... that are everywhereColorTheme
for base color of every controls.palette
introduced in Qt 5.13 as the way to change colors to every controls. This will deprecate foregroundColor
, backgroundColor
, etc ... in many controls.TextField
will become a simple control without decorator meant to be the base of more customizable controls. You should move to TextFieldFilled
or TextFieldOutlined
or TextField2014
to have decorator (icon, suffix, prefix, etc...) (TextField2014 is already available as it is TextField).
Maybe introduce a TextFieldDecorated
without any background.
Also maybe use placeholderText
instead of title
. Since title is used as placeholder from my experience.DoublePage
that are too much specialized and are not controls.FabButton
to FloatingActionButton
.RawMaterialButton
.TextArea
on T.TextArea
and not Item
.RoundColorIcon
that is too complicated to use (and maintain)RoundImage
to use ClipRRect
.Qt::Core
, Qt::Gui
, Qt::Qml
, Qt::Quick
, Qt::QuickControls2
, Qt::Svg
, Qt::Xml