domsson/nuru-web

Color selection can't handle FG and BG being the same color

Closed this issue · 1 comments

While it is possible to select the same color for foreground and background, there are two issues when we do this:

  1. only one of the indicating icons will be displayed
  2. changing FG or BG to another color after will remove the selection for both, FG and BG from the original cell

Fixed with 834f3d7 by using separate, distinct CSS classes (selected-fg and selected-bg) instead of a combination of CSS classes (selected and fg and/or bg). Also changed the icons to indicate selection and added a third one, which combines the icons for FG and BG selection.