Just looked at the current design docs with kgunn's help.

It appears the common 'dark' text colour for light backgrounds Ubuntu
Design wants is #5D5D5D (but I personally think #888888 might look
better). So it's seemingly just the threshold we've got wrong in
ButtonStyle.qml:

textColor: ColorUtils.luminance(button.color) <= 0.85 && !(stroke &&
!button.pressed) ? "#FFFFFF" : "#888888"

should be more like:

textColor: ColorUtils.luminance(button.color) < 0.4 && !(stroke &&
!button.pressed) ? "#FFFFFF" : "#5D5D5D"

or (my personal suggestion):

textColor: ColorUtils.luminance(button.color) < 0.4 && !(stroke &&
!button.pressed) ? "#FFFFFF" : "#888888"

** Changed in: unity8 (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1372530

Title:
  Button text color doesn't offer great contrast, and looks disabled
  when it's not

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-ux/+bug/1372530/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to