Icons: more icons

This commit is contained in:
LemmyCook 2025-09-08 21:37:01 -04:00
parent c77784b5c1
commit ccdb4e0664
14 changed files with 27 additions and 39 deletions

View file

@ -19,13 +19,13 @@ NIconButton {
function profileIcon() {
if (!hasPP)
return "balance"
return Bootstrap.icons["yin-yang"]
if (powerProfiles.profile === PowerProfile.Performance)
return "speed"
return Bootstrap.icons["speedometer2"]
if (powerProfiles.profile === PowerProfile.Balanced)
return "balance"
return Bootstrap.icons["yin-yang"]
if (powerProfiles.profile === PowerProfile.PowerSaver)
return "eco"
return Bootstrap.icons["leaf"]
}
function profileName() {
@ -57,4 +57,4 @@ NIconButton {
colorBorder: Color.transparent
colorBorderHover: Color.transparent
onClicked: root.changeProfile()
}
}

View file

@ -33,7 +33,7 @@ NIconButton {
readonly property bool useDistroLogo: (widgetSettings.useDistroLogo
!== undefined) ? widgetSettings.useDistroLogo : widgetMetadata.useDistroLogo
icon: useDistroLogo ? "" : Bootstrap.icons["panel"]
icon: useDistroLogo ? "" : Bootstrap.icons["layout-sidebar-inset-reverse"]
tooltipText: "Open side panel."
sizeRatio: 0.8

View file

@ -47,7 +47,7 @@ Item {
}
return AudioService.volume
<= Number.EPSILON ? Bootstrap.icons["volume-off"] : (AudioService.volume
< 0.5 ? Bootstrap.icons["volume-down"] : Bootstrap.icons["volume-up"])
< 0.5 ? Bootstrap.icons["volume-down"] : Bootstrap.icons["volume-up"])
}
// Connection used to open the pill when volume changes

View file

@ -85,7 +85,7 @@ NPanel {
}
NIcon {
text: "notifications_off"
text: Bootstrap.icons["bell-slash"]
font.pointSize: 64 * scaling
color: Color.mOnSurfaceVariant
Layout.alignment: Qt.AlignHCenter

View file

@ -85,7 +85,7 @@ NBox {
}
NIconButton {
icon: Bootstrap.icons["plus"]
icon: Bootstrap.icons["plus-lg"]
colorBg: Color.mPrimary
colorFg: Color.mOnPrimary

View file

@ -195,7 +195,7 @@ NPanel {
}, {
"id": SettingsPanel.Tab.About,
"label": "About",
"icon": "person",
"icon": "info-circle",
"source": aboutTab
})
@ -400,21 +400,13 @@ NPanel {
anchors.fill: parent
anchors.leftMargin: Style.marginS * scaling
anchors.rightMargin: Style.marginS * scaling
spacing: Style.marginS * scaling
spacing: Style.marginM * scaling
// Tab icon
Item {
width: 20 * scaling
height: width
NIcon {
text: Bootstrap.icons[modelData.icon]
color: tabTextColor
font.pointSize: Style.fontSizeL * scaling
anchors.centerIn: parent
}
NIcon {
text: Bootstrap.icons[modelData.icon]
color: tabTextColor
font.pointSize: Style.fontSizeL * scaling
}
// Tab label
NText {
text: modelData.label

View file

@ -272,7 +272,7 @@ ColumnLayout {
// Button aligned to the center of the actual input field
NIconButton {
icon: Bootstrap.icons["plus"]
icon: Bootstrap.icons["plus-lg"]
Layout.alignment: Qt.AlignBottom
Layout.bottomMargin: blacklistInput.description ? Style.marginS * scaling : 0
onClicked: {

View file

@ -28,7 +28,7 @@ NBox {
}
// Performance
NIconButton {
icon: Bootstrap.icons["speed"]
icon: Bootstrap.icons["speedometer2"]
tooltipText: "Set performance power profile."
enabled: hasPP
opacity: enabled ? Style.opacityFull : Style.opacityMedium
@ -42,7 +42,7 @@ NBox {
}
// Balanced
NIconButton {
icon: Bootstrap.icons["yin_yang"]
icon: Bootstrap.icons["yin-yang"]
tooltipText: "Set balanced power profile."
enabled: hasPP
opacity: enabled ? Style.opacityFull : Style.opacityMedium

View file

@ -24,7 +24,7 @@ NBox {
NCircleStat {
value: SystemStatService.cpuUsage
icon: Bootstrap.icons["speed"]
icon: Bootstrap.icons["speedometer2"]
flat: true
contentScale: 0.8
width: 72 * scaling
@ -33,7 +33,7 @@ NBox {
NCircleStat {
value: SystemStatService.cpuTemp
suffix: "°C"
icon: Bootstrap.icons["thermometer"]
icon: Bootstrap.icons["fire"]
flat: true
contentScale: 0.8
width: 72 * scaling

View file

@ -25,7 +25,7 @@ NBox {
}
// Screen Recorder
NIconButton {
icon: Bootstrap.icons["video_camera"]
icon: Bootstrap.icons["camera-video"]
tooltipText: ScreenRecorderService.isRecording ? "Stop screen recording." : "Start screen recording."
colorBg: ScreenRecorderService.isRecording ? Color.mPrimary : Color.mSurfaceVariant
colorFg: ScreenRecorderService.isRecording ? Color.mOnPrimary : Color.mPrimary
@ -41,7 +41,7 @@ NBox {
// Idle Inhibitor
NIconButton {
icon: Bootstrap.icons["coffee"]
icon: Bootstrap.icons["cup-hot"]
tooltipText: IdleInhibitorService.isInhibited ? "Disable keep awake." : "Enable keep awake."
colorBg: IdleInhibitorService.isInhibited ? Color.mPrimary : Color.mSurfaceVariant
colorFg: IdleInhibitorService.isInhibited ? Color.mOnPrimary : Color.mPrimary