I have a TogglerBar control for selecting images, but I see inconsistent border colours depending on what else is in the Dynamic.

images = ExampleData[{"TestImage", #}] & /@ {"Mandrill", "Peppers", "Tiffany"}

If I just have a single TogglerBar then the images are outlined in grey, so are not very visible:

 DynamicModule[{c = {}}, 
   Column[{TogglerBar[Dynamic[c], images, Appearance -> "Row"]}]]

enter image description here

Whereas if I have a Column with any other object, the images are outlined in a nice clear blue:

 DynamicModule[{c = {}},  
   Column[{TogglerBar[Dynamic[c], images, Appearance -> "Row"], Dynamic@Length@c}]]

enter image description here

Is this a bug? I'm using v11.3.0 on macOS.

  • $\begingroup$ I cannot reproduce this on Linux with 11.3 $\endgroup$
    – halirutan
    Oct 24 '18 at 9:47
  • $\begingroup$ @halirutan, is it always blue for you? $\endgroup$
    – SPPearce
    Oct 24 '18 at 10:22
  • 1
    $\begingroup$ No, always like in your top image $\endgroup$
    – halirutan
    Oct 24 '18 at 10:23
  • $\begingroup$ On Win everything is ok. The frame is blue (lighter than here) if you select them but for an empty c it is gray. $\endgroup$
    – Kuba
    Oct 24 '18 at 10:27
  • $\begingroup$ I find the two-shades of grey hard to distinguish, and would much rather it was blue. Is there a way to set the colour? $\endgroup$
    – SPPearce
    Oct 24 '18 at 10:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.