jfxtras-styles icon indicating copy to clipboard operation
jfxtras-styles copied to clipboard

Add constants for common accent colors

Open dukke opened this issue 6 years ago • 10 comments

Add constants for common accent colors so programmers can easily choose a nice accent color, like this:

.root {
  accent_color: JMETRO_NAVY_BLUE;
}

(This would be defined in a new style sheet added after applying JMetro)

Windows has a list of pre defined accent colors that one can choose from. If you right click the desktop background - select Personalize - select Colors.

dukke avatar Jan 16 '19 16:01 dukke

@MairwunNx this could be a nice issue for you to try to do a PR?

dukke avatar Jan 16 '19 16:01 dukke

@dukke Hi! Good Issue! I try it make tomorrow or the day after, okay? Because i need stop my other project, and i start work for your library 😁

MairwunNx avatar Jan 16 '19 18:01 MairwunNx

Nice 👍 Thanks Pavel

dukke avatar Jan 16 '19 18:01 dukke

Anyway do it when you can, no worries

dukke avatar Jan 16 '19 18:01 dukke

Thanks @dukke :), i try it realize ^_^, if i done work i do PR to your repo! 👍

MairwunNx avatar Jan 16 '19 18:01 MairwunNx

@dukke hi again! One question, needed switching accent color in "online" mode?

MairwunNx avatar Jan 26 '19 13:01 MairwunNx

Hi Pavel!

Online mode?

dukke avatar Jan 26 '19 14:01 dukke

@dukke Hi! Online mode = Changing theme colors in runned application :)

MairwunNx avatar Jan 26 '19 16:01 MairwunNx

Basically just have the windows known accent colors defined as css variables. just that.

Like:

.root {
  JMETRO_NAVY_BLUE; #000033; // This color value is made up. Just an example.
}

dukke avatar Jan 26 '19 16:01 dukke

I implemented all this in, please check, I hope everything is fine. #35

MairwunNx avatar Jan 27 '19 16:01 MairwunNx