pharo icon indicating copy to clipboard operation
pharo copied to clipboard

Push to remote list background is black with black text (unreadable)

Open labordep opened this issue 2 years ago • 3 comments

The background of the remote list is black, but the text too. This is unreadable :

image

The list content is ok :

image

My config :

  • Windows 11 Pro 22621.1194
  • Pharo-11.0.0+build.659

labordep avatar Apr 01 '23 09:04 labordep

Same problem in the method Push Up tool :

image

image

labordep avatar Apr 01 '23 12:04 labordep

Hi, I faced the issue as well so I did a short investigation.

The symptom: The shared variable BackgroundColor in RubAbstractTextArea backgroundColor is set to black and override the background color from the theme.

The fault In the image Settings > Text Editor > Rubric Editor > Background is set to black.

The possible cause

One hypothesis I have is that storing the settings after switching to Dark mode put that blackish color as a preset for the rub editor background.
Afterward users are stuck with that configuration until they find the workaround.

The suspect value in the settings file:

StoredSetting {
	#settingNodeIdentifier : '#Rubric#backgroundColor',
	#realValue : Color {
		#red : 0.1300097751710655,
		#green : 0.1300097751710655,
		#blue : 0.1300097751710655,
		#alpha : 1.0
	}
}

Workaround(s)

  • Specify the color of Settings > Text Editor > Rubric Editor > Background using the in the Settings browser.
  • Delete the settings file or remove the incriminated setting (above snippet), see SystemSettingsPersistence defaultPreferenceFileReference to find that file, then restart the image.

How to fix ?

I think it requires more investigation...

  • Maybe the setting storage logic is using the wrong color from the theme to save as the Rubric Editor background.
  • Maybe it does not make anymore sense to use a text editing component to display labels of a droplist.

Given the ongoing work to replace the Morph background with something else and the easy workaround, is it worth the investigation?

ValentinBourcier avatar Jun 05 '25 14:06 ValentinBourcier

Hi @ValentinBourcier, thanks for this great investigation! I don't know what is the actual status of the "Morphic replacement", but may be this is more related to themes management rework from @jecisc? Moreother, since Pharo 12 I haven't seen yet this problem.

labordep avatar Jun 14 '25 14:06 labordep

I think I fixed the origin of the issue. It can still happen to people who stored their settings while the bug was present but we cannot really do much about this :(

I'll close the issue and do not hesitate to reopen if needed

jecisc avatar Jun 16 '25 14:06 jecisc