Checkbox needs 'unknown' state
Bug #1276066 reported by
Lars Karlitski
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UI Toolkit |
Incomplete
|
Low
|
Unassigned | ||
Ubuntu UX |
Invalid
|
Medium
|
Matthew Paul Thomas | ||
ubuntu-ui-toolkit (Ubuntu) |
Expired
|
Low
|
Unassigned |
Bug Description
The Checkbox component always animates its state transitions. Sometimes, the "checked" property is set shortly after initialization, which shows the animation when creating a page. For example, this happens when using the GSettings object, which fills in its properties in its componentCompleted:
GSettings {
id: settings
schema.id: "com.ubuntu.
}
CheckBox {
checked: settings.
}
It would be nice if there was a property "animate" which could be used to suppress animations while loading a page.
Changed in ubuntu-ui-toolkit: | |
assignee: | nobody → Zsombor Egri (zsombi) |
status: | New → Confirmed |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | nobody → Tim Peeters (tpeeters) |
importance: | Undecided → Low |
status: | New → Incomplete |
summary: |
- Checkbox cannot be stopped from animating + [sdk] Checkbox cannot be stopped from animating |
Changed in ubuntu-ux: | |
status: | New → Triaged |
importance: | Undecided → Medium |
assignee: | nobody → Giorgio Venturi (giorgio-venturi) |
Changed in ubuntu-ux: | |
status: | Triaged → Incomplete |
Changed in ubuntu-ux: | |
assignee: | Giorgio Venturi (giorgio-venturi) → Olga Kemmet (olga-kemmet) |
Changed in ubuntu-ux: | |
assignee: | Olga Kemmet (olga-kemmet) → Matthew Paul Thomas (mpt) |
summary: |
- [sdk] Checkbox cannot be stopped from animating + Checkbox needs 'unknown' state |
Changed in ubuntu-ux: | |
status: | Confirmed → Triaged |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | Tim Peeters (tpeeters) → nobody |
Changed in ubuntu-ui-toolkit: | |
assignee: | Tim Peeters (tpeeters) → nobody |
To post a comment you must log in.
I'm not sure turning off animations is an appropriate solution to the problem. Even if you do that, occasionally the device will be slow enough that you still see the control in the wrong state before it gains the correct state. That will make the whole device feel less trustworthy.
I suggest that the toolkit instead just not show a checkbox or switch at all until its state is known. It's better for it to be a little late and correct, than early and shifty.
What would be *really* cool would be if the toolkit automatically implemented, for every checkbox and switch, the behavior I defined for the call forwarding and call waiting switches: if the state takes a long time, show a spinner instead until the state becomes known. <https:/ /wiki.ubuntu. com/PhoneApp# Call_waiting>
To be precise, something like this:
* initially don't show the control at all
* if state still isn't known after 500 ms, show the label but not yet the checkbox/switch
* if state still isn't known after another 500 ms, show a spinner where the checkbox/switch will end up.