NIcon new widget to simplify icons display

This commit is contained in:
quadbyte 2025-08-17 16:04:23 -04:00
parent 9bb9e7e015
commit ac8b4793d8
21 changed files with 64 additions and 127 deletions

View file

@ -276,13 +276,9 @@ NLoader {
anchors.rightMargin: Style.marginSmall * scaling
spacing: Style.marginSmall * scaling
// Tab icon on the left side
NText {
NIcon {
text: modelData.icon
color: tabTextColor
font.family: "Material Symbols Outlined"
font.variableAxes: {
"wght": (Font.Normal + Font.Bold) / 2.0
}
font.pointSize: Style.fontSizeLarge * scaling
}
// Tab label on the left side

View file

@ -135,9 +135,8 @@ ColumnLayout {
anchors.centerIn: parent
spacing: Style.marginSmall * scaling
NText {
NIcon {
text: "system_update"
font.family: "Material Symbols Outlined"
font.pointSize: Style.fontSizeXL * scaling
color: updateArea.containsMouse ? Color.mSurface : Color.mPrimary
}

View file

@ -168,12 +168,11 @@ Item {
border.width: Math.max(1, Style.borderThin * scaling)
visible: isSelected
NText {
anchors.centerIn: parent
NIcon {
text: "check"
font.family: "Material Symbols Outlined"
font.pointSize: Style.fontSizeSmall * scaling
color: Color.mOnPrimary
anchors.centerIn: parent
}
}
@ -216,9 +215,8 @@ Item {
anchors.centerIn: parent
spacing: Style.marginMedium * scaling
NText {
NIcon {
text: "folder_open"
font.family: "Material Symbols Outlined"
font.pointSize: Style.fontSizeLarge * scaling
color: Color.mOnSurface
Layout.alignment: Qt.AlignHCenter