Files
metabuilder/qml/Material/MaterialSkeleton.qml
johndoe6345789 6e394d7846 style(qt6): 80-char margin enforced — 737 violations → 29 remaining
191 files reformatted across views, components, widgets, hybrid, contexts.
New components: CCreateSchemaDialog, CAddFieldDialog, CAdminContentPanel.
JS helpers: connBadgeStatus/Text, adminStats, exampleLabels, onLevelClicked.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 15:48:39 +00:00

39 lines
1.1 KiB
QML

import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import "MaterialPalette.qml" as MaterialPalette
Rectangle {
id: skeleton
property bool animated: true
property color baseColor: MaterialPalette.surfaceVariant
property color highlightColor: MaterialPalette.surface
radius: 8
color: baseColor
implicitWidth: 120
implicitHeight: 20
Rectangle {
id: shimmer
anchors.fill: parent
gradient: Gradient {
GradientStop { position: 0.0; color: Qt.rgba(highlightColor.r,
highlightColor.g, highlightColor.b, 0) }
GradientStop { position: 0.5; color: highlightColor }
GradientStop { position: 1.0; color: Qt.rgba(highlightColor.r,
highlightColor.g, highlightColor.b, 0) }
}
opacity: animated ? 1 : 0
Behavior on x {
NumberAnimation {
duration: 1100
from: -width
to: width
loops: Animation.Infinite
easing.type: Easing.InOutQuad
}
}
}
}