mathoudebine / mathoudebine/turing-smart-screen-python

Stat Value Adaptive Text Color

Open
#399 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rich Text Format
Stars
2.3k
Forks
412
Avg merge
21h 10m
Merged PRs (30d)
7

Description

Is your feature request related to a problem? If so, please describe the problem.
Text color is static: it cannot express additional information about displayed values.

Describe the feature / solution to your problem you'd like
Consider a theme which displays CPU temperature in white. The temperature is always that color, whether the CPU is idle or has been at 100% load for an hour and presumably quite hot.

With this feature, the CPU temperature display could change color as the value changes:

  • White: Above 0C
  • Yellow: Above 35C
  • Orange: Above 60C
  • Red: Above 75C

Color changes can be a more effective warning than the value itself.

The same could be applied most values. For simplicity, stages would progress from lowest to highest threshold, presumably starting from 0 or the lowest logical value. Whether the colors progress in terms of alarm depends on context and design theme preference.

Describe alternatives you've considered / and or tested
None.

Screenshots / photos & mockups of the Turing screen
N/A.

Environment:

  • Revision of this project: Release 3.3.4
  • OS with version: Kubuntu 22.04
  • Python version: 3.10.12
  • Hardware: Simulator (AMD FX-8350)

Additional context
A new optional ADAPTIVE_FONT_COLOR line in text options would, when present, override the FONT_COLOR value. It would require between two and five stages. Each stage's syntax could be like:

[value], [red], [green], [blue];

Thus the scenario described above would be defined by:

STATS:
  CPU:
    TEMPERATURE:
      TEXT:
        ADAPTIVE_FONT_COLOR: 0, 255, 255, 255; 35, 255, 255, 0; 60, 255, 153, 0; 75, 255, 0, 0;

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named in the issue. Start by locating the text options and existing FONT_COLOR handling, then clarify how the proposed two-to-five threshold stages and RGB values should behave; done means the CPU-temperature example supports adaptive colors while retaining the static-color fallback.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
design, desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.