45 lines
1.2 KiB
QML
45 lines
1.2 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: id_svg_icon_info_lb
|
|
source: id_svg_icon_info_lb
|
|
color: id_gp.left_menu_non_lighlight_color // 修改后的 SVG 图片颜色
|
|
}
|
|
|
|
Text {
|
|
text: "芯片类型:"
|
|
font.pixelSize: id_gp.font_info_pixel_size
|
|
}
|
|
|
|
Text {
|
|
id: id_comp_ico_info_lb
|
|
text: "未确认"
|
|
font.pixelSize: id_gp.font_info_pixel_size
|
|
}
|
|
}
|
|
}
|
|
}
|