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

Color Theme Extensions #38

Closed
oliverdelancey opened this issue Dec 20, 2020 · 5 comments
Closed

Color Theme Extensions #38

oliverdelancey opened this issue Dec 20, 2020 · 5 comments

Comments

@oliverdelancey
Copy link

Firstly, I love NsCDE!! It's fast, clean, and beautiful!

Is there a way to write an extension to apply NsCDE's color themes to other programs? I use the kitty terminal, and it would be awesome to integrate it with NsCDE's colors. Thanks for any help!

@NsCDE
Copy link
Owner

NsCDE commented Dec 21, 2020

Hi @oliversandli

Yes it has. In ~/.NsCDE/libexec there is colormgr.local and fontmgr.local can be added. In default colormgr.local you will find examples for mate-terminal and gkrellm. This can then be run with palette and number of colors path manually, or by confirming existing (or choosing new) color scheme in Color Style Manager.

See /opt/NsCDE/share/doc/examples/README.colormgr.local and section 15.3 of NsCDE manual.

@oliverdelancey
Copy link
Author

Thanks! I'll take a look.

@oliverdelancey
Copy link
Author

After analyzing colormgr.local, I found that $PPATH points to a *.dp file. What do the 12-digit hex numbers mean in those files? For instance, in Broica.dp:

#ed00a8007000
#9900991b99fe
#89559808aa00
#68006f008200
#c600b2d2a87e
#49009200a700
#b70087008d00
#938eab73bf00

I assume these correspond to the 8 colors shown in the Color window of the Style Manager? If so, how can I use them as regular 6-digit colors?

@NsCDE
Copy link
Owner

NsCDE commented Dec 31, 2020

This are the CDE color palette files. This kind of color representation was characteristic then, and it is used in NsCDE today so old palettes are compatible out of the box. This can be converted into familiar 6-digit hex by simply discarding every second pair of numbers (3,4 7,8, 11,12).

If your terminal app does not recognise 12-digit hex (many do), you can automatically convert them by specifiying "-s" to /opt/NsCDE/libexec/nscde_palette_colorgen.py after -p $PPATH and -n $NCOLORS.

@oliverdelancey
Copy link
Author

Thanks for the clarification! Preliminary testing seems very promising.

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

No branches or pull requests

2 participants