mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Icons: huge cleanup
This commit is contained in:
@@ -85,7 +85,7 @@ NBox {
|
||||
}
|
||||
|
||||
NIconButton {
|
||||
icon: Bootstrap.icons["plus-lg"]
|
||||
icon: "plus-lg"
|
||||
|
||||
colorBg: Color.mPrimary
|
||||
colorFg: Color.mOnPrimary
|
||||
@@ -170,7 +170,7 @@ NBox {
|
||||
Loader {
|
||||
active: BarWidgetRegistry.widgetHasUserSettings(modelData.id)
|
||||
sourceComponent: NIconButton {
|
||||
icon: Bootstrap.icons["gear"]
|
||||
icon: "gear"
|
||||
sizeRatio: 0.6
|
||||
colorBorder: Qt.alpha(Color.mOutline, Style.opacityLight)
|
||||
colorBg: Color.mOnSurface
|
||||
@@ -210,7 +210,7 @@ NBox {
|
||||
}
|
||||
|
||||
NIconButton {
|
||||
icon: Bootstrap.icons["x-lg"]
|
||||
icon: "x-lg"
|
||||
sizeRatio: 0.6
|
||||
colorBorder: Qt.alpha(Color.mOutline, Style.opacityLight)
|
||||
colorBg: Color.mOnSurface
|
||||
|
||||
@@ -84,7 +84,7 @@ Popup {
|
||||
}
|
||||
|
||||
NIconButton {
|
||||
icon: Bootstrap.icons["x-lg"]
|
||||
icon: "x-lg"
|
||||
onClicked: settingsPopup.close()
|
||||
}
|
||||
}
|
||||
@@ -121,7 +121,7 @@ Popup {
|
||||
|
||||
NButton {
|
||||
text: "Apply"
|
||||
icon: Bootstrap.icons["check"]
|
||||
icon: "check-lg"
|
||||
onClicked: {
|
||||
if (settingsLoader.item && settingsLoader.item.saveSettings) {
|
||||
var newSettings = settingsLoader.item.saveSettings()
|
||||
|
||||
@@ -472,7 +472,7 @@ NPanel {
|
||||
|
||||
// Close button
|
||||
NIconButton {
|
||||
icon: Bootstrap.icons["x-lg"]
|
||||
icon: "x-lg"
|
||||
tooltipText: "Close"
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
onClicked: root.close()
|
||||
|
||||
@@ -172,7 +172,7 @@ ColumnLayout {
|
||||
imagePath: modelData.avatar_url || ""
|
||||
anchors.fill: parent
|
||||
anchors.margins: Style.marginXS * scaling
|
||||
fallbackIcon: Bootstrap.icons["person"]
|
||||
fallbackIcon: "person"
|
||||
borderColor: contributorArea.containsMouse ? Color.mOnTertiary : Color.mPrimary
|
||||
borderWidth: Math.max(1, Style.borderM * scaling)
|
||||
|
||||
|
||||
@@ -272,7 +272,7 @@ ColumnLayout {
|
||||
|
||||
// Button aligned to the center of the actual input field
|
||||
NIconButton {
|
||||
icon: Bootstrap.icons["plus-lg"]
|
||||
icon: "plus-lg"
|
||||
Layout.alignment: Qt.AlignBottom
|
||||
Layout.bottomMargin: blacklistInput.description ? Style.marginS * scaling : 0
|
||||
onClicked: {
|
||||
@@ -322,7 +322,7 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NIconButton {
|
||||
icon: Bootstrap.icons["x-lg"]
|
||||
icon: "x-lg"
|
||||
sizeRatio: 0.8
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
Layout.rightMargin: Style.marginXS * scaling
|
||||
|
||||
@@ -181,7 +181,7 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NIconButton {
|
||||
icon: Bootstrap.icons["arrow-repeat"]
|
||||
icon: "arrow-repeat"
|
||||
tooltipText: "Reset scaling"
|
||||
onClicked: ScalingService.setScreenScale(modelData, 1.0)
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ ColumnLayout {
|
||||
width: 108 * scaling
|
||||
height: 108 * scaling
|
||||
imagePath: Settings.data.general.avatarImage
|
||||
fallbackIcon: Bootstrap.icons["person"]
|
||||
fallbackIcon: "person"
|
||||
borderColor: Color.mPrimary
|
||||
borderWidth: Math.max(1, Style.borderM * scaling)
|
||||
Layout.alignment: Qt.AlignTop
|
||||
|
||||
@@ -59,7 +59,7 @@ ColumnLayout {
|
||||
anchors.fill: parent
|
||||
anchors.margins: Style.marginXS * scaling
|
||||
imagePath: currentWallpaper
|
||||
fallbackIcon: Bootstrap.icons["image"]
|
||||
fallbackIcon: "image"
|
||||
imageRadius: Style.radiusM * scaling
|
||||
borderColor: Color.mSecondary
|
||||
borderWidth: Style.borderL * 2 * scaling
|
||||
@@ -96,7 +96,7 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NIconButton {
|
||||
icon: Bootstrap.icons["arrow-repeat"]
|
||||
icon: "arrow-repeat"
|
||||
tooltipText: "Refresh wallpaper list"
|
||||
onClicked: {
|
||||
WallpaperService.refreshWallpapersList()
|
||||
@@ -181,7 +181,7 @@ ColumnLayout {
|
||||
visible: isSelected
|
||||
|
||||
NIcon {
|
||||
text: Bootstrap.icons["check"]
|
||||
icon: "check-lg"
|
||||
font.pointSize: Style.fontSizeM * scaling
|
||||
font.weight: Style.fontWeightBold
|
||||
color: Color.mOnSecondary
|
||||
|
||||
Reference in New Issue
Block a user