touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #87814
[Bug 1470951] Re: ListItem.Standard deprecated, but ListItem.ThinDivider not - two imports
You don't actually need the old divider in the way you're suggesting.
You're assuming there would be an equivalent new component when in fact
the ListItem itself now provides it. I think we need to improve the
documentation.
Example of a divider in the new API:
divider {
visible: true
colorFrom: UbuntuColors.red
colorTo: UbuntuColors.green
}
The colors are optional, it can be as simple as
divider.visible: action != actions[actions.length - 1]
(In this example assuming an ActionSelectionPopover where the delegate
has an "action" and the model is a list of Action items)
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in
Ubuntu.
https://bugs.launchpad.net/bugs/1470951
Title:
ListItem.Standard deprecated, but ListItem.ThinDivider not - two
imports
Status in ubuntu-ui-toolkit package in Ubuntu:
New
Bug description:
Perhaps the title of the bug could be worded differently, but I find
it weird we deprecate ListItem.Standard and encourage use of ListItem
component, but we don't move ListItem.ThinDivider.
For the list item, you need Ubuntu.Components
For the list thin divider, you need Ubuntu.Components.ListItems 1.0
Shouldn't this be somehow streamlined? You need two imports to:
1) create custom list items based on new ListItem
2) another one for a thin divider
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1470951/+subscriptions
References