Skip to main content



      Home
Home » Eclipse Projects » NatTable » Nattable Dark theme and white patch
Nattable Dark theme and white patch [message #1836120] Mon, 21 December 2020 19:51 Go to next message
Eclipse UserFriend
We are using Nattable dark theme. It works good but there is a patch at the end of the row or column if we don't have any rows or not enough columns.

That area (not sure what you call that area) is not themed for Dark and it shows as white patch.

Any idea how to style it so it gets the default widget bg color?

Re: Nattable Dark theme and white patch [message #1836124 is a reply to message #1836120] Mon, 21 December 2020 23:29 Go to previous messageGo to next message
Eclipse UserFriend
That is because of the background color of the NatTable instance. That is not controlled via NatTable styling. You need to set the background color via SWT mechanism NatTable#setBackground()
Re: Nattable Dark theme and white patch [message #1836157 is a reply to message #1836120] Tue, 22 December 2020 13:56 Go to previous messageGo to next message
Eclipse UserFriend
Thank you Dirk, it's working great.

Curious about design thought on why it was not set when we assigned the dark theme?
Re: Nattable Dark theme and white patch [message #1836158 is a reply to message #1836157] Tue, 22 December 2020 14:13 Go to previous messageGo to next message
Eclipse UserFriend
Are you asking a question? Was my answer not clear enough?
Re: Nattable Dark theme and white patch [message #1836159 is a reply to message #1836158] Tue, 22 December 2020 15:03 Go to previous message
Eclipse UserFriend
Nevermind.

Your answer was clear but I was assuming that it should have been set by theme manager. But I see what you mean that it is not styling but background is not part of Nattable.
Previous Topic:NatTable 2.0 released
Next Topic:Hierarchical Nat table
Goto Forum:
  


Current Time: Tue May 20 22:30:07 EDT 2025

Powered by FUDForum. Page generated in 0.03847 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top