Skip to content

Coloured CPU temps#595

Open
simonjones49 wants to merge 3 commits intonoctalia-dev:mainfrom
simonjones49:sys-info-update
Open

Coloured CPU temps#595
simonjones49 wants to merge 3 commits intonoctalia-dev:mainfrom
simonjones49:sys-info-update

Conversation

@simonjones49
Copy link
Copy Markdown
Contributor

Added green, yellow and red for CPU temps

NText {
text: root.cpuUsage + " @ " + root.cpuTemp
text: root.cpuUsage + " @ <font color='" + root.getTempHex(root.cpuTemp) + "'>" + root.cpuTemp + "</font>"
textFormat: Text.RichText
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of creating it like this, would it be possible to use the color that the NText component already has instead of doing it this way?

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2026

Automatic Code Quality Review


File: sys-info-widget/DesktopWidget.qml

  • (H) Line 216: Do not use hardcoded values, always prefer to use the Style singleton instead
+                    spacing: 4
  • (H) Line 228: Use translations instead of hardcoded text. Instead of: "Example Label". To: pluginApi?.tr("panel.example-label")
+                        text: "@"

Copy link
Copy Markdown
Contributor

@spiros132 spiros132 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you! :D

@ItsLemmy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants