mindmap-markdown icon indicating copy to clipboard operation
mindmap-markdown copied to clipboard

Retain card color according to smmx original color

Open Loudbea7 opened this issue 11 months ago • 4 comments

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

Loudbea7 avatar Dec 28 '24 21:12 Loudbea7

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 avatar Dec 28 '24 23:12 djsudduth

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.

Loudbea7 avatar Dec 30 '24 11:12 Loudbea7

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.

djsudduth avatar Dec 30 '24 17:12 djsudduth

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.

Loudbea7 avatar Dec 30 '24 18:12 Loudbea7