New icons: more icons and cleanup

This commit is contained in:
LemmyCook 2025-09-09 17:02:57 -04:00
parent 43eec0e387
commit 48f6c0705b
41 changed files with 6201 additions and 5018 deletions

View file

@ -85,7 +85,7 @@ NBox {
}
NIconButton {
icon: "plus-lg"
icon: "add"
colorBg: Color.mPrimary
colorFg: Color.mOnPrimary
@ -170,7 +170,7 @@ NBox {
Loader {
active: BarWidgetRegistry.widgetHasUserSettings(modelData.id)
sourceComponent: NIconButton {
icon: "gear"
icon: "settings"
sizeRatio: 0.6
colorBorder: Qt.alpha(Color.mOutline, Style.opacityLight)
colorBg: Color.mOnSurface
@ -210,7 +210,7 @@ NBox {
}
NIconButton {
icon: "x-lg"
icon: "close"
sizeRatio: 0.6
colorBorder: Qt.alpha(Color.mOutline, Style.opacityLight)
colorBg: Color.mOnSurface

View file

@ -84,7 +84,7 @@ Popup {
}
NIconButton {
icon: "x-lg"
icon: "close"
onClicked: settingsPopup.close()
}
}

View file

@ -26,8 +26,8 @@ ColumnLayout {
id: iconInput
Layout.fillWidth: true
label: "Icon Name"
description: "Pick from Bootstrap Icons or type a name."
placeholderText: "Enter icon name (e.g., speedometer2, gear, house)"
description: "Select an icon from the library."
placeholderText: "Enter icon name (e.g., cat, gear, house, ...)"
text: widgetData?.icon || widgetMetadata.icon
}
@ -65,7 +65,7 @@ ColumnLayout {
property string query: ""
property string selectedIcon: ""
property var allIcons: Object.keys(Bootstrap.icons)
property var allIcons: Object.keys(Icons.icons)
property var filteredIcons: allIcons.filter(function (name) {
return query === "" || name.toLowerCase().indexOf(query.toLowerCase()) !== -1
})
@ -96,7 +96,7 @@ ColumnLayout {
Layout.fillWidth: true
}
NIconButton {
icon: "x-lg"
icon: "close"
onClicked: iconPicker.close()
}
}