Files
metabuilder/qml/MetaBuilder/ThemePreviewForm.qml
johndoe6345789 311fb4db38 refactor(qt6): deep split round — targeting 200 LOC views, 100 LOC components
SuperGodPanel (604→~200): CTenantTab, CGodUsersTab, CTransferTab, CSystemTab, CSuperGodDialogs
WorkflowEditor (443→325): WorkflowMutations.js + WorkflowDBAL.js pure modules
ThemeLivePreview (256→87): ThemePreviewCard, ThemePreviewForm
CNodePropertiesPanel (238→143): CNodeParameterList, CNodePortsDisplay
MediaTvTab, WorkflowNode, CssPropertyEditor split to ~100 each
+ mid-size view trims (MediaService, Admin, PackageMgr, Storybook, GodPanel)

113→120+ components, avg component LOC approaching 90.

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

52 lines
1.3 KiB
QML

import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import QmlComponents 1.0
ColumnLayout {
id: previewForm
spacing: 14
property string customSurface: "#000000"
property string customText: "#000000"
property string customTextSecondary: "#000000"
property string fontFamily: "Inter"
property int baseFontSize: 14
property int radiusSmall: 4
// Preview header bar
Rectangle {
Layout.fillWidth: true
Layout.preferredHeight: 44
radius: radiusSmall
color: customSurface
RowLayout {
anchors.fill: parent
anchors.leftMargin: 14
anchors.rightMargin: 14
spacing: 12
Text {
text: "MetaBuilder"
font.pixelSize: baseFontSize + 2
font.weight: Font.Bold
font.family: fontFamily
color: customText
}
Item { Layout.fillWidth: true }
Repeater {
model: ["Dashboard", "Settings", "Help"]
Text {
text: modelData
font.pixelSize: baseFontSize - 1
font.family: fontFamily
color: customTextSecondary
}
}
}
}
}