Dropdown popup background is mostly transparent, so the options behind it show through
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 82/100
Línea de trabajo
Comienza en DropdownWidget#extractRenderState, donde el popup utiliza Screen.MENU_BACKGROUND, y reproduce el problema con un DropdownStringControllerBuilder que se abre hacia arriba sobre otras opciones. Comprueba cómo se rellena el fondo y verifica que el dropdown se vuelva opaco y cubra por completo las opciones que quedan detrás.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
When a dropdown (DropdownStringControllerBuilder) opens, its list is drawn over the options above it, but its background is mostly see-through. The text, checkboxes and outlines of those options show through the list, which makes the suggestions hard to read.
Environment
- Minecraft: 26.2
- YACL: 3.9.7+26.2-fabric
- Fabric Loader: 0.19.5
Steps to reproduce
- Put a
ListOption<String>usingDropdownStringControllerBuilderbelow a few other options in a category (the list opens upwards, over them). For example:ListOption.<String>createBuilder() .name(Component.literal("Blocks")) .binding(List.of(), () -> list, v -> list = v) .controller(opt -> DropdownStringControllerBuilder.create(opt) .values(BuiltInRegistries.BLOCK.keySet().stream().map(Object::toString).toList()) .allowAnyValue(true)) .initial("minecraft:") .build() - Open the config screen and click into one of the list's entries so the dropdown opens.
Expected
The dropdown list has an opaque background and covers the options behind it.
Actual
The options behind the list are visible through it, and their text overlaps the
Possible cause
DropdownWidget#extractRenderState fills the background with `Screen.MENU_BACK
graphics.blit(RenderPipelines.GUI_TEXTURED, Screen.MENU_BACKGROUND, x, y1, 0.0f
textureWidth, textureHeight, 32, 32, 0xFF3F3F3F);
Vanilla's textures/gui/menu_background.png has an alpha of 64/255 in every pint jar), and the tint only darkens the color, so the popup ends up about 25%opaque. Drawing an opaque fill first (e.g. graphics.fill(..., 0xFF000000)), ould probably fix it.
Related: the last line of #276 asks for a less transparent background for the same reason.
- Lenguaje dominante
- Java
- Estrellas
- 161
- Forks
- 70
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de isXander/YetAnotherConfigLib
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
isXander/YetAnotherConfigLib#376 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
isXander/YetAnotherConfigLib#361 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
isXander/YetAnotherConfigLib#332 ·
-
Custom ⟲ glyph affects other GUIsPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
isXander/YetAnotherConfigLib#373 · 2 comentarios ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
isXander/YetAnotherConfigLib#372 · 1 comentario ·
Todos los issues de isXander/YetAnotherConfigLib
Issues similares
-
area-integrations
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
? - Needs Triage bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
NVIDIA/cudf-spark-jni#5598 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
oracle/graalvm-reachability-metadata#12264 ·
Los mantenedores suelen responder en 1 día
-
[source-facebook-pages] post stream never returns attachments.media_typePosiblemente ocupada @v-k-data la tomó hoy. Abiertoarea/connectors needs-triage type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día
-
[BUG] AppSync: GetIntrospectionSchema wraps the schema in JSON instead of returning the raw SDL bodyAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
floci-io/floci#10107 · 1 comentario ·
Los mantenedores suelen responder en 1 día