7

In version 11, initialization cells got a dedicated style which has a light gray background. How can I ensure that the background of this type of cell conforms to the actual stylesheet?

Compare below the two basic stylesheets, ReverseColor and Default. The initialization cell is barely readable with the reversed stylesheet.

Mathematica graphics

István Zachar
  • 47,032
  • 20
  • 143
  • 291

1 Answers1

5

You need to add to the private stylesheet or edit the ReverseColor.nb with

Cell[StyleData["InitializationCell"], Background->GrayLevel[0]]

because it was missed somehow. E.g. "Code" cell has this fixed already:

Cell[StyleData["Code"],
  FontColor->GrayLevel[0.9],
  Background->GrayLevel[0]
]

p.s. Built in stylesheets can be edited safely when moved from $InstallationDirectory to appropriate directory in e.g $UserBaseDirectory. An example: Package editor interface

To make the copied stylesheet file editable, open Option Inspector (Ctrl+Shift+O), make sure that the Show option values field says Selected Notebook, find Notebook options > File options > Editable and set it to True.

Kuba
  • 136,707
  • 13
  • 279
  • 740