Custom gradient colors missing after saving: where are they?

…and the odt doc.

What do you mean?

A Document saved as ODT?
A ODT Document saved as DOC?

A Document saved as ODT. I will edit this to avoid confusion.

Thank you for your clarification.
The procedure you describe works for me without any problems.


It almost looks like your user profile is broken.
Try Safe Mode and test the procedure you described,

If it works in Safe Mode your user profile is certainly defective and needs to be replaced.
Save the old user profile first.


Please read both of the following links carefully.
Both refer to the directory path called user profile.
Under Windows
%APPDATA%\libreoffice\4\user (LibreOffice 4 to 7)

Safe Mode

LibreOffice user profile


With me:

Version: 7.4.0.3 (x64) / LibreOffice Community
Build ID: f85e47c08ddd19c015c0114a68350214f7066f5a
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL


Before you reply or write a comment, please allow enough time for someone who is also writing a comment to correct or add to it.
Otherwise it becomes quite confusing. Thank you.

I have search AppData\Roaming\LibreOffice\4 for these saved schemes and found none. What would these be called?

Search for standard.sog. At the end of this little file you may find the name and some values of the new gradient. The other gradients are there as well at the beginning of the file.
My new (and later in another new file remembered) gradient had the following code snippet:

<draw:gradient draw:name="YellowToBlueLinear" draw:style="linear" draw:start-color="#ffff00" draw:end-color="#2a6099" draw:start-intensity="100%" draw:end-intensity="100%" draw:angle="0deg" draw:border="0%"/></ooo:gradient-table>

1 Like

Sorry, for as a test, I switched to a different computer, Windows 7 pro, 32 bit, and which did not have LO or AO installed, and installed LO 7.4.0.3 on it, created a new document, then inserted a frame, and went to Area>Gradient, and created a custom color scheme, and applied it, and added/saved the scheme, and saved the document as ODT, closed and reopened the ODT, but though the scheme is again applied, yet the saved scheme is not listed and thus not available to be chosen for other Area>Gradient fills one may create or modify after the document is saved and reopened, nor in another document after LO is properly shutdown (Quickstarter not running) and launched again, as well as the computer itself.
gradient-test1.odt (11.9 KB)

Thanks. Aside from back ups, I find 3 instances of standard.sog in

  • C:\Program Files (x86)\OpenOffice 4\presets\config\standard.sog
  • C:\Program Files\LibreOffice\share\palette\standard.sog
  • %UserProfile%\AppData\Roaming\OpenOffice\4\user\config\standard.sog

    However, there are no recent changes in any of them nor do I see custom names I used, though I see lines for default area schemes such as

    <draw:gradient draw:name=“Pastel_20_Bouquet” draw:display-name=“Pastel Bouquet” draw:style=“linear” draw:start-color="#dde8cb" draw:end-color="#ffd7d7" draw:start-intensity=“100%” draw:end-intensity=“100%” draw:angle=“300” draw:border=“0%”/>

OS: Version Linux Mint 20.3 Una 64-bit :: Kernel Linux 5.4.0-125-generic x86_64 :: MATE 1.26.0
LibreOffice Version: 7.3.6.2 / LibreOffice Community (PPA source)

@PeaceByJesus
In my system the standard.sog is located here (user profile!):
/home/<username>/.config/libreoffice/4/user/config/standard.sog

On your Windows machine you only have to search in
%AppData%\LibreOffice\4\user\config\
(hopefully you will find there the standard.sog.)

All the findspots which contain good old OpenOffice or are located in Program Files (x86) are not relevant for LibreOffice customizing.

If you don’t find the standard.sog file in your LO profile directories so you probably could start in Safe Mode and generate a new LO profile - see @Hrbrgr’s proposal.
Cheers

Thanks but as said, there is a standard.sog in my LO profile directories
%UserProfile%\AppData\Roaming\OpenOffice\4\user\config\standard.sog, but none of my added custom color schemes.

And as also said, contrary to a new profile being the answer, see Custom gradient colors missing after saving: where are they? - #11 by PeaceByJesus

So if you open up a document, and then right click in the page, and hit Page styles, and then Gradient, and then chose and modify one and hit Add to create a customized one and name it (+ hit OK), and save the document as odt (though I also tried it with Drawing and Presentation), and close and reopen it, and then repeat the steps to get to Gradient, then the scheme that you named is there for you to choose?

Note that you should see the scheme that you created is applied, but the issue is that none that you created is listed for you to choose from anymore after document is closed and reopened.

As written before: This is not LO’s user profile. Please check

%AppData%\LibreOffice\4\user\config\

