AutomaThemely icon indicating copy to clipboard operation
AutomaThemely copied to clipboard

Suggestion: LibreOffice Icon style

Open ajdunevent opened this issue 6 years ago • 1 comments

Some of the icon styles for LibreOffice offer a dark and a light mode and look weird if not used with a correspondingly light or dark theme (examples: "Sifr" and "Sifr (dark)").

The following line: <item oor:path="/org.openoffice.Office.Common/Misc"><prop oor:name="SymbolStyle" oor:op="fuse"><value>sifr_dark</value></prop></item>

in the following file: ~/.config/libreoffice/4/user/registrymodifications.xcu

changes the theme on my machine.

Annoying note: Any changes to the file that are made while LibreOffice is open will be overwritten.

ajdunevent avatar May 21 '19 06:05 ajdunevent

In case anyone is looking for an immediate solution, I use AutomaThemely's Scripts option under Extras to run at sunrise a script with the following:

#!/usr/bin/bash

while [ -n "`pgrep soffice`" ]
do
  sleep 5
done

sed -i 's/sifr/sifr_dark/g' ~/.config/libreoffice/4/user/registrymodifications.xcu

and at sunset:

#!/usr/bin/bash

while [ -n "`pgrep soffice`" ]
do
  sleep 5
done

sed -i 's/sifr_dark/sifr/g' ~/.config/libreoffice/4/user/registrymodifications.xcu

Note, I'm not great at this stuff so there are probably better ways to achieve this. Feedback welcome, of course!

ajdunevent avatar May 21 '19 07:05 ajdunevent