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

Config tiddler for light & dark palette #39

Closed
linonetwo opened this issue Sep 21, 2023 · 5 comments
Closed

Config tiddler for light & dark palette #39

linonetwo opened this issue Sep 21, 2023 · 5 comments

Comments

@linonetwo
Copy link

I was typing here, but I made it a forum post instead https://talk.tiddlywiki.org/t/config-for-light-dark-palette-e-g-palette-dark/8071 because I think the config tiddler name may need some consensus.

@kookma
Copy link
Owner

kookma commented Sep 22, 2023

Thank you. I am following the Talk discussion and I support your idea. Right know I use the below workaround:

  1. read the $:/palette text field
  2. if empty, it is assumed $:/palettes/Vanilla is in use
  3. from the palette in use read the color-scheme field

This way Shiraz realizes which color mode (light or dark) is in use. The downside is unofficial palettes may have not the color-scheme field.

@linonetwo
Copy link
Author

Oh, I don't know the color-scheme field yet!

But I have preferred dark scheme, which is Nord, but this button will pick Solarized automatically instead. So a manually choosed palette is required.

After the discussion there is settled (after a week), I will PR it to the core, and we can try to use those config tiddlers.

@kookma
Copy link
Owner

kookma commented Sep 23, 2023

But I have preferred dark scheme, which is Nord, but this button will pick Solarized automatically instead. So a manually choosed palette is required.

No you can set it automatically! Open Shiraz Settings, and set your light and dark palette of choice, then the button automatically switch between your choices not the default value. See instruction below. Also there is a reset button to return to Shiraz Default value.

image

@kookma
Copy link
Owner

kookma commented May 10, 2024

Now the switch palette supports dark, warm, and light color palettes.
It uses cycle operator. NOTE: for first use click on Reset to default button in above picture.

@kookma kookma closed this as completed May 10, 2024
@kookma
Copy link
Owner

kookma commented May 10, 2024

It seems TW 5.3.4 will have its own switch palette.

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