Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Dark Theme

WP v.2Feb 19 2019 — edited Feb 21 2019

What's the best way to implement a dark theme that can be toggled in an ADF application?

I tried using the theme property on the af:document and css in the following way:

<af:document theme="dark">

  <af:panelTabbed>...</af:panelTabbed>

</af:document>

af|panelTabbed[theme="dark"] {

  color: red;

}

However, the css is not applied. In fact, when inspecting the page in the browser, I can't find any element with the theme attribute. Any reason why the theme property seems to be ignored? Perhaps there's a better way?

I'm using 12.2.1.2

Thanks,

Bill

This post has been answered by Timo Hahn on Feb 21 2019
Jump to Answer
Comments
Post Details
Added on Feb 19 2019
6 comments
552 views