Skip to content

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.
@orblazer
Copy link
Owner

orblazer commented Apr 7, 2025

Hello, sorry for the long pause on that project, i havent take time check the issues.

I'm not a big fan of that render but i see the point of it, i will check to implement that after implementing #91.

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