mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 14:25:02 +00:00
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>
39 lines
1.1 KiB
QML
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
|
|
}
|
|
}
|
|
}
|
|
}
|