#124 assira.ui: stylesheets for components

باز‌کردن
1 سال پیش باز شده توسط ranides · 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 مشارکت کننده
درحال بارگذاری...
لغو
ذخيره
هنوز محتوایی ایجاد نشده.