more icons

This commit is contained in:
LemmyCook 2025-09-08 14:44:28 -04:00
parent 6169f88d90
commit 6f1b88e76d
14 changed files with 24 additions and 20 deletions

View file

@ -55,7 +55,7 @@ NPanel {
} }
NIconButton { NIconButton {
icon: "close" icon: FontService.icons["close"]
tooltipText: "Close" tooltipText: "Close"
sizeRatio: 0.8 sizeRatio: 0.8
onClicked: root.close() onClicked: root.close()

View file

@ -43,7 +43,7 @@ Item {
function getIcon() { function getIcon() {
if (AudioService.muted) { if (AudioService.muted) {
return FontService.icons["volume_off"] // TODO disabled icon ? return FontService.icons["volume_muted"]
} }
return AudioService.volume return AudioService.volume
<= Number.EPSILON ? FontService.icons["volume_off"] : (AudioService.volume <= Number.EPSILON ? FontService.icons["volume_off"] : (AudioService.volume

View file

@ -53,7 +53,7 @@ NPanel {
} }
NIconButton { NIconButton {
icon: "close" icon: FontService.icons["close"]
tooltipText: "Close" tooltipText: "Close"
sizeRatio: 0.8 sizeRatio: 0.8
onClicked: { onClicked: {

View file

@ -294,7 +294,7 @@ Variants {
// Close button positioned absolutely // Close button positioned absolutely
NIconButton { NIconButton {
icon: "close" icon: FontService.icons["close"]
tooltipText: "Close" tooltipText: "Close"
sizeRatio: 0.6 sizeRatio: 0.6
anchors.top: parent.top anchors.top: parent.top

View file

@ -59,7 +59,7 @@ NPanel {
} }
NIconButton { NIconButton {
icon: "close" icon: FontService.icons["close"]
tooltipText: "Close" tooltipText: "Close"
sizeRatio: 0.8 sizeRatio: 0.8
onClicked: { onClicked: {

View file

@ -210,7 +210,7 @@ NBox {
} }
NIconButton { NIconButton {
icon: "close" icon: FontService.icons["close"]
sizeRatio: 0.6 sizeRatio: 0.6
colorBorder: Qt.alpha(Color.mOutline, Style.opacityLight) colorBorder: Qt.alpha(Color.mOutline, Style.opacityLight)
colorBg: Color.mOnSurface colorBg: Color.mOnSurface

View file

@ -84,7 +84,7 @@ Popup {
} }
NIconButton { NIconButton {
icon: "close" icon: FontService.icons["close"]
onClicked: settingsPopup.close() onClicked: settingsPopup.close()
} }
} }

View file

@ -163,7 +163,7 @@ NPanel {
}, { }, {
"id": SettingsPanel.Tab.ColorScheme, "id": SettingsPanel.Tab.ColorScheme,
"label": "Color Scheme", "label": "Color Scheme",
"icon": FontService.icons["palette"], "icon": FontService.icons["paint_bucket"],
"source": colorSchemeTab "source": colorSchemeTab
}, { }, {
"id": SettingsPanel.Tab.Wallpaper, "id": SettingsPanel.Tab.Wallpaper,
@ -177,7 +177,7 @@ NPanel {
newTabs.push({ newTabs.push({
"id": SettingsPanel.Tab.WallpaperSelector, "id": SettingsPanel.Tab.WallpaperSelector,
"label": "Wallpaper Selector", "label": "Wallpaper Selector",
"icon": FontService.icons["image"], "icon": FontService.icons["paint_brush"],
"source": wallpaperSelectorTab "source": wallpaperSelectorTab
}) })
} }
@ -473,7 +473,7 @@ NPanel {
// Close button // Close button
NIconButton { NIconButton {
icon: "close" icon: FontService.icons["close"]
tooltipText: "Close" tooltipText: "Close"
Layout.alignment: Qt.AlignVCenter Layout.alignment: Qt.AlignVCenter
onClicked: root.close() onClicked: root.close()

View file

@ -322,7 +322,7 @@ ColumnLayout {
} }
NIconButton { NIconButton {
icon: "close" icon: FontService.icons["close"]
sizeRatio: 0.8 sizeRatio: 0.8
Layout.alignment: Qt.AlignVCenter Layout.alignment: Qt.AlignVCenter
Layout.rightMargin: Style.marginXS * scaling Layout.rightMargin: Style.marginXS * scaling

View file

@ -42,7 +42,7 @@ NBox {
} }
// Balanced // Balanced
NIconButton { NIconButton {
icon: FontService.icons["scale"] icon: FontService.icons["yin_yang"]
tooltipText: "Set balanced power profile." tooltipText: "Set balanced power profile."
enabled: hasPP enabled: hasPP
opacity: enabled ? Style.opacityFull : Style.opacityMedium opacity: enabled ? Style.opacityFull : Style.opacityMedium

View file

@ -63,7 +63,7 @@ NPanel {
} }
NIconButton { NIconButton {
icon: "close" icon: FontService.icons["close"]
tooltipText: "Close" tooltipText: "Close"
sizeRatio: 0.8 sizeRatio: 0.8
onClicked: root.close() onClicked: root.close()
@ -105,7 +105,7 @@ NPanel {
} }
NIconButton { NIconButton {
icon: "close" icon: FontService.icons["close"]
sizeRatio: 0.6 sizeRatio: 0.6
onClicked: NetworkService.lastError = "" onClicked: NetworkService.lastError = ""
} }
@ -492,7 +492,7 @@ NPanel {
} }
NIconButton { NIconButton {
icon: "close" icon: FontService.icons["close"]
sizeRatio: 0.8 sizeRatio: 0.8
onClicked: { onClicked: {
passwordSsid = "" passwordSsid = ""
@ -547,7 +547,7 @@ NPanel {
} }
NIconButton { NIconButton {
icon: "close" icon: FontService.icons["close"]
sizeRatio: 0.8 sizeRatio: 0.8
onClicked: expandedSsid = "" onClicked: expandedSsid = ""
} }

View file

@ -25,6 +25,7 @@ Singleton {
"battery_low": "\uF187", "battery_low": "\uF187",
"battery_full": "\uF186", "battery_full": "\uF186",
"battery_charging": "\uF185", "battery_charging": "\uF185",
"volume_muted": "\uEEE8",
"volume_off": "\uF026", "volume_off": "\uF026",
"volume_half": "\uF027", "volume_half": "\uF027",
"volume_full": "\uF028", "volume_full": "\uF028",
@ -46,7 +47,10 @@ Singleton {
"coffee": "\uef59", "coffee": "\uef59",
"thermometer": "\uE350", "thermometer": "\uE350",
"contrast": "\uF042", "contrast": "\uF042",
"skull": "\uEE15" "skull": "\uEE15",
"paint_brush": "\uEE26",
"paint_bucket": "\uEE3F",
"yin_yang": "\uEEE9"
} }
// ------------------------------------------- // -------------------------------------------

View file

@ -147,7 +147,7 @@ Popup {
} }
NIconButton { NIconButton {
icon: "close" icon: FontService.icons["close"]
onClicked: root.close() onClicked: root.close()
} }
} }
@ -491,7 +491,7 @@ Popup {
NButton { NButton {
id: cancelButton id: cancelButton
text: "Cancel" text: "Cancel"
icon: "close" icon: FontService.icons["close"]
outlined: cancelButton.hovered ? false : true outlined: cancelButton.hovered ? false : true
customHeight: 36 * scaling customHeight: 36 * scaling
customWidth: 100 * scaling customWidth: 100 * scaling

View file

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