ESP32_upper/QML/components/IconInfoLabel.qml
2024-12-20 11:11:59 +08:00

46 lines
1.3 KiB
QML

import QtQuick 2.15
import QtQuick.Controls
import QtQuick.Layouts
import Qt5Compat.GraphicalEffects
import ESP32_upper
Item {
anchors.fill: parent
Rectangle {
color: "#F00000"
radius: 5
height: parent.height
RowLayout {
spacing: 20
height: parent.height
Image {
Layout.preferredWidth: parent.height
Layout.preferredHeight: parent.height
id:id_svg_icon_info_lb
source: "qrc:/assets/img/terminal-box-fill.svg"
smooth: true // 使图片平滑缩放
asynchronous: true // 异步加载图片
// 使用 ColorOverlay 修改 SVG 颜色
ColorOverlay {
anchors.fill: parent
source: parent
color: sharedData.left_menu_non_lighlight_color // 修改后的 SVG 图片颜色
}
}
Text {
text: "芯片类型:"
font.pixelSize: sharedData.font_info_pixel_size
}
Text {
id: id_comp_ico_info_lb
text: "未确认"
font.pixelSize: sharedData.font_info_pixel_size
}
}
}
}