Skip to content

Conversation

@lkishalmi
Copy link
Contributor

Well, this is just a demo PR. If the community agrees and someone would iron this out and if Travis agrees we can even merge it.
Almost no work has been done on my side, just a small kick-off

image

As you see there are a lot of work to do.

@lkishalmi lkishalmi added the do not merge Don't merge this PR, it is not ready or just demonstration purposes. label Nov 23, 2019
Copy link
Contributor

@eirikbakke eirikbakke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good--I see this is all the boilerplate for adding a new module, with an external JAR dependency on flatlaf, and setting the bare minimum of parameters to make use of it for standard Swing components.

@@ -0,0 +1,9 @@
# To change this license header, choose License Headers in Project Properties.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Travis complained about this one...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed that one.

@lkishalmi
Copy link
Contributor Author

#1651 Shows a bit more what could/needs to be done around the LaF. Also a matching editor color theme would be good. Checked it with Norway Today and Citi Lights, not good.


@Override
public void validate() throws IllegalStateException {
UIManager.installLookAndFeel(new UIManager.LookAndFeelInfo("Flat Dark", NbFlatDarkLaf.class.getName()));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're planning on merging this before it's fully done, maybe rename this "FlatLaf Dark (experimental)" so people don't assume it's meant to be used when they see it as an option in the Preferences pane.

@lkishalmi
Copy link
Contributor Author

I'd just merge as it is. Let the community polish it out. These issues are usually easy fixes and quite visible, so I guess would attract contributors. Though it would be good that someone more artistic than me, could guide the style (color palette, font, spacing, etc.) guidance to this.

@geertjanw
Copy link
Member

Agree with @lkishalmi and this is great work.

@neilcsmith-net
Copy link
Member

neilcsmith-net commented Nov 23, 2019

+1 with caveats - would prefer to see this hidden by a system property flag until it's ready, or do the work in a separate branch rather than master? Or failing that, agree with @eirikbakke mark as experimental. Current release process is meant to mean anything in master is release ready!

EDIT - missed the extra commit to mark as experimental!

A font colour scheme similar to how Darcula would probably work well. I have a Darcula fork in use at the moment - will check the font colors in that.

Judging from that screenshot, it needs my Options hack. 😉 https://github.com/Revivius/nb-darcula/blob/master/src/main/java/com/revivius/nb/darcula/ui/OptionsAwareLabelUI.java

@lkishalmi lkishalmi changed the title Initial support of FlatLaf Look and Feels [NETBEANS-3428] Initial support of FlatLaf Look and Feels Nov 23, 2019
@lkishalmi
Copy link
Contributor Author

Judging from that screenshot, it needs my Options hack. wink https://github.com/Revivius/nb-darcula/blob/master/src/main/java/com/revivius/nb/darcula/ui/OptionsAwareLabelUI.java

Well it needs a lot of hacks, of course yours are welcome as well!

@lkishalmi lkishalmi removed the do not merge Don't merge this PR, it is not ready or just demonstration purposes. label Nov 25, 2019
@lkishalmi lkishalmi merged commit f089b59 into apache:master Nov 25, 2019
@lkishalmi
Copy link
Contributor Author

Let's the play begin.

@ramiswailem
Copy link
Contributor

Nice work!

Error when building with cmd

ant -DthreadCount=16 -quiet -silent -nice 10 -Dcluster.config=full -Ddo.build.windows.launchers=true build build-nbms generate-uc-catalog build-source-zips -Dpermit.jdk9.builds=true -Djavac.compilerargs=-nowarn -Dbuild.compiler.deprecation=false;

/root/NetBeansProjects/netbeans-src/nbbuild/build.xml:660: Target "all-o.n.swing.laf.dark" does not exist in the project "main". It is used from target "nbmerge-build-one-cluster".

@junichi11 junichi11 added this to the 11.3 milestone Nov 25, 2019
@lkishalmi
Copy link
Contributor Author

o.n.swing.laf.dark is another PR for Dark Nimbus and Dark Metal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants