#124 assira.ui: stylesheets for components

Abierta
abierta hace 1 año por ranides · 0 comentarios

We want to implements something like CSS for our swing application.

Currently we can select element by path and assign property for it. We can move this assignments into json property file too. But there is no reasonable way for massive update, because swing doesn't implement notion of attribute inheritance.

At least we should give access to UIManager.

https://stackoverflow.com/questions/12730230/set-the-same-font-for-all-component-java

https://coderanch.com/t/337238/java/change-font-application

What would be really great would be implementation of:

  • real attribute inheritance
  • more sophisticated selectors
    • find by component type: container-name container-name JButton
    • find all direct children: container-name *
    • find all descendants: container-name **
    • find by attribute value: container-name [attribute=value]
We want to implements something like CSS for our swing application. Currently we can select element by path and assign property for it. We can move this assignments into json property file too. But there is no reasonable way for massive update, because swing doesn't implement notion of attribute inheritance. At least we should give access to UIManager. https://stackoverflow.com/questions/12730230/set-the-same-font-for-all-component-java https://coderanch.com/t/337238/java/change-font-application What would be really great would be implementation of: - real attribute inheritance - more sophisticated selectors - find by component type: container-name container-name JButton - find all direct children: container-name * - find all descendants: container-name ** - find by attribute value: container-name [attribute=value]
Inicie sesión para unirse a esta conversación.
Sin Milestone
Sin asignado
1 participantes
Cargando...
Cancelar
Guardar
Aún no existe contenido.