Sorry, I was looking all thru my C drive, but there is no standard.sog anywhere in %AppData%\LibreOffice\4\user\config, and this is also missing from the full brand new install in my other desktop, even in all my C drive, and which only has LibreOffice (no Apache).

Related? https://learnlinuxandlibreoffice.org/6-how-to-use-libreoffice/6-1-create-custom-colors-and-gradients#:~:text=Should%20you%20replace%20either%20Mint%20or%20LibreOffice%20in,LibreDraw%20document%20and%20go%20to%20Format%2C%20Area%2C%20Gradient.

It could be that something went wrong with your installations of LibreOffice or that, for example, an antivirus program is causing problems.

General Installation Issues (Windows)

  1. you should not confuse LibreOffice with OpenOffice under any circumstances. Either you have a parallel installation of both programs or you have leftovers of OpenOffice.
    Installing several versions of LibreOffice in parallel

  2. It is not useful if you report two computer systems in the same question. Ask a separate question for each computer system.

    You may want to clean up your PC (s) or get outside qualified help to do so.

1 Like

It is indeed useful to report two computer systems in the same question, for as said, this missing function is experienced on a different computer, with a brand new full install of Libre office (and with no OpenOffice, and a clean, new user profile), thus attempts to blame this problem on a corrupt profile, confusion of LibreOffice with OpenOffice, antivirus, etc. and need for outside qualified help are hardly warranted.

I plan to later experiment with installation on a Linux OS.

Meanwhile, are you saying that if you open up a document, and then right click in the page, and hit Page styles, and then Gradient, and then chose and modify one and hit Add to create a customized one and name it (+ hit OK), and save the document as odt (though I also tried it with Drawing and Presentation), and close and reopen it, and then repeat the steps to get to Gradient, then the scheme that you named is there for you to choose?

…then the scheme that you named is there for you to choose?

YES! The procedure you describe works for me without any problems.
I have already announced it.


But since you don’t like my suggestions and think your way of proceeding is better (which is your right), I’m out of here now.
Good luck yet.

Hrbrgr, first, thank you and Grantler for trying to help, and sorry for reacting to this as a substantial debate, and perhaps there is some misunderstanding. The reason I did not (close my dozen documents) and restart in Safe mode was because I did not see how this would be any different than a new installation, which I tried and had the same problem.

Anyway, I went ahead and started in Safe mode, and had the same experience in seeking to see my added saved custom gradient schemes so that they are listed after closing the saved ODT document and reopening it while still in Safe Mode (as well as closing LO in Safe Mode and relaunching it using the start menu entry LibreOffice (Safe Mode) on Windows, and opening said document, which it showed a recent document).

Attached is the file as a odt as well as a pdf in case the screen shots are not preserved in the former. Next, I will try this under a new Linux Mint install.
LOsafemodeGradientTest1.odt (260.6 KB)
LOsafemodeGradientTest1.pdf (139.3 KB)

@PeaceByJesus I checked your odt file and there was no gradient added in the gradients’ table.
This seems to be a problem if a new/customized gradient is added when applied on page area (possibly on frame area as well).

Workaround

Try to apply/fixate a new customized gradient to the gradients' table when working on a rectangle or other object of the drawing tools. Probably this is the better way of saving a customized gradient. (For me it was the preferred way to customize a gradient - so I did not check other possibilities - I was too self-confident!) If (!) we are right we could write a featere request to bugzilla.

I found that if I accepted the suggested name Gradient 1 it wasn’t saved after re-opening. This was the same for Page or for a rectangle.

I did find if I gave it a different name, YellowToBlue, then it was saved. It might be that Gradient 1 is a working name that gets overwritten next time the document is opened, similar to Working Path in Photoshop.

Obvious reason:
There are some pre-defined names for gradients. On my system (without user profile; path: /opt/libreoffice7.2/share/palette) you can find 3 sog files (classic.sog; modern.sog; standard.sog). In modern.sog you find the predefined names Gradient 1to Gradient 27.

It seems that if you alter the palettes that the files (e.g. standard.sog) are copied to your user profile (same name as original file) and internally edited (added new gradients with name and properties).

So: If the TO @PeaceByJesus had not created the new gradient style with working on a drawing object - what my assumption is - that the standard.sog was not affected and thus the alteration not saved. We will have to prove that on different systems.

As regards naming, as seen in the file I named it ylw-blu-1, yet after closing that document and reopening it, then as said, while the gradient is applied to the page, yet the custom named gradient is not listed under under Page styles>Area>Gradient in that document, or in a new document.

Next, I plan to test this on a new installation of Linux Mint. As one who likes to customize and save such settings for greater efficiency, then I was hoping to do so in this regard. And I thank God for those who even make such customization possible and their abilities and and those who help! And thank you all here for the interest and help in this perplexing if not major issue.