#124 assira.ui: stylesheets for components

Terbuka
dibuka 1 tahun lalu oleh ranides · 0 komentar

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]
Masuk untuk bergabung dalam percakapan ini.
Tidak ada tonggak
Tidak ada penerima
1 Peserta
Memuat...
Batal
Simpan
Belum ada konten.