Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different colors for light/dark variants #33

Closed
jvzr opened this issue Nov 16, 2022 · 2 comments
Closed

Different colors for light/dark variants #33

jvzr opened this issue Nov 16, 2022 · 2 comments
Labels

Comments

@jvzr
Copy link

jvzr commented Nov 16, 2022

Is there a way to specify two different colors for light/dark variants? Say palebrown for light, and brown for dark

I've tried -t Papirus-Light -C palebrown, followed by -t Papirus-Dark -C brown, but it just overwrites itself. I've tried -t Papirus-Light -C palebrown -t Papirus-Dark -C brown but it just uses the last entry in the command. I've tried editing the keep file, but it doesn't seem to have a notion of multiple themes.

It seemed to me that it would work because I could specify the theme to be targeted, but it appears that it doesn't. Or am I missing something?

@SmartFinn
Copy link
Member

SmartFinn commented Nov 20, 2022

This is a limitation of papirus-icon-theme because Papirus-Light/*/places are symlinks to Papirus/*/places. That helps to save disk space.

To make possible to set individual folder color to Papirus-Light (or Papirus-Dark) the theme should contain places icons like Papirus.

In case papirus-icon-theme is installed system-wide (/usr/share/icons/Papirus) there is an easy way to change this behavior by cloning theme to user's home:

# create a directory for future clone
# NOTE: if you are a KDE user you should change this and next paths from
# ~/.icons/Papirus-Light to ~/.local/share/icons/Papirus-Light
mkdir -p ~/.icons/Papirus-Light

# copy all directories, files, and symlinks from Papirus to Papirus-Light
# NOTE: slash (/) in the end of the paths is required
rsync --recursive --links /usr/share/icons/Papirus/ ~/.icons/Papirus-Light/

# copy only files (ignoring symlinks) from system Papirus-Light theme to user's
rsync --info=ALL --no-links --recursive --force /usr/share/icons/Papirus-Light/ ~/.icons/Papirus-Light/

# update icon cache
gtk-update-icon-cache -f ~/.icons/Papirus-Light/

# now you can set individual folder color for Papirus-Light
papirus-folders -v -C palebrown --theme Papirus-Light

@SmartFinn SmartFinn pinned this issue Nov 20, 2022
@jvzr
Copy link
Author

jvzr commented Nov 21, 2022

Thank you @SmartFinn for the wholesome reply! I've adapted it to my needs and am satisfied :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants