Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Battery indicator level tweaks

Abierto
#2,306 1 comentario 1 reacción 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
42/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
cpp
Área
embedded-iot

Línea de trabajo

Comienza rastreando el indicador de batería utilizado en la pantalla principal del reloj y en el menú del lado izquierdo, incluidos sus umbrales de nivel de batería y el manejo de colores. Comprueba si las colores personalizadas de la watch-face y el estado rojo existente de batería baja están cubiertos por pruebas. Se considera terminado cuando el relleno se redondea según lo solicitado y la batería baja utiliza un tratamiento naranja o rojo visible sin romper los colores personalizados de la watch-face.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

UI/UX
Verification
  • I searched for similar issues (including closed issues) and found none was relevant.
Introduce the issue

I'm primarily using the PineTimeStyle, but I suspect it doesn't matter.

  1. Charge battery to 99%, and the battery level indicator on the main clock display shows one pixel height already drained. In my mind, it's so close to 100%, that it should still appear as a full battery indicator.
  2. At low battery, I can't remember if it is 10% or 15%, but swipe to the menu on the left, and you see the battery indicator in orange, so it is understood it is a low battery. But on the main clock display, it always shows the indicator as white, and is hard to see how low the indicator is for anything below about 20-25%.
Preferred solution
  1. Round to the nearest, instead of rounding down. If there are 10 pixels height in the battery, it should be: 95-100%: full 10 pixels, 85-94%: 9 pixels, 75-84%: 8 pixels, ... 5-14%: 1 pixel, 0-4%: 0 pixels. Or similar - don't mind if it is 0-5%, 6-15%, etc.
  2. I suggest putting the same orange battery indicator on the main clock display when the battery is below 15% (or 10% or whatever the threshold is). It currently turns red for 5% (?) and below, so I like that.

One consideration is that the watch face allows a custom colour for each component, and in fact, I do currently have PineTimeStyle with all orange colour highlights. So orange on orange would be invisible. The battery icon on the main watch fact currently has a black outline. Perhaps the battery icon could have a black outer border and a white inner outline, which changes to orange/red outline at low battery??

Version

1.15.0

Lenguaje dominante
C
Estrellas
3.4k
Forks
1.1k
Merge medio
23 h 18 min
PR fusionados (30 d)
1

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de InfiniTimeOrg/InfiniTime

Todos los issues de InfiniTimeOrg/InfiniTime

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.