mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 22:04:56 +00:00
feat(styles): create global styles entry point and organize global styles feat(styles): implement base HTML element styles and utility classes for flexbox feat(styles): establish layout, position, spacing, and text utility classes feat(styles): introduce mixins for animations, cards, dialogs, flexbox, grid, and responsive design test(quick_guide): add component and metadata validation tests for quick_guide package test(ui_level6): implement metadata validation tests for ui_level6 package
28 lines
523 B
QML
28 lines
523 B
QML
import QtQuick
|
|
|
|
/**
|
|
* CFab.qml - Floating action button
|
|
*/
|
|
Rectangle {
|
|
id: root
|
|
property alias icon: iconLabel.text
|
|
property int size: 56
|
|
signal clicked()
|
|
|
|
width: size
|
|
height: size
|
|
radius: size/2
|
|
color: Theme.primary
|
|
anchors.margins: StyleVariables.spacingMd
|
|
|
|
Text {
|
|
id: iconLabel
|
|
anchors.centerIn: parent
|
|
text: "+"
|
|
color: Theme.onPrimary
|
|
font.pixelSize: size * 0.5
|
|
}
|
|
|
|
MouseArea { anchors.fill: parent; onClicked: root.clicked() }
|
|
}
|