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

@ -148,7 +148,7 @@ Popup {
}
NIconButton {
icon: "x-lg"
icon: "close"
onClicked: root.close()
}
}
@ -492,7 +492,7 @@ Popup {
NButton {
id: cancelButton
text: "Cancel"
icon: "x-lg"
icon: "close"
outlined: cancelButton.hovered ? false : true
customHeight: 36 * scaling
customWidth: 100 * scaling

View file

@ -4,8 +4,9 @@ import qs.Commons
import qs.Widgets
Text {
id: root
property string icon: Icons.defaultIcon
property string family: Icons.fontFamily
visible: (icon !== undefined) && (icon !== "")
text: {
@ -15,11 +16,11 @@ Text {
if (Icons.get(icon) === undefined) {
Logger.warn("Icon", `"${icon}"`, "doesn't exist in the icons font")
Logger.callStack()
return Icons.get(defaultIcon)
return Icons.get(Icons.defaultIcon)
}
return Icons.get(icon)
}
font.family: family
font.family: Icons.fontFamily
font.pointSize: Style.fontSizeL * scaling
color: Color.mOnSurface
verticalAlignment: Text.AlignVCenter

View file

@ -48,7 +48,7 @@ Rectangle {
NIcon {
icon: root.icon
font.pointSize: Math.max(1, root.width * 0.4)
font.pointSize: Math.max(1, root.width * 0.5)
color: root.enabled && root.hovering ? colorFgHover : colorFg
// Center horizontally
x: (root.width - width) / 2

View file

@ -14,7 +14,7 @@ RowLayout {
property string placeholderText: ""
property string text: ""
property string actionButtonText: "Test"
property string actionButtonIcon: "play"
property string actionButtonIcon: "media-play"
property bool actionButtonEnabled: text !== ""
// Signals

View file

@ -162,7 +162,7 @@ Item {
// Close button (only if persistent or manual dismiss needed)
NIconButton {
icon: "x-lg"
icon: "close"
visible: root.persistent || root.duration === 0
colorBg: Color.mSurfaceVariant