forked from Shinonome/dots-hyprland
bar: make icon for cpu more readable
This commit is contained in:
@@ -51,6 +51,7 @@ Item {
|
|||||||
|
|
||||||
MaterialSymbol {
|
MaterialSymbol {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
font.weight: Font.DemiBold
|
||||||
fill: 1
|
fill: 1
|
||||||
text: iconName
|
text: iconName
|
||||||
iconSize: Appearance.font.pixelSize.normal
|
iconSize: Appearance.font.pixelSize.normal
|
||||||
|
|||||||
@@ -53,14 +53,14 @@ Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Resource {
|
Resource {
|
||||||
iconName: "settings_slow_motion"
|
iconName: "planner_review"
|
||||||
percentage: ResourceUsage.cpuUsage
|
percentage: ResourceUsage.cpuUsage
|
||||||
shown: Config.options.bar.resources.alwaysShowCpu ||
|
shown: Config.options.bar.resources.alwaysShowCpu ||
|
||||||
!(MprisController.activePlayer?.trackTitle?.length > 0) ||
|
!(MprisController.activePlayer?.trackTitle?.length > 0) ||
|
||||||
root.alwaysShowAllResources
|
root.alwaysShowAllResources
|
||||||
Layout.leftMargin: shown ? 6 : 0
|
Layout.leftMargin: shown ? 6 : 0
|
||||||
|
|
||||||
tooltipHeaderIcon: "settings_slow_motion"
|
tooltipHeaderIcon: "planner_review"
|
||||||
tooltipHeaderText: Translation.tr("CPU usage")
|
tooltipHeaderText: Translation.tr("CPU usage")
|
||||||
tooltipData: [
|
tooltipData: [
|
||||||
{ icon: "bolt", label: Translation.tr("Load:"), value: (ResourceUsage.cpuUsage > 0.8 ?
|
{ icon: "bolt", label: Translation.tr("Load:"), value: (ResourceUsage.cpuUsage > 0.8 ?
|
||||||
|
|||||||
Reference in New Issue
Block a user