#124 assira.ui: stylesheets for components

開啟中
ranides1 年之前創建 · 0 條評論

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]
登入 才能加入這對話。
未選擇里程碑
未指派成員
1 參與者
正在加載...
取消
保存
尚未有任何內容