← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1589895] [NEW] Label should have readable themed link color

 

Public bug reported:

By default, when using links in a label, the color is not taken from the
palette, and becomes unreadable in SuruDark.

Label {
    text: '<a href="http://www.ubuntu.com";>Ubuntu Website</a>'
    textFormat: Text.StyledText
    onLinkActivated: Qt.openUrlExternally(link)
}

There's no palette value for this use-case. A work-around is to use
"linkColor: UbuntuColors.orange" which works for both standard themes.

See also bug 1589896.

** Affects: ubuntu-ux
     Importance: Undecided
         Status: New

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: Undecided
         Status: New

** Also affects: ubuntu-ux
   Importance: Undecided
       Status: New

** Description changed:

  By default, when using links in a label, the color is not taken from the
  palette, and becomes unreadable in SuruDark.
  
  Label {
-     text: '<a href="http://www.ubuntu.com";>Ubuntu Website</a>'
-     textFormat: Text.StyledText
-     onLinkActivated: Qt.openUrlExternally(link)
+     text: '<a href="http://www.ubuntu.com";>Ubuntu Website</a>'
+     textFormat: Text.StyledText
+     onLinkActivated: Qt.openUrlExternally(link)
  }
  
  There's no palette value for this use-case. A work-around is to use
  "linkColor: UbuntuColors.orange" which works for both standard themes.
+ 
+ See also bug 1589896.

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1589895

Title:
  Label should have readable themed link color

Status in Ubuntu UX:
  New
Status in ubuntu-ui-toolkit package in Ubuntu:
  New

Bug description:
  By default, when using links in a label, the color is not taken from
  the palette, and becomes unreadable in SuruDark.

  Label {
      text: '<a href="http://www.ubuntu.com";>Ubuntu Website</a>'
      textFormat: Text.StyledText
      onLinkActivated: Qt.openUrlExternally(link)
  }

  There's no palette value for this use-case. A work-around is to use
  "linkColor: UbuntuColors.orange" which works for both standard themes.

  See also bug 1589896.

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