You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Patrik Karlström <pa...@gmail.com> on 2025/04/19 04:25:03 UTC
26rc1 FlatLaf Window decorations
I noted that the FlatLaf Window decorations introduced a new unwanted
behaviour.
When moving the mouse cursor to the topmost & rightmost pixel the mouse is
outside the close button and a click won't close.
I admit this is a really small problem, but I have always steered away from
themes with this pattern.
Only tested on Fedora Wayland Plasma so far.
/Patrik
Re: 26rc1 FlatLaf Window decorations
Posted by Chris <ch...@gmx.net.INVALID>.
Well things come back under new name and is hype nowadays. There is
nothing wrong with it.
What style do you prefer? The old Windows 95 style?
So Flat or Material is a matter of taste of each other and those are not
popular for nothing, until next hype is coming and we have new work to
redesign the application :D.
As other already said, you can change this LaF very easily. It could
also called Easy LaF. You can change whatever you want.
Cheers
Chris
Am 20.04.2025 um 17:46 schrieb Chuck Davis:
> Neil, it was certainly not my intention to be impolite in expressing my
> opinion. Let me explain.
>
> All the hysteria over the "new, modern FLAT" look is quite amusing. It
> actually looks like something right out of the late 70s or early 80s when
> our "big" desktops had 64K memory and something approaching 1GB HHD. It is
> colorless, lifeless, drab and so retro. I, personally, do not comprehend
> why it grabs so much attention. Those of us who grew up with FLAT outgrew
> it. We can only hope it happens again.
>
> That is why, in my opinion, FLAT is nonsense.
>
> I don't know who developed the NB implementation of FLAT. I have read it
> is not easy to develop a laf for NB so whoever did it has greater skills
> than do I. It certainly is not my intention to denigrate that developer's
> abilities.
>
> It will, however, be a sad day if/when FLAT becomes the only available laf
> for NB. As long as I can, changing the laf is the first configuration
> change I will make to a new install.
>
>
> On Sat, Apr 19, 2025 at 10:04 AM Neil C Smith <ne...@apache.org> wrote:
>
>> FlatLaf is the only supported look and feel for the IDE, and it has the
>> added benefit that the main developer is also a committer here. Please keep
>> your opinions polite!
>>
>> Neil
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: 26rc1 FlatLaf Window decorations
Posted by Eirik Bakke <eb...@ultorg.com.INVALID>.
The name FlatLaf does not quite capture the full capabilities of this excellent LAF library.
It is true that FlatLaf has a more "flat" style by default. However, it is also much easier to customize than traditional Swing LAFs. For this reason, future work on "skinning" NetBeans will likely be done by adjusting FlatLaf configuration files, rather than by introducing new LAFs at the Swing level.
You can customize FlatLaf yourself, via Tools->Options->Appearance->FlatLaf->Edit custom properties . See the documentation at https://www.formdev.com/flatlaf/properties-files/ . FlatLaf even has a "theme editor" to help with this, see https://www.formdev.com/flatlaf/theme-editor/ .
So you could actually make a non-"flat" theme by configuring FlatLaf in the right way.
-- Eirik
From: Michael Bien <mb...@gmail.com>
Reply-To: "dev@netbeans.apache.org" <de...@netbeans.apache.org>
Date: Sunday, April 20, 2025 at 1:09 PM
To: "dev@netbeans.apache.org" <de...@netbeans.apache.org>, Chuck Davis <cj...@gmail.com>
Subject: Re: 26rc1 FlatLaf Window decorations
On 4/20/25 17:46, Chuck Davis wrote:
Neil, it was certainly not my intention to be impolite in expressing my
opinion. Let me explain.
All the hysteria over the "new, modern FLAT" look is quite amusing.
FlatLAF is well supported, cross platform, customizable and license compatible.
There are not exactly many swing LAFs in that category to pick from so it was in many ways
a pragmatic choice. And unless you want to implement custom components and test every
UI change N times, in such densely packed applications like NB, supporting only one main option
is too, the obvious choice.
What I read here is the jump from "i don't like it" to "its nonsense" while
also not wanting to invest time or come up with improvements.
So lets stay on topic and try to fix the 2 pixel wide dead zone on a close button.
-mbien
It
actually looks like something right out of the late 70s or early 80s when
our "big" desktops had 64K memory and something approaching 1GB HHD. It is
colorless, lifeless, drab and so retro. I, personally, do not comprehend
why it grabs so much attention. Those of us who grew up with FLAT outgrew
it. We can only hope it happens again.
That is why, in my opinion, FLAT is nonsense.
I don't know who developed the NB implementation of FLAT. I have read it
is not easy to develop a laf for NB so whoever did it has greater skills
than do I. It certainly is not my intention to denigrate that developer's
abilities.
It will, however, be a sad day if/when FLAT becomes the only available laf
for NB. As long as I can, changing the laf is the first configuration
change I will make to a new install.
On Sat, Apr 19, 2025 at 10:04 AM Neil C Smith <ne...@apache.org>> wrote:
FlatLaf is the only supported look and feel for the IDE, and it has the
added benefit that the main developer is also a committer here. Please keep
your opinions polite!
Neil
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org<ma...@netbeans.apache.org>
For additional commands, e-mail: dev-help@netbeans.apache.org<ma...@netbeans.apache.org>
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: 26rc1 FlatLaf Window decorations
Posted by Michael Bien <mb...@gmail.com>.
On 4/20/25 17:46, Chuck Davis wrote:
> Neil, it was certainly not my intention to be impolite in expressing my
> opinion. Let me explain.
>
> All the hysteria over the "new, modern FLAT" look is quite amusing.
FlatLAF is well supported, cross platform, customizable and license compatible.
There are not exactly many swing LAFs in that category to pick from so it was in many ways
a pragmatic choice. And unless you want to implement custom components and test every
UI change N times, in such densely packed applications like NB, supporting only one main option
is too, the obvious choice.
What I read here is the jump from "i don't like it" to "its nonsense" while
also not wanting to invest time or come up with improvements.
So lets stay on topic and try to fix the 2 pixel wide dead zone on a close button.
-mbien
> It
> actually looks like something right out of the late 70s or early 80s when
> our "big" desktops had 64K memory and something approaching 1GB HHD. It is
> colorless, lifeless, drab and so retro. I, personally, do not comprehend
> why it grabs so much attention. Those of us who grew up with FLAT outgrew
> it. We can only hope it happens again.
>
> That is why, in my opinion, FLAT is nonsense.
>
> I don't know who developed the NB implementation of FLAT. I have read it
> is not easy to develop a laf for NB so whoever did it has greater skills
> than do I. It certainly is not my intention to denigrate that developer's
> abilities.
>
> It will, however, be a sad day if/when FLAT becomes the only available laf
> for NB. As long as I can, changing the laf is the first configuration
> change I will make to a new install.
>
>
> On Sat, Apr 19, 2025 at 10:04 AM Neil C Smith <ne...@apache.org> wrote:
>
>> FlatLaf is the only supported look and feel for the IDE, and it has the
>> added benefit that the main developer is also a committer here. Please keep
>> your opinions polite!
>>
>> Neil
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: 26rc1 FlatLaf Window decorations
Posted by Chuck Davis <cj...@gmail.com>.
Neil, it was certainly not my intention to be impolite in expressing my
opinion. Let me explain.
All the hysteria over the "new, modern FLAT" look is quite amusing. It
actually looks like something right out of the late 70s or early 80s when
our "big" desktops had 64K memory and something approaching 1GB HHD. It is
colorless, lifeless, drab and so retro. I, personally, do not comprehend
why it grabs so much attention. Those of us who grew up with FLAT outgrew
it. We can only hope it happens again.
That is why, in my opinion, FLAT is nonsense.
I don't know who developed the NB implementation of FLAT. I have read it
is not easy to develop a laf for NB so whoever did it has greater skills
than do I. It certainly is not my intention to denigrate that developer's
abilities.
It will, however, be a sad day if/when FLAT becomes the only available laf
for NB. As long as I can, changing the laf is the first configuration
change I will make to a new install.
On Sat, Apr 19, 2025 at 10:04 AM Neil C Smith <ne...@apache.org> wrote:
>
> FlatLaf is the only supported look and feel for the IDE, and it has the
> added benefit that the main developer is also a committer here. Please keep
> your opinions polite!
>
> Neil
>
Re: 26rc1 FlatLaf Window decorations
Posted by Neil C Smith <ne...@apache.org>.
On Sat, 19 Apr 2025, 17:37 Chuck Davis, <cj...@gmail.com> wrote:
> First thing I do on a new installation is change the Laf to something that
> works for me. The flat laf is just nonsense in my opinion.
>
FlatLaf is the only supported look and feel for the IDE, and it has the
added benefit that the main developer is also a committer here. Please keep
your opinions polite!
Neil
Re: 26rc1 FlatLaf Window decorations
Posted by Chuck Davis <cj...@gmail.com>.
First thing I do on a new installation is change the Laf to something that
works for me. The flat laf is just nonsense in my opinion.
On Fri, Apr 18, 2025 at 9:31 PM Patrik Karlström <pa...@gmail.com>
wrote:
> I noted that the FlatLaf Window decorations introduced a new unwanted
> behaviour.
> When moving the mouse cursor to the topmost & rightmost pixel the mouse is
> outside the close button and a click won't close.
>
> I admit this is a really small problem, but I have always steered away from
> themes with this pattern.
>
> Only tested on Fedora Wayland Plasma so far.
>
> /Patrik
>
Re: 26rc1 FlatLaf Window decorations
Posted by Michael Bien <mb...@gmail.com>.
not sure actually. Putting the window controls in the left corner used to be the default on both mac and ubuntu so I wouldn't be surprised if there is a flag for it - but I couldn't find it while looking through the code.
-mbien
On 4/21/25 05:51, Patrik Karlström wrote:
> Fantastic, thank you!
>
> /Patrik
>
> PS
> Is it also an option to change the order of the elements to something like
> close, min,max, menu, title, quicksearch, window?
>
> Den lör 19 apr. 2025 kl 22:02 skrev Michael Bien <mb...@gmail.com>:
>
>> Hi Patrik,
>>
>> you could try setting the margin to 0
>>
>> [linux]TitlePane.buttonsMargins = 0,0,0,0
>>
>> and as bonus, to paint it red:
>>
>> [linux]TitlePane.closeHoverBackground = #c42b1c
>>
>> i haven't really noticed this while testing since I do have a two screen
>> setup,
>> so I am trained to actually point at the button otherwise i would be on a
>> different screen.
>>
>>
>> there is also always the option to disable window decorations, this will
>> switch to native
>> window decorations but you loose the integrated title bar.
>>
>> -mbien
>>
>>
>> On 4/19/25 06:25, Patrik Karlström wrote:
>>> I noted that the FlatLaf Window decorations introduced a new unwanted
>>> behaviour.
>>> When moving the mouse cursor to the topmost & rightmost pixel the mouse
>> is
>>> outside the close button and a click won't close.
>>>
>>> I admit this is a really small problem, but I have always steered away
>> from
>>> themes with this pattern.
>>>
>>> Only tested on Fedora Wayland Plasma so far.
>>>
>>> /Patrik
>>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: 26rc1 FlatLaf Window decorations
Posted by Patrik Karlström <pa...@gmail.com>.
Fantastic, thank you!
/Patrik
PS
Is it also an option to change the order of the elements to something like
close, min,max, menu, title, quicksearch, window?
Den lör 19 apr. 2025 kl 22:02 skrev Michael Bien <mb...@gmail.com>:
> Hi Patrik,
>
> you could try setting the margin to 0
>
> [linux]TitlePane.buttonsMargins = 0,0,0,0
>
> and as bonus, to paint it red:
>
> [linux]TitlePane.closeHoverBackground = #c42b1c
>
> i haven't really noticed this while testing since I do have a two screen
> setup,
> so I am trained to actually point at the button otherwise i would be on a
> different screen.
>
>
> there is also always the option to disable window decorations, this will
> switch to native
> window decorations but you loose the integrated title bar.
>
> -mbien
>
>
> On 4/19/25 06:25, Patrik Karlström wrote:
> > I noted that the FlatLaf Window decorations introduced a new unwanted
> > behaviour.
> > When moving the mouse cursor to the topmost & rightmost pixel the mouse
> is
> > outside the close button and a click won't close.
> >
> > I admit this is a really small problem, but I have always steered away
> from
> > themes with this pattern.
> >
> > Only tested on Fedora Wayland Plasma so far.
> >
> > /Patrik
> >
>
>
Re: 26rc1 FlatLaf Window decorations
Posted by Michael Bien <mb...@gmail.com>.
Hi Patrik,
you could try setting the margin to 0
[linux]TitlePane.buttonsMargins = 0,0,0,0
and as bonus, to paint it red:
[linux]TitlePane.closeHoverBackground = #c42b1c
i haven't really noticed this while testing since I do have a two screen setup,
so I am trained to actually point at the button otherwise i would be on a different screen.
there is also always the option to disable window decorations, this will switch to native
window decorations but you loose the integrated title bar.
-mbien
On 4/19/25 06:25, Patrik Karlström wrote:
> I noted that the FlatLaf Window decorations introduced a new unwanted
> behaviour.
> When moving the mouse cursor to the topmost & rightmost pixel the mouse is
> outside the close button and a click won't close.
>
> I admit this is a really small problem, but I have always steered away from
> themes with this pattern.
>
> Only tested on Fedora Wayland Plasma so far.
>
> /Patrik
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists