Icons: 99% done
This commit is contained in:
parent
1f8c55d581
commit
bacd65b274
19 changed files with 51 additions and 90 deletions
|
|
@ -8,54 +8,6 @@ import qs.Commons
|
||||||
Singleton {
|
Singleton {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
// "wifi_disable": "\uF61B",
|
|
||||||
// "wifi_low": "\uF619",
|
|
||||||
// "wifi_half": "\uF61A",
|
|
||||||
// "wifi_full": "\uF61C",
|
|
||||||
// "power": "\uF4FF",
|
|
||||||
|
|
||||||
// "close": "\uF659",
|
|
||||||
// "check": "\uF272",
|
|
||||||
// "panel": "\uF290",
|
|
||||||
// "memory": "\uF2D6",
|
|
||||||
// "trash": "\uF78B",
|
|
||||||
// "video_camera": "\uF21F",
|
|
||||||
// "ethernet": "\uF2EB",
|
|
||||||
// "speed": "\uF66B",
|
|
||||||
// "leaf": "\uF90C",
|
|
||||||
// "microphone": "\uF490",
|
|
||||||
// "microphone_muted": "\uF48F",
|
|
||||||
// "coffee": "\uF2E0",
|
|
||||||
// "refresh": "\uF130",
|
|
||||||
// "image": "\uF226",
|
|
||||||
// "contrast": "\uF288",
|
|
||||||
// "record": "\uF518",
|
|
||||||
// "pause": "\uF4C1",
|
|
||||||
// "play": "\uF4F2",
|
|
||||||
// "stop": "\uF590",
|
|
||||||
// "prev": "\uF561",
|
|
||||||
// "next": "\uF55B",
|
|
||||||
// "arrow_drop_down": "\uF22C",
|
|
||||||
// "warning": "\uF334",
|
|
||||||
// "info": "\uF26A",
|
|
||||||
// "upload": "\uF296",
|
|
||||||
// "download": "\uF294",
|
|
||||||
// "album": "\uF2FF",
|
|
||||||
|
|
||||||
// "eyedropper": "\uF342",
|
|
||||||
// "drive": "\uF412",
|
|
||||||
|
|
||||||
// "person": "\uF4DA",
|
|
||||||
// "bar": "\uF52B",
|
|
||||||
// "launcher": "\uF843",
|
|
||||||
// "palette": "\uF4B1",
|
|
||||||
// "sunrise": "\uF5A5",
|
|
||||||
// "moon_stars": "\uF496",
|
|
||||||
// "gauge": "\uF580",
|
|
||||||
// "lightning": "\uF46D",
|
|
||||||
|
|
||||||
// // another contrast \uF8F3 \uF8DA
|
|
||||||
// }
|
|
||||||
property var icons: {
|
property var icons: {
|
||||||
"alarm-fill": "\uF101",
|
"alarm-fill": "\uF101",
|
||||||
"alarm": "\uF102",
|
"alarm": "\uF102",
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,8 @@ NPanel {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
spacing: Style.marginM * scaling
|
spacing: Style.marginM * scaling
|
||||||
|
|
||||||
NIcon { icon: "system_update_alt"
|
NIcon {
|
||||||
|
icon: "system_update_alt"
|
||||||
font.pointSize: Style.fontSizeXXL * scaling
|
font.pointSize: Style.fontSizeXXL * scaling
|
||||||
color: Color.mPrimary
|
color: Color.mPrimary
|
||||||
}
|
}
|
||||||
|
|
@ -101,7 +102,8 @@ NPanel {
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
} // Spacer
|
} // Spacer
|
||||||
|
|
||||||
NIcon { icon: "hourglass_empty"
|
NIcon {
|
||||||
|
icon: "hourglass_empty"
|
||||||
font.pointSize: Style.fontSizeXXXL * scaling
|
font.pointSize: Style.fontSizeXXXL * scaling
|
||||||
color: Color.mPrimary
|
color: Color.mPrimary
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
|
@ -217,7 +219,7 @@ NPanel {
|
||||||
spacing: Style.marginM * scaling
|
spacing: Style.marginM * scaling
|
||||||
|
|
||||||
NIcon {
|
NIcon {
|
||||||
icon: "error"
|
icon: "exclamation"
|
||||||
font.pointSize: Style.fontSizeXXXL * scaling
|
font.pointSize: Style.fontSizeXXXL * scaling
|
||||||
color: Color.mError
|
color: Color.mError
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
|
@ -268,7 +270,7 @@ NPanel {
|
||||||
spacing: Style.marginM * scaling
|
spacing: Style.marginM * scaling
|
||||||
|
|
||||||
NIcon {
|
NIcon {
|
||||||
icon: "error_outline"
|
icon: "exclamation"
|
||||||
font.pointSize: Style.fontSizeXXXL * scaling
|
font.pointSize: Style.fontSizeXXXL * scaling
|
||||||
color: Color.mError
|
color: Color.mError
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
|
@ -321,7 +323,7 @@ NPanel {
|
||||||
spacing: Style.marginM * scaling
|
spacing: Style.marginM * scaling
|
||||||
|
|
||||||
NIcon {
|
NIcon {
|
||||||
icon: "check_circle"
|
icon: "check-lg"
|
||||||
font.pointSize: Style.fontSizeXXXL * scaling
|
font.pointSize: Style.fontSizeXXXL * scaling
|
||||||
color: Color.mPrimary
|
color: Color.mPrimary
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
|
@ -493,7 +495,7 @@ NPanel {
|
||||||
}
|
}
|
||||||
|
|
||||||
NIconButton {
|
NIconButton {
|
||||||
icon: "system_update_alt"
|
icon: "box-fill"
|
||||||
tooltipText: "Update all packages"
|
tooltipText: "Update all packages"
|
||||||
enabled: ArchUpdaterService.totalUpdates > 0
|
enabled: ArchUpdaterService.totalUpdates > 0
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
|
@ -506,7 +508,7 @@ NPanel {
|
||||||
}
|
}
|
||||||
|
|
||||||
NIconButton {
|
NIconButton {
|
||||||
icon: "check_box"
|
icon: "box"
|
||||||
tooltipText: "Update selected packages"
|
tooltipText: "Update selected packages"
|
||||||
enabled: ArchUpdaterService.selectedPackagesCount > 0
|
enabled: ArchUpdaterService.selectedPackagesCount > 0
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
|
|
||||||
|
|
@ -29,15 +29,15 @@ NIconButton {
|
||||||
return "terminal"
|
return "terminal"
|
||||||
}
|
}
|
||||||
if (!ArchUpdaterService.aurHelperAvailable) {
|
if (!ArchUpdaterService.aurHelperAvailable) {
|
||||||
return "package"
|
return "box"
|
||||||
}
|
}
|
||||||
if (ArchUpdaterService.aurBusy) {
|
if (ArchUpdaterService.aurBusy) {
|
||||||
return "sync"
|
return "arrow-repeat"
|
||||||
}
|
}
|
||||||
if (ArchUpdaterService.totalUpdates > 0) {
|
if (ArchUpdaterService.totalUpdates > 0) {
|
||||||
return "system_update_alt"
|
return "box-fill"
|
||||||
}
|
}
|
||||||
return "task_alt"
|
return "box"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tooltip with repo vs AUR breakdown and sample lists
|
// Tooltip with repo vs AUR breakdown and sample lists
|
||||||
|
|
|
||||||
|
|
@ -9,12 +9,12 @@ NIconButton {
|
||||||
property ShellScreen screen
|
property ShellScreen screen
|
||||||
property real scaling: 1.0
|
property real scaling: 1.0
|
||||||
|
|
||||||
icon: "contrast"
|
icon: "transparency"
|
||||||
tooltipText: "Toggle light/dark mode"
|
tooltipText: "Toggle light/dark mode"
|
||||||
sizeRatio: 0.8
|
sizeRatio: 0.8
|
||||||
|
|
||||||
colorBg: Color.mSurfaceVariant
|
colorBg: Settings.data.colorSchemes.darkMode ? Color.mSurfaceVariant : Color.mPrimary
|
||||||
colorFg: Color.mOnSurface
|
colorFg: Settings.data.colorSchemes.darkMode ? Color.mOnSurface : Color.mOnPrimary
|
||||||
colorBorder: Color.transparent
|
colorBorder: Color.transparent
|
||||||
colorBorderHover: Color.transparent
|
colorBorderHover: Color.transparent
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,10 +13,10 @@ NIconButton {
|
||||||
|
|
||||||
sizeRatio: 0.8
|
sizeRatio: 0.8
|
||||||
|
|
||||||
icon: "coffee"
|
icon: "cup"
|
||||||
tooltipText: IdleInhibitorService.isInhibited ? "Disable keep awake" : "Enable keep awake"
|
tooltipText: IdleInhibitorService.isInhibited ? "Disable keep awake" : "Enable keep awake"
|
||||||
colorBg: Color.mSurfaceVariant
|
colorBg: IdleInhibitorService.isInhibited ? Color.mPrimary : Color.mSurfaceVariant
|
||||||
colorFg: IdleInhibitorService.isInhibited ? Color.mPrimary : Color.mOnSurface
|
colorFg: IdleInhibitorService.isInhibited ? Color.mOnPrimary : Color.mOnSurface
|
||||||
colorBorder: Color.transparent
|
colorBorder: Color.transparent
|
||||||
onClicked: {
|
onClicked: {
|
||||||
IdleInhibitorService.manualToggle()
|
IdleInhibitorService.manualToggle()
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ NIconButton {
|
||||||
|
|
||||||
sizeRatio: 0.8
|
sizeRatio: 0.8
|
||||||
|
|
||||||
icon: "power_settings_new"
|
icon: "power"
|
||||||
tooltipText: "Power Settings"
|
tooltipText: "Power Settings"
|
||||||
colorBg: Color.mSurfaceVariant
|
colorBg: Color.mSurfaceVariant
|
||||||
colorFg: Color.mError
|
colorFg: Color.mError
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ NIconButton {
|
||||||
readonly property bool useDistroLogo: (widgetSettings.useDistroLogo
|
readonly property bool useDistroLogo: (widgetSettings.useDistroLogo
|
||||||
!== undefined) ? widgetSettings.useDistroLogo : widgetMetadata.useDistroLogo
|
!== undefined) ? widgetSettings.useDistroLogo : widgetMetadata.useDistroLogo
|
||||||
|
|
||||||
icon: useDistroLogo ? "" :"layout-sidebar-inset-reverse"
|
icon: useDistroLogo ? "" : "layout-sidebar-inset-reverse"
|
||||||
tooltipText: "Open side panel."
|
tooltipText: "Open side panel."
|
||||||
sizeRatio: 0.8
|
sizeRatio: 0.8
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,8 @@ RowLayout {
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
visible: showCpuUsage
|
visible: showCpuUsage
|
||||||
|
|
||||||
NIcon { icon: "speedometer2"
|
NIcon {
|
||||||
|
icon: "speedometer2"
|
||||||
font.pointSize: Style.fontSizeM * scaling
|
font.pointSize: Style.fontSizeM * scaling
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
}
|
}
|
||||||
|
|
@ -87,7 +88,8 @@ RowLayout {
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
visible: showCpuTemp
|
visible: showCpuTemp
|
||||||
|
|
||||||
NIcon { icon: "fire"
|
NIcon {
|
||||||
|
icon: "fire"
|
||||||
font.pointSize: Style.fontSizeM * scaling
|
font.pointSize: Style.fontSizeM * scaling
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
}
|
}
|
||||||
|
|
@ -110,7 +112,8 @@ RowLayout {
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
visible: showMemoryUsage
|
visible: showMemoryUsage
|
||||||
|
|
||||||
NIcon { icon: "memory"
|
NIcon {
|
||||||
|
icon: "memory"
|
||||||
font.pointSize: Style.fontSizeM * scaling
|
font.pointSize: Style.fontSizeM * scaling
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
}
|
}
|
||||||
|
|
@ -133,7 +136,8 @@ RowLayout {
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
visible: showNetworkStats
|
visible: showNetworkStats
|
||||||
|
|
||||||
NIcon { icon: "download"
|
NIcon {
|
||||||
|
icon: "download"
|
||||||
font.pointSize: Style.fontSizeM * scaling
|
font.pointSize: Style.fontSizeM * scaling
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
}
|
}
|
||||||
|
|
@ -156,7 +160,8 @@ RowLayout {
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
visible: showNetworkStats
|
visible: showNetworkStats
|
||||||
|
|
||||||
NIcon { icon: "upload"
|
NIcon {
|
||||||
|
icon: "upload"
|
||||||
font.pointSize: Style.fontSizeM * scaling
|
font.pointSize: Style.fontSizeM * scaling
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -45,9 +45,7 @@ Item {
|
||||||
if (AudioService.muted) {
|
if (AudioService.muted) {
|
||||||
return "volume-mute"
|
return "volume-mute"
|
||||||
}
|
}
|
||||||
return AudioService.volume
|
return AudioService.volume <= Number.EPSILON ? "volume-off" : (AudioService.volume < 0.5 ? "volume-down" : "volume-up")
|
||||||
<= Number.EPSILON ? "volume-off" : (AudioService.volume
|
|
||||||
< 0.5 ? "volume-down" : "volume-up")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Connection used to open the pill when volume changes
|
// Connection used to open the pill when volume changes
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,8 @@ ColumnLayout {
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
|
|
||||||
// One device BT icon
|
// One device BT icon
|
||||||
NIcon { icon: BluetoothService.getDeviceIcon(modelData)
|
NIcon {
|
||||||
|
icon: BluetoothService.getDeviceIcon(modelData)
|
||||||
font.pointSize: Style.fontSizeXXL * scaling
|
font.pointSize: Style.fontSizeXXL * scaling
|
||||||
color: getContentColor(Color.mOnSurface)
|
color: getContentColor(Color.mOnSurface)
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,8 @@ NPanel {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
spacing: Style.marginM * scaling
|
spacing: Style.marginM * scaling
|
||||||
|
|
||||||
NIcon { icon: "bluetooth"
|
NIcon {
|
||||||
|
icon: "bluetooth"
|
||||||
font.pointSize: Style.fontSizeXXL * scaling
|
font.pointSize: Style.fontSizeXXL * scaling
|
||||||
color: Color.mPrimary
|
color: Color.mPrimary
|
||||||
}
|
}
|
||||||
|
|
@ -41,8 +42,7 @@ NPanel {
|
||||||
}
|
}
|
||||||
|
|
||||||
NIconButton {
|
NIconButton {
|
||||||
icon: BluetoothService.adapter
|
icon: BluetoothService.adapter && BluetoothService.adapter.discovering ? "stop" : "arrow-repeat"
|
||||||
&& BluetoothService.adapter.discovering ? "stop" : "arrow-repeat"
|
|
||||||
tooltipText: "Refresh Devices"
|
tooltipText: "Refresh Devices"
|
||||||
sizeRatio: 0.8
|
sizeRatio: 0.8
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,8 @@ NPanel {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
spacing: Style.marginM * scaling
|
spacing: Style.marginM * scaling
|
||||||
|
|
||||||
NIcon { icon: "bell"
|
NIcon {
|
||||||
|
icon: "bell"
|
||||||
font.pointSize: Style.fontSizeXXL * scaling
|
font.pointSize: Style.fontSizeXXL * scaling
|
||||||
color: Color.mPrimary
|
color: Color.mPrimary
|
||||||
}
|
}
|
||||||
|
|
@ -83,7 +84,8 @@ NPanel {
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
}
|
}
|
||||||
|
|
||||||
NIcon { icon: "bell-slash"
|
NIcon {
|
||||||
|
icon: "bell-slash"
|
||||||
font.pointSize: 64 * scaling
|
font.pointSize: 64 * scaling
|
||||||
color: Color.mOnSurfaceVariant
|
color: Color.mOnSurfaceVariant
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ NBox {
|
||||||
}
|
}
|
||||||
|
|
||||||
NIcon {
|
NIcon {
|
||||||
text: "album"
|
icon: "disc"
|
||||||
font.pointSize: Style.fontSizeXXXL * 2.5 * scaling
|
font.pointSize: Style.fontSizeXXXL * 2.5 * scaling
|
||||||
color: Color.mPrimary
|
color: Color.mPrimary
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
|
@ -162,14 +162,14 @@ NBox {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: Style.marginXS * scaling
|
anchors.margins: Style.marginXS * scaling
|
||||||
imagePath: MediaService.trackArtUrl
|
imagePath: MediaService.trackArtUrl
|
||||||
fallbackIcon: "album"
|
fallbackIcon: "disc"
|
||||||
borderColor: Color.mOutline
|
borderColor: Color.mOutline
|
||||||
borderWidth: Math.max(1, Style.borderS * scaling)
|
borderWidth: Math.max(1, Style.borderS * scaling)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fallback icon when no album art available
|
// Fallback icon when no album art available
|
||||||
NIcon {
|
NIcon {
|
||||||
icon: "album"
|
icon: "disc"
|
||||||
color: Color.mPrimary
|
color: Color.mPrimary
|
||||||
font.pointSize: Style.fontSizeL * 12 * scaling
|
font.pointSize: Style.fontSizeL * 12 * scaling
|
||||||
visible: !trackArt.visible
|
visible: !trackArt.visible
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ NBox {
|
||||||
|
|
||||||
// Idle Inhibitor
|
// Idle Inhibitor
|
||||||
NIconButton {
|
NIconButton {
|
||||||
icon: "cup-hot"
|
icon: "cup"
|
||||||
tooltipText: IdleInhibitorService.isInhibited ? "Disable keep awake." : "Enable keep awake."
|
tooltipText: IdleInhibitorService.isInhibited ? "Disable keep awake." : "Enable keep awake."
|
||||||
colorBg: IdleInhibitorService.isInhibited ? Color.mPrimary : Color.mSurfaceVariant
|
colorBg: IdleInhibitorService.isInhibited ? Color.mPrimary : Color.mSurfaceVariant
|
||||||
colorFg: IdleInhibitorService.isInhibited ? Color.mOnPrimary : Color.mPrimary
|
colorFg: IdleInhibitorService.isInhibited ? Color.mOnPrimary : Color.mPrimary
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ NBox {
|
||||||
RowLayout {
|
RowLayout {
|
||||||
spacing: Style.marginS * scaling
|
spacing: Style.marginS * scaling
|
||||||
NIcon {
|
NIcon {
|
||||||
text: weatherReady ? LocationService.weatherSymbolFromCode(
|
icon: weatherReady ? LocationService.weatherSymbolFromCode(
|
||||||
LocationService.data.weather.current_weather.weathercode) : ""
|
LocationService.data.weather.current_weather.weathercode) : ""
|
||||||
font.pointSize: Style.fontSizeXXXL * 1.75 * scaling
|
font.pointSize: Style.fontSizeXXXL * 1.75 * scaling
|
||||||
color: Color.mPrimary
|
color: Color.mPrimary
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,8 @@ NPanel {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
spacing: Style.marginM * scaling
|
spacing: Style.marginM * scaling
|
||||||
|
|
||||||
NIcon { icon: Settings.data.network.wifiEnabled ? "wifi" : "wifi-off"
|
NIcon {
|
||||||
|
icon: Settings.data.network.wifiEnabled ? "wifi" : "wifi-off"
|
||||||
font.pointSize: Style.fontSizeXXL * scaling
|
font.pointSize: Style.fontSizeXXL * scaling
|
||||||
color: Settings.data.network.wifiEnabled ? Color.mPrimary : Color.mOnSurfaceVariant
|
color: Settings.data.network.wifiEnabled ? Color.mPrimary : Color.mOnSurfaceVariant
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ Rectangle {
|
||||||
// Fallback icon
|
// Fallback icon
|
||||||
NIcon {
|
NIcon {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: fallbackIcon
|
icon: fallbackIcon
|
||||||
font.pointSize: fallbackIconSize
|
font.pointSize: fallbackIconSize
|
||||||
visible: fallbackIcon !== undefined && fallbackIcon !== "" && (imagePath === undefined || imagePath === "")
|
visible: fallbackIcon !== undefined && fallbackIcon !== "" && (imagePath === undefined || imagePath === "")
|
||||||
z: 0
|
z: 0
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ Rectangle {
|
||||||
// Fallback icon
|
// Fallback icon
|
||||||
NIcon {
|
NIcon {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: fallbackIcon
|
icon: fallbackIcon
|
||||||
font.pointSize: fallbackIconSize
|
font.pointSize: fallbackIconSize
|
||||||
visible: fallbackIcon !== undefined && fallbackIcon !== "" && (imagePath === undefined || imagePath === "")
|
visible: fallbackIcon !== undefined && fallbackIcon !== "" && (imagePath === undefined || imagePath === "")
|
||||||
z: 0
|
z: 0
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,7 @@ Item {
|
||||||
// Icon
|
// Icon
|
||||||
NIcon {
|
NIcon {
|
||||||
id: icon
|
id: icon
|
||||||
text: (root.type == "warning") ? "warning" : "info"
|
icon: (root.type == "warning") ? "exclamation-triangle" : "check-circle"
|
||||||
color: {
|
color: {
|
||||||
switch (root.type) {
|
switch (root.type) {
|
||||||
case "warning":
|
case "warning":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue