`wf-locker`: invalid GTK CSS color `#0000` causes background configuration to be ignored
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 72/100
Línea de trabajo
Comienza reproduciendo la advertencia con WF_LOCKER_DEBUG=1 wf-locker --now; después, localiza la generación de CSS de wf-locker alrededor de CssFromConfigString y la animación slowfade. Revisa wf-shell.ini.example junto con los metadatos de configuración de locker/background_color. Se considerará completado cuando GTK acepte el color transparente generado, aparezca el color configurado y el ejemplo use el nombre real de la opción.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
wf-locker in wf-shell 0.11 appears to generate invalid GTK CSS for its fade-in animation:
@keyframes slowfade {
from { opacity: 0; background: #0000; }
to { opacity: 1; }
}
GTK rejects #0000 with:
Gtk-WARNING **: Theme parser error: <data>:1:30-31: Expected a valid color.
As a result, the locker background configured with background_color does not appear to be applied. The lock screen remains transparent/whitish regardless of the configured value.
Reproduction
With wf-locker running in debug mode:
WF_LOCKER_DEBUG=1 wf-locker --now
Configure:
[locker]
background_image = false
background_color = #ff0000
The result is still a white/whitish or transparent background rather than red.
The locker emits:
Gtk-WARNING **: Theme parser error: <data>:1:30-31: Expected a valid color.
and the generated CSS contains:
.fade-in {animation-name: slowfade;animation-duration: 3.000000s; animation-timing-function: linear; animation-iteration-count: 1; animation-fill-mode: forwards;}
@keyframes slowfade {
from {opacity:0; background: #0000;}
to {opacity:1;}
}
Additional observation
The configuration option in the implementation/metadata is named:
locker/background_color
and the source uses:
new CssFromConfigString(
"locker/background_color",
".wf-locker {background-color:",
";}"
);
However, the shipped wf-shell.ini.example documents the option as:
background-color = #0000
rather than:
background_color = ...
So there also appears to be a typo in the example configuration.
Expected behavior
A valid background_color should be applied to the locker, e.g.:
background_color = #ff0000
should produce an opaque red background.
The fade-in animation should also use a GTK-compatible representation of transparent black, such as:
background: rgba(0, 0, 0, 0);
or another color syntax accepted by GTK CSS.
Environment
- Fedora 44
- Wayfire 0.11
- wf-shell 0.11
- GTK4
- Reproduced with
WF_LOCKER_DEBUG=1
- Lenguaje dominante
- C++
- Estrellas
- 179
- Forks
- 56
- Merge medio
- 6 d 34 min
- PR fusionados (30 d)
- 3
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 WayfireWM/wf-shell
-
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
WayfireWM/wf-shell#571 · 5 comentarios ·
Los mantenedores suelen responder en 2 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Los mantenedores suelen responder en 2 días
-
Include subprojects (like open-weather-fetch) in release tarballs for offline distribution buildsAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
Los mantenedores suelen responder en 2 días
-
panel : slow startup with ddcutilPosiblemente ocupada @ayush213 la tomó hace 38 días. Abiertogood first issue panel
Dificultad 3/5 1-2 días Aptitud para principiantes 62/100
Los mantenedores suelen responder en 2 días
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
WayfireWM/wf-shell#557 · 3 comentarios ·
Los mantenedores suelen responder en 2 días
Todos los issues de WayfireWM/wf-shell
Issues similares
-
llvm.memcpy with destination align but no source align asserts "Missed Source alignment!"Posiblemente ocupada @pvelesko la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
KhronosGroup/SPIRV-LLVM-Translator#4093 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
SIMQ silently truncates multi-query batch search to the first queryPosiblemente ocupada @LHT129 la tomó hoy. Abiertokind/bug module/index needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
antgroup/vsag#3080 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 Medio día Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
KhronosGroup/glslang#4469 ·
Los mantenedores suelen responder en 1 día