jaime-olivares / vscode-yuml

yUML extension for Visual Studio Code
MIT License
116 stars 26 forks source link

Text color whenever the bg attribute is defined #6

Closed jaime-olivares closed 8 years ago

jaime-olivares commented 8 years ago

Currently, the text color is determined by the theme (light/dark). However, whenever the user selects a different background color using the {bg: } tag, the text may not be readable due to lack of contrast. In those cases, the background luminosity should be determined in order to choose either the black or white text color.