RaitaroH / LibreOffice-BreezeDark

Icons, color palette and color scheme for LibreOffice
GNU General Public License v3.0
109 stars 8 forks source link

Inject Color-Palette & recursive copy Linux #4

Open Advantaged opened 5 years ago

Advantaged commented 5 years ago

Use recursive copy command to give the copied file the same rights as the already present:

sudo cp -R LibreOffice-BreezeDark/images_breeze_dark.zip /usr/lib/libreoffice/share/config and cp -R LibreOffice-BreezeDark/standard.soc ~/.config/libreoffice/4/user/config/standard.soc

Pick the right file to inject the Color-Palette:

cat LibreOffice-BreezeDark/registrymodifications.xcu >> ~/.config/libreoffice/4/user/registrymodifications.xcu

Trying to inject "standard.soc" inside of "registrymodifications.xcu" will not work.

Or just backup and replace with:

mv ~/.config/libreoffice/4/user/registrymodifications.xcu ~/.config/libreoffice/4/user/registrymodifications.xcu.back cp -R LibreOffice-BreezeDark/registrymodifications.xcu ~/.config/libreoffice/4/user/registrymodifications.xcu

RaitaroH commented 5 years ago

I am sure this will be useful for the people who are running linux. Thank you.

Advantaged commented 5 years ago

I am sure this will be useful for the people who are running linux. Thank you.

sadly, I don't remember anymore how to inject files in Windows, sorry.

But... I would inject both files. Under Windows should be possible to edit it... not directly but renamed copies should be possible to open with same LibreOffice-Writer.

  1. Make a renamed copy of the files e.g.: "my.soc" & "my.xcu"
  2. Edit the two "*.soc"-files with "Writer" = the new downloaded "standard.soc" and the "my.soc" Note: Respect "parentheses" and "tabs", those are like HTML-programs-files.
  3. Edit the two "*.xcu"-files with "Writer" = the new downloaded "registrymodifications.xcu" and the "my.xcu" Note: Respect "parentheses" and "tabs", those are like HTML-programs-files.
  4. Close LO, rename the old files respectively "standard-soc-old.html" and "registrymodifications-xcu-old.html". The advantage of doing this is, you can edit those files with each Browser (Firefox, Chrome, Chromium, Palemon [portable], Win-own-Browser, etc., etc..)
  5. Copy the two new files "standard.soc" & "registrymodifications.xcu" @ their normal place.

I don't know if LO under Win "highlight" "parentheses" and "tabs" like under Linux but... all "Browsers" do it for sure. A remedy for that can be the LO-Latex-Extension.

Enjoy