This commit is contained in:
ItsLemmy
2025-10-14 19:32:41 -04:00
parent 23b26a8ca7
commit c082f4e871
3 changed files with 45 additions and 45 deletions
+6 -6
View File
@@ -397,12 +397,12 @@ ColumnLayout {
availableWidgets.clear()
const widgets = BarWidgetRegistry.getAvailableWidgets()
widgets.forEach(entry => {
availableWidgets.append({
"key": entry,
"name": entry,
"badgeLocations": getWidgetLocations(entry)
})
})
availableWidgets.append({
"key": entry,
"name": entry,
"badgeLocations": getWidgetLocations(entry)
})
})
}
// Base list model for all combo boxes
+1 -1
View File
@@ -15,7 +15,7 @@ Singleton {
// Key format: "screenName|section|widgetId|index"
property var widgetInstances: ({})
signal activeWidgetsChanged()
signal activeWidgetsChanged
signal barReadyChanged(string screenName)
+38 -38
View File
@@ -210,49 +210,49 @@ RowLayout {
combo.popup.close()
}
contentItem: RowLayout {
width: parent.width
spacing: Style.marginM
NText {
text: name
pointSize: Style.fontSizeM
color: highlighted ? Color.mOnTertiary : Color.mOnSurface
verticalAlignment: Text.AlignVCenter
elide: Text.ElideRight
Layout.fillWidth: true
Behavior on color {
ColorAnimation {
duration: Style.animationFast
}
}
}
RowLayout {
spacing: Style.marginS
Layout.alignment: Qt.AlignRight
Repeater {
model: badgeLocations
delegate: NBox {
width: Style.baseWidgetSize * 0.7
height: Style.baseWidgetSize * 0.7
color: "transparent"
radius: Style.radiusS
border.width: 0
contentItem: RowLayout {
width: parent.width
spacing: Style.marginM
NText {
anchors.centerIn: parent
text: modelData
pointSize: Style.fontSizeXXS
font.weight: Style.fontWeightBold
color: highlighted ? Color.mOnTertiary : Color.mOnSurface
NText {
text: name
pointSize: Style.fontSizeM
color: highlighted ? Color.mOnTertiary : Color.mOnSurface
verticalAlignment: Text.AlignVCenter
elide: Text.ElideRight
Layout.fillWidth: true
Behavior on color {
ColorAnimation {
duration: Style.animationFast
}
}
}
RowLayout {
spacing: Style.marginS
Layout.alignment: Qt.AlignRight
Repeater {
model: badgeLocations
delegate: NBox {
width: Style.baseWidgetSize * 0.7
height: Style.baseWidgetSize * 0.7
color: "transparent"
radius: Style.radiusS
border.width: 0
NText {
anchors.centerIn: parent
text: modelData
pointSize: Style.fontSizeXXS
font.weight: Style.fontWeightBold
color: highlighted ? Color.mOnTertiary : Color.mOnSurface
}
}
}
}
}
}
background: Rectangle {
width: listView.width
color: highlighted ? Color.mTertiary : Color.transparent