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

StyledText: ability to draw onto background, but under foreground (text)

Abierto
#3,313 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
28/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
java
Área
desktop

Línea de trabajo

The request is for a new paint-time hook on StyledText after background and before text. Start from how StyledText currently paints (the widget named in the issue) and how existing draw events are fired. Decide an API for the hook, then confirm lines drawn in that phase sit under glyphs without clipping descenders. There is no named test or file in the issue; expect SWT custom-widget internals and a design discussion before any patch.

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

Descripción

Is your feature request related to a problem? Please describe.
We want to draw horizontal lines to separate blocks of text and vertical lines to indicate positions without drawing partly over the text. Screenshot of current solution with drawing the lines after the text which hides lower parts of the g (used font: "CommitMono").

Image

Describe the solution you'd like
I imagine some event hook for StyledText that is invoked after drawing the background and before drawing the text.

Describe alternatives you've considered
Currently, we draw these lines after the text, hiding parts of the text. Hence this is no good alternative.

Lenguaje dominante
Java
Estrellas
202
Forks
206
Merge medio
16 h 56 min
PR fusionados (30 d)
110

Preparar el entorno

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 eclipse-platform/eclipse.platform.swt

Todos los issues de eclipse-platform/eclipse.platform.swt

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.