Default skull icon
This commit is contained in:
parent
6f4a4bb764
commit
6169f88d90
9 changed files with 42 additions and 31 deletions
|
|
@ -9,7 +9,7 @@ NIconButton {
|
||||||
property ShellScreen screen
|
property ShellScreen screen
|
||||||
property real scaling: 1.0
|
property real scaling: 1.0
|
||||||
|
|
||||||
icon: "contrast"
|
icon: FontService.icons["contrast"]
|
||||||
tooltipText: "Toggle light/dark mode"
|
tooltipText: "Toggle light/dark mode"
|
||||||
sizeRatio: 0.8
|
sizeRatio: 0.8
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ NIconButton {
|
||||||
|
|
||||||
sizeRatio: 0.8
|
sizeRatio: 0.8
|
||||||
|
|
||||||
icon: "coffee"
|
icon: FontService.icons["coffee"]
|
||||||
tooltipText: IdleInhibitorService.isInhibited ? "Disable keep awake" : "Enable keep awake"
|
tooltipText: IdleInhibitorService.isInhibited ? "Disable keep awake" : "Enable keep awake"
|
||||||
colorBg: Color.mSurfaceVariant
|
colorBg: Color.mSurfaceVariant
|
||||||
colorFg: IdleInhibitorService.isInhibited ? Color.mPrimary : Color.mOnSurface
|
colorFg: IdleInhibitorService.isInhibited ? Color.mPrimary : Color.mOnSurface
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ RowLayout {
|
||||||
|
|
||||||
NIcon {
|
NIcon {
|
||||||
id: cpuUsageIcon
|
id: cpuUsageIcon
|
||||||
text: "speed"
|
text: FontService.icons["speed"]
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -91,7 +91,7 @@ RowLayout {
|
||||||
visible: showCpuTemp
|
visible: showCpuTemp
|
||||||
|
|
||||||
NIcon {
|
NIcon {
|
||||||
text: "thermometer"
|
text: FontService.icons["thermometer"]
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -114,7 +114,7 @@ RowLayout {
|
||||||
visible: showMemoryUsage
|
visible: showMemoryUsage
|
||||||
|
|
||||||
NIcon {
|
NIcon {
|
||||||
text: "memory"
|
text: FontService.icons["memory"]
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -137,7 +137,7 @@ RowLayout {
|
||||||
visible: showNetworkStats
|
visible: showNetworkStats
|
||||||
|
|
||||||
NIcon {
|
NIcon {
|
||||||
text: "download"
|
text: FontService.icons["download"]
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -160,7 +160,7 @@ RowLayout {
|
||||||
visible: showNetworkStats
|
visible: showNetworkStats
|
||||||
|
|
||||||
NIcon {
|
NIcon {
|
||||||
text: "upload"
|
text: FontService.icons["upload"]
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,9 +43,11 @@ Item {
|
||||||
|
|
||||||
function getIcon() {
|
function getIcon() {
|
||||||
if (AudioService.muted) {
|
if (AudioService.muted) {
|
||||||
return FontService.icons["volume_off"] // TODO disabled icon ?
|
return FontService.icons["volume_off"] // TODO disabled icon ?
|
||||||
}
|
}
|
||||||
return AudioService.volume <= Number.EPSILON ? FontService.icons["volume_off"] : (AudioService.volume < 0.5 ? FontService.icons["volume_half"]: FontService.icons["volume_full"])
|
return AudioService.volume
|
||||||
|
<= Number.EPSILON ? FontService.icons["volume_off"] : (AudioService.volume
|
||||||
|
< 0.5 ? FontService.icons["volume_half"] : FontService.icons["volume_full"])
|
||||||
}
|
}
|
||||||
|
|
||||||
// Connection used to open the pill when volume changes
|
// Connection used to open the pill when volume changes
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ NIconButton {
|
||||||
icon: {
|
icon: {
|
||||||
try {
|
try {
|
||||||
if (NetworkService.ethernetConnected) {
|
if (NetworkService.ethernetConnected) {
|
||||||
return "lan"
|
return FontService.icons["ethernet"]
|
||||||
}
|
}
|
||||||
let connected = false
|
let connected = false
|
||||||
let signalStrength = 0
|
let signalStrength = 0
|
||||||
|
|
|
||||||
|
|
@ -123,52 +123,52 @@ NPanel {
|
||||||
let newTabs = [{
|
let newTabs = [{
|
||||||
"id": SettingsPanel.Tab.General,
|
"id": SettingsPanel.Tab.General,
|
||||||
"label": "General",
|
"label": "General",
|
||||||
"icon": "tune",
|
"icon": FontService.icons["general"],
|
||||||
"source": generalTab
|
"source": generalTab
|
||||||
}, {
|
}, {
|
||||||
"id": SettingsPanel.Tab.Bar,
|
"id": SettingsPanel.Tab.Bar,
|
||||||
"label": "Bar",
|
"label": "Bar",
|
||||||
"icon": "web_asset",
|
"icon": FontService.icons["bar"],
|
||||||
"source": barTab
|
"source": barTab
|
||||||
}, {
|
}, {
|
||||||
"id": SettingsPanel.Tab.Launcher,
|
"id": SettingsPanel.Tab.Launcher,
|
||||||
"label": "Launcher",
|
"label": "Launcher",
|
||||||
"icon": "apps",
|
"icon": FontService.icons["apps"],
|
||||||
"source": launcherTab
|
"source": launcherTab
|
||||||
}, {
|
}, {
|
||||||
"id": SettingsPanel.Tab.Audio,
|
"id": SettingsPanel.Tab.Audio,
|
||||||
"label": "Audio",
|
"label": "Audio",
|
||||||
"icon": "volume_up",
|
"icon": FontService.icons["volume_full"],
|
||||||
"source": audioTab
|
"source": audioTab
|
||||||
}, {
|
}, {
|
||||||
"id": SettingsPanel.Tab.Display,
|
"id": SettingsPanel.Tab.Display,
|
||||||
"label": "Display",
|
"label": "Display",
|
||||||
"icon": "monitor",
|
"icon": FontService.icons["monitor"],
|
||||||
"source": displayTab
|
"source": displayTab
|
||||||
}, {
|
}, {
|
||||||
"id": SettingsPanel.Tab.Network,
|
"id": SettingsPanel.Tab.Network,
|
||||||
"label": "Network",
|
"label": "Network",
|
||||||
"icon": "lan",
|
"icon": FontService.icons["ethernet"],
|
||||||
"source": networkTab
|
"source": networkTab
|
||||||
}, {
|
}, {
|
||||||
"id": SettingsPanel.Tab.Brightness,
|
"id": SettingsPanel.Tab.Brightness,
|
||||||
"label": "Brightness",
|
"label": "Brightness",
|
||||||
"icon": "brightness_6",
|
"icon": FontService.icons["brightness"],
|
||||||
"source": brightnessTab
|
"source": brightnessTab
|
||||||
}, {
|
}, {
|
||||||
"id": SettingsPanel.Tab.Weather,
|
"id": SettingsPanel.Tab.Weather,
|
||||||
"label": "Weather",
|
"label": "Weather",
|
||||||
"icon": "partly_cloudy_day",
|
"icon": FontService.icons["partly_cloudy"],
|
||||||
"source": weatherTab
|
"source": weatherTab
|
||||||
}, {
|
}, {
|
||||||
"id": SettingsPanel.Tab.ColorScheme,
|
"id": SettingsPanel.Tab.ColorScheme,
|
||||||
"label": "Color Scheme",
|
"label": "Color Scheme",
|
||||||
"icon": "palette",
|
"icon": FontService.icons["palette"],
|
||||||
"source": colorSchemeTab
|
"source": colorSchemeTab
|
||||||
}, {
|
}, {
|
||||||
"id": SettingsPanel.Tab.Wallpaper,
|
"id": SettingsPanel.Tab.Wallpaper,
|
||||||
"label": "Wallpaper",
|
"label": "Wallpaper",
|
||||||
"icon": "image",
|
"icon": FontService.icons["image"],
|
||||||
"source": wallpaperTab
|
"source": wallpaperTab
|
||||||
}]
|
}]
|
||||||
|
|
||||||
|
|
@ -177,7 +177,7 @@ NPanel {
|
||||||
newTabs.push({
|
newTabs.push({
|
||||||
"id": SettingsPanel.Tab.WallpaperSelector,
|
"id": SettingsPanel.Tab.WallpaperSelector,
|
||||||
"label": "Wallpaper Selector",
|
"label": "Wallpaper Selector",
|
||||||
"icon": "wallpaper_slideshow",
|
"icon": FontService.icons["image"],
|
||||||
"source": wallpaperSelectorTab
|
"source": wallpaperSelectorTab
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
@ -185,17 +185,17 @@ NPanel {
|
||||||
newTabs.push({
|
newTabs.push({
|
||||||
"id": SettingsPanel.Tab.ScreenRecorder,
|
"id": SettingsPanel.Tab.ScreenRecorder,
|
||||||
"label": "Screen Recorder",
|
"label": "Screen Recorder",
|
||||||
"icon": "videocam",
|
"icon": FontService.icons["video_camera"],
|
||||||
"source": screenRecorderTab
|
"source": screenRecorderTab
|
||||||
}, {
|
}, {
|
||||||
"id": SettingsPanel.Tab.Hooks,
|
"id": SettingsPanel.Tab.Hooks,
|
||||||
"label": "Hooks",
|
"label": "Hooks",
|
||||||
"icon": "cable",
|
"icon": FontService.icons["cable"],
|
||||||
"source": hooksTab
|
"source": hooksTab
|
||||||
}, {
|
}, {
|
||||||
"id": SettingsPanel.Tab.About,
|
"id": SettingsPanel.Tab.About,
|
||||||
"label": "About",
|
"label": "About",
|
||||||
"icon": "info",
|
"icon": FontService.icons["info"],
|
||||||
"source": aboutTab
|
"source": aboutTab
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ NBox {
|
||||||
|
|
||||||
NCircleStat {
|
NCircleStat {
|
||||||
value: SystemStatService.cpuUsage
|
value: SystemStatService.cpuUsage
|
||||||
icon: "speed"
|
icon: FontService.icons["speed"]
|
||||||
flat: true
|
flat: true
|
||||||
contentScale: 0.8
|
contentScale: 0.8
|
||||||
width: 72 * scaling
|
width: 72 * scaling
|
||||||
|
|
@ -33,7 +33,7 @@ NBox {
|
||||||
NCircleStat {
|
NCircleStat {
|
||||||
value: SystemStatService.cpuTemp
|
value: SystemStatService.cpuTemp
|
||||||
suffix: "°C"
|
suffix: "°C"
|
||||||
icon: "device_thermostat"
|
icon: FontService.icons["thermometer"]
|
||||||
flat: true
|
flat: true
|
||||||
contentScale: 0.8
|
contentScale: 0.8
|
||||||
width: 72 * scaling
|
width: 72 * scaling
|
||||||
|
|
@ -41,7 +41,7 @@ NBox {
|
||||||
}
|
}
|
||||||
NCircleStat {
|
NCircleStat {
|
||||||
value: SystemStatService.memPercent
|
value: SystemStatService.memPercent
|
||||||
icon: "memory"
|
icon: FontService.icons["memory"]
|
||||||
flat: true
|
flat: true
|
||||||
contentScale: 0.8
|
contentScale: 0.8
|
||||||
width: 72 * scaling
|
width: 72 * scaling
|
||||||
|
|
@ -49,7 +49,7 @@ NBox {
|
||||||
}
|
}
|
||||||
NCircleStat {
|
NCircleStat {
|
||||||
value: SystemStatService.diskPercent
|
value: SystemStatService.diskPercent
|
||||||
icon: "hard_drive"
|
icon: FontService.icons["drive"]
|
||||||
flat: true
|
flat: true
|
||||||
contentScale: 0.8
|
contentScale: 0.8
|
||||||
width: 72 * scaling
|
width: 72 * scaling
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ Singleton {
|
||||||
"volume_half": "\uF027",
|
"volume_half": "\uF027",
|
||||||
"volume_full": "\uF028",
|
"volume_full": "\uF028",
|
||||||
"power": "\uf011",
|
"power": "\uf011",
|
||||||
"gear": "\uf013",
|
"gear": "\ue615",
|
||||||
"close": "\uf00D",
|
"close": "\uf00D",
|
||||||
"check": "\uf00C",
|
"check": "\uf00C",
|
||||||
"panel": "\uF28C",
|
"panel": "\uF28C",
|
||||||
|
|
@ -39,6 +39,14 @@ Singleton {
|
||||||
"image": "\uF03E",
|
"image": "\uF03E",
|
||||||
"refresh": "\uF021",
|
"refresh": "\uF021",
|
||||||
"video_camera": "\uF03D",
|
"video_camera": "\uF03D",
|
||||||
|
"ethernet": "\uEF09",
|
||||||
|
"speed": "\uEEB2",
|
||||||
|
"leaf": "\uEE34",
|
||||||
|
"microphone": "\uED03",
|
||||||
|
"coffee": "\uef59",
|
||||||
|
"thermometer": "\uE350",
|
||||||
|
"contrast": "\uF042",
|
||||||
|
"skull": "\uEE15"
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------
|
// -------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,13 @@
|
||||||
import QtQuick
|
import QtQuick
|
||||||
|
import QtQuick.Layouts
|
||||||
import qs.Commons
|
import qs.Commons
|
||||||
import qs.Widgets
|
import qs.Widgets
|
||||||
import QtQuick.Layouts
|
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
// Optional layout nudge for optical alignment when used inside Layouts
|
// Optional layout nudge for optical alignment when used inside Layouts
|
||||||
property real layoutTopMargin: 0
|
property real layoutTopMargin: 0
|
||||||
text: "question_mark"
|
text: "\uEE15" // default skull icon
|
||||||
font.family: "bootstrap-icons"
|
font.family: "bootstrap-icons"
|
||||||
font.pointSize: Style.fontSizeL * scaling
|
font.pointSize: Style.fontSizeL * scaling
|
||||||
font.variableAxes: {
|
font.variableAxes: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue