InfiniTimeOrg / InfiniTime

Firmware for Pinetime smartwatch written in C++ and based on FreeRTOS
GNU General Public License v3.0
2.63k stars 901 forks source link

Linear color gradient for weather readout text #2061

Open CCF100 opened 1 month ago

CCF100 commented 1 month ago

Hello! This is my first ever PR!

I implemented some Linear Gradient calculation code for coloring temperature readout text. Here are some examples of it being used in the Weather App: image image image image

I also moved some code from the Weather App (namely the function RoundTemperature()) to my WeatherHelper.cpp since it didn't make sense (at least to me) to be in there now that I created this new class...

If you have any suggestions, feel free to mention them.

github-actions[bot] commented 1 month ago

Build checks have not completed. Possible reasons for this are:

  1. The checks need to be approved by a maintainer
  2. The branch has conflicts
  3. The firmware build has failed