To produce good color schemes for styling notebook I was used to generate a grid of controls
grid = {
{Dynamic[background],
ColorSlider[Dynamic[background], ImageSize -> {800, 100},
AppearanceElements -> "Spectrum"]},
{Dynamic[fontColor],
ColorSlider[Dynamic[fontColor], ImageSize -> {800, 100},
AppearanceElements -> "Spectrum"]},
{Dynamic[cellframecolor],
ColorSlider[Dynamic[cellframecolor], ImageSize -> {800, 100},
AppearanceElements -> "Spectrum"]}
};
Grid @ grid
and print a cell whose options are manipulated through the previous sliders:
CellPrint[Cell["this", "Text"
, CellFrame -> True
, CellFrameColor -> Dynamic[cellframecolor]
, Background -> Dynamic[background]
, FontColor -> Dynamic[fontColor]
]
];
How can the same be achieved for the whole notebook's stylesheet, not for the specific cell ? I have not been capable to get it using CurrentValue[EvaluationNotebook[], "StyleDefinitions"]
.
SetOptions[EvaluationNotebook[],...]
keep in mind thatcellframecolor
will not survive through sessions and next time you open the notebook it will be broken. $\endgroup$Magnification
, you can do the same with other options. $\endgroup$cellframecolor
get lost between sessions isn't an issue for the use I make of it: I can save as you explained yesterday in mathematica.stackexchange.com/questions/108266/…. My block is aboutCurrentValue
: I have been experimenting with no result: please, can you provide a simple example to set, let's say, the background color for Title cells style ? $\endgroup$