mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-05-05 11:09:39 +00:00
c406b8df96
Move FakeMUI content to appropriate root-level folders by implementation:
**React Components → components/fakemui/**
- 537 components (inputs, surfaces, layout, data-display, feedback,
navigation, utils, atoms, lab, x, email, workflows)
- 416 SVG icons
- Full barrel exports in components/fakemui/index.ts
**QML Components → qml/**
- 104 Material Design 3 components (11 categories)
- 7 hybrid application views
- 8 desktop widgets
- qmldir module registration
**Python Bindings → python/fakemui/**
- 15 PyQt6 modules (120+ components)
- Full Python package structure with pyproject.toml
**SCSS/Styles → fakemui/** (renamed purpose)
- scss/ - Material Design 3 stylesheets
- styles/ - Component SCSS modules
- src/utils/ - Accessibility utilities
- index.ts now re-exports from components/fakemui/
This separation allows:
- React: import { Button } from '@metabuilder/components/fakemui'
- QML: import QmlComponents 1.0
- Python: from fakemui import Button, Card
- Backward compat: import { Button } from '@metabuilder/fakemui'
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
34 lines
753 B
QML
34 lines
753 B
QML
import QtQuick
|
|
|
|
/**
|
|
* CIcon.qml - Icon container (mirrors _icon.scss)
|
|
* Consistent icon sizing and coloring
|
|
*/
|
|
Text {
|
|
id: root
|
|
|
|
property string icon: "" // Unicode emoji or icon font character
|
|
property string size: "md" // sm, md, lg, xl
|
|
property color iconColor: Theme.onSurface
|
|
|
|
// Size mapping
|
|
readonly property int _size: {
|
|
switch (size) {
|
|
case "sm": return 16
|
|
case "lg": return 24
|
|
case "xl": return 32
|
|
default: return 20
|
|
}
|
|
}
|
|
|
|
text: icon
|
|
color: iconColor
|
|
font.pixelSize: _size
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
verticalAlignment: Text.AlignVCenter
|
|
|
|
width: _size
|
|
height: _size
|
|
}
|