MATLAB: Set(h, ‘BackgroundColor’, ‘Black’) – Not working in Linux

backgroundcolorcoloredittextset

Hi,
I'm making a gui with several edittexts. I would like these to have a black background and white text. First I tried to simply set this in the GUI editor (Guide), but it didn't seem to work, since they start out being disabled. Then i tried adding a function which adjust them, when they are activated. The code goes like this:
set(handles.editXoffset, 'BackgroundColor', 'Black',...
'ForegroundColor', 'White');
This works fine on windows machines, but on Linux, both background color and font color is shown as white. Looking in the properties, using:
get(hObject)
…in the edittexts callback, it shows this:
BackgroundColor = [0 0 0]
...
ForegroundColor = [1 1 1]
...
So it seems to be getting what I tell it, but it just don't show. What am I doing wrong here?

Best Answer

The operating system can override the specified colors, and obviously it does under your Linux platform. Which Matlab and OS version are you using?