Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add option to show temperature at the top-left corner of the graph #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Starrah
Copy link

@Starrah Starrah commented Oct 31, 2024

I implements showing temperature at the top-left corner of the graph.

image

Implemetation Keypoints:

  1. ConfigAppearance.qml: Adds a config item "Plasmoid.configuration.thirdLineToLeftTopCorner"
  2. GraphText.qml: Adding positioning anchors control codes in GraphText.qml. Please review the code.
  3. CpuTemperature.qml: The temperature used to be shown with one decimal digit, such as "45.6°C". After moving the temperature to the top-left corner, This is not very beautiful as there will be nearly no space between the temperature and the percentage. so in CpuTemperature.qml:getFormattedValue(), precision control is implemented to keep the temperature always integer, such as "45°C".

By adding config item "Plasmoid.configuration.thirdLineToLeftTopCorner" in ConfigAppearance.qml,
and adding positioning anchors control in GraphText.qml.
And after enabling this feature, the temperature with one decimal digit, such as "45.6°C",
is not beautiful,so in CpuTemperature.qml:getFormattedValue(),
precision control is implemented to keep the temperature always integer.
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.

1 participant