0

I have a big LyX document with many of these boxes with background color "olive":

enter image description here

On my old PC, these worked well. But I just got a new PC and for whatever reason, the text in these boxes is now often too dark (or too close to the olive color) for me to see clearly. (I am otherwise pretty happy with my new PC's display, brightness, colors, etc. and how it works with the rest of LyX.)

Is there any way for me to (fairly) quickly change the color of all of these "olive" boxes (in my big LyX document)? (I can manually change the color of each box, but this will take a long time.)

(I'm OK with what these boxes look like in the output PDF and don't want to change that. I only want to change how these boxes appear to me in LyX.)

(I wonder if perhaps for example there's some setting where I can set "olive" to appear as "white" to me in LyX?)

13
  • 1
    I’m voting to close this question because it is about editing properties of LyX. Commented Dec 16, 2022 at 7:04
  • @PrzemysławScherwentke: Where is the rule on this site that prohibits such questions? tex.stackexchange.com/help/on-topic: "If you have a question about ... Related software and tools, BibTeX, MakeIndex, Lyx, etc. ... then you're in the right place to ask your question!"
    – user255783
    Commented Dec 16, 2022 at 7:08
  • 2
    @user24096 Maybe I am missing something, but now your question is: I do not like the colour obtained on the new computer, but I will show you neither a bit of the code nor the version of LyX and let someone guess what happens. Hence it is not a question about LyX but about the properties of your local (unknown) installation. Commented Dec 16, 2022 at 8:21
  • 1
    Have a look in LyX's customization manual (which can be found in Help->Customization) at appendix B.2. It seems you can not change the olive color. But you can change the background color of those insets to something else.
    – Udi Fogiel
    Commented Dec 16, 2022 at 8:56
  • 1
    @user24096 Actually a lot of LaTeX users around here have tried LyX, and many dislike it even more after trying it. They feel it restricts what they can do. They are used to having full control over the LaTeX produced, and since LyX is not a LaTeX editor (see tex.stackexchange.com/questions/28822/…), they cannot just edit the LaTeX as they want. It is really hard for them to understand why some people (like myself) choose to be subject to the restrictions imposed by LyX.
    – scottkosty
    Commented Dec 16, 2022 at 15:42

1 Answer 1

3

If you will open LyX's application and go into Help->About LyX->Version, you should see a directory called User Directory.

There should be a file called preferences in that directory. Open that file with any text editor and in the color Section write \set_color "olive" "<HTML COLOR>", where <HTML COLOR> is the html color code for the color you want, e.g., #0000ff for blue.

After you have finished editing the preferences file, save, return to LyX's App and go to Tools->Reconfigure. When to program finishes exit LyX and reopen it.

You must log in to answer this question.