Skip to Main Content

DevOps, CI/CD and Automation

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Dark-theme

Sunil0710Jul 24 2018 — edited Jul 26 2018

Hello everyone,

is there any document or blog to create a dark-mode theme enable/disable using JET4.2.0 ?

This post has been answered by John JB Brock-Oracle on Jul 26 2018
Jump to Answer

Comments

John JB Brock-Oracle

Have you looked at the Theme Builder on the JET website?

http://www.oracle.com/webfolder/technetwork/jet/globalExamples-ThemeViewer.html

That's the place to start.  Theming is done via SASS for JET.

Sunil0710

Hello J.B

I went through the bellow link, and followed the "Setup" instructions.

http://www.oracle.com/webfolder/technetwork/jet-420/public_samples/JET-Theme-Builder/public_html/index.html?root=library&doc=docintroduction

I'm getting the  error like,

... Uhoh. Got error listen EADDRINUSE :::35729 ...

Error: listen EADDRINUSE :::35729

You already have a server listening on 35729

You should stop it and try again.

And i don't have any other project serving except this current one.

John JB Brock-Oracle

Hi Sunil,

I happen to have run into this when I was doing a presentation two weeks ago at a Java User Group.

Do you have NetBeans running?

If you do, stop it, run JET and then start the NetBeans project back up.

Either this, or change the livereload port by using

ojet serve --livereload-port=<some new value>

It doesn't have to be another JET project running.  Just something else that happens to be using port 35729.  Which as random as it seems, NetBeans appears to use as well by default.  Luckily, NetBeans is smart enough to detect if the port is in use and use another one. That's why starting NetBeans after JET, works, but not the other way around.

Sunil0710

Hello JB,

After restarting the NetBeans, i didn't get any errors.

When i followed the instructions listed in the doc, i can able to see the demo on theme builder.

But that's not the one looking for. I want to set the stealth theme as my default theme, instead of Alta theme.

Thanks,

John JB Brock-Oracle
Answer

Developers Guide has a section on Theming that will help you with how to set a theme of your own in the app.  At the highest level, you are going to replace the Alta reference in your index.html file with a link to your own Theme.

https://docs.oracle.com/en/middleware/jet/5.1/develop/theming-applications.html

Please be aware that the Stealth theme is a "demo" or "example" of how you can make your own Theme.  It is not a supported or production "Dark" theme from Oracle.

Marked as Answer by Sunil0710 · Sep 27 2020
Sunil0710

Thanks JB.

1 - 6

Post Details

Added on Jul 24 2018
6 comments
911 views