mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 14:25:02 +00:00
- Update 22 package metadata.json files with consistent schema - Enhance PackageLoader with file watching and navigable packages - Update QmlComponents library (atoms, core, data-display, feedback, form, layout, surfaces) - Improve watchtower PackageView and MaterialAccordion Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
35 lines
778 B
QML
35 lines
778 B
QML
import QtQuick
|
|
import QmlComponents 1.0
|
|
|
|
/**
|
|
* 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
|
|
}
|