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

Retain card color according to smmx original color #16

Open
Loudbea7 opened this issue Dec 28, 2024 · 4 comments
Open

Retain card color according to smmx original color #16

Loudbea7 opened this issue Dec 28, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request needs research Need to understand the issue solution more

Comments

@Loudbea7
Copy link

Loudbea7 commented Dec 28, 2024

Just as the title says.

Cards colors are currently all gray no matter what color they had originally.

Original smmx:
image

What I'm getting:
image

What I want:
image

I used the default Simplemind and Obsidian colors (except the pink and light blue which aren't default in Obsidian)
I think I've almost always used the default colors because of the ease of access to them, so may be the best option for me is to convert them to the default colors in Obsidian for further easy usage.
The default blue could be used as the default gray in Obsidian, so that way the light blue would also be available in replace for the blue in Obsidian

So the defaults would be something like this:

Simplemind    Obsidian
Blue          Gray
Red           Red
Orange        Orange
Yellow        Yellow
Green         Green
Light blue    Blue
Purple        Purple
Pink
  • a color for pink.

Default Simplemind colors:
image
Default Obsidian colors:
image

Here is a final example of how it would look also with the links colored:
image

image

@djsudduth
Copy link
Owner

djsudduth commented Dec 28, 2024

Unfortunately, Simplemind files do not contain the actual color values - only the palette name and the color numbers. So the file doesn't have the data to determine what the color numbers mean (basically no RGB values). I guess I could add a manual palette setting in the settings file - that would be about it. The user would have to define their own color mapping.

@djsudduth djsudduth self-assigned this Dec 28, 2024
@djsudduth djsudduth added needs research Need to understand the issue solution more enhancement New feature or request labels Dec 28, 2024
@Loudbea7
Copy link
Author

image

I see that only when you use a custom color the RGB values are saved into the smmx file.

I think I rarely, if ever, used a custom color, so for me, if I could transfer default color pallets to the default colors Obsidian uses it would be great. Just like the example I gave, + any pink for the pink one Obsidian doesn't have a default match.

Simplemind Obsidian
Blue Gray
Red Red
Orange Orange
Yellow Yellow
Green Green
Light blue Blue
Purple Purple
Pink

That would be the best for ease of use and to avoid having to do all custom colors because the default color RBG values aren't the same for Simplemind and Obsidian.

@djsudduth
Copy link
Owner

Interesting - but, I'm not sure what you're saying. There's no way to get the default palettes automatically - so, best case, I'd have a palettes.cfg file for someone to modify if needed.

@Loudbea7
Copy link
Author

I mean, not from the smmx file, but you have the palette and colorinfo which are fixed for the default colors you can select.
If you want those values you can set a node to a default color and look at the style. default colors have a palette and colorinfo value from 1 to 8 in the smmx file
When palette value is 0 it means it's not a default color.

image

If you want the original default Simplemind colors they are:
palette = 1 > RGB = 0,51,255 Hue = 152 Sat = 240 Lum = 120
palette = 2 > RGB = 255,0,0 Hue = 0 Sat = 240 Lum = 120
palette = 3 > RGB = 255,153,0 Hue = 24 Sat = 240 Lum = 120
palette = 4 > RGB = 234,234,0 Hue = 40 Sat = 240 Lum = 110
palette = 5 > RGB = 51,255,0 Hue = 723 Sat = 240 Lum = 120
palette = 6 > RGB = 0,204,255 Hue = 128 Sat = 240 Lum = 120
palette = 7 > RGB = 153,0,255 Hue = 184 Sat = 240 Lum = 120
palette = 8 > RGB = 255,128,192 Hue = 220 Sat = 240 Lum = 180

image

I understand your idea about doing a cfg file for the colors, and I don't mind the final obsidian colors to be the exact values of the default color from Simplemind.
I would prefer to assign for example
palette = 1 to the default gray Obsidian color.
palette = 2 to the default red Obsidian color
And so on, except for the pink Simplemind color that doesn't have a match, so that would have to be a custom Obsidian color.
image

In Obsidian, the default colors are stored with numbers from 1 to 6, the default gray one doesn't have the color parameter, and custom colors have values like this: "color":"#ec74ae"
image

What I'm trying to say in simpler words, is that
Simplemind default color blue = palette="1" could be assigned to default Obsidian gray
Simplemind default color red = palette="2" could be assigned to default Obsidian red = "color":"1"
and so on.

Does that make sense? I'm sorry for the hassle, I think it's a simple idea but I might not have done a good job explaining it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs research Need to understand the issue solution more
Projects
None yet
Development

No branches or pull requests

2 participants