#124 assira.ui: stylesheets for components

Aberto
1 ano atrás foi aberto por ranides · 0 comentários
ranides comentado 1 ano atrás

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]
Faça login para participar desta conversação.
Sem milestone
Não atribuída
1 participantes
Carregando...
Cancelar
Salvar
Ainda não há conteúdo.