Don't animate highlight rectangle sliding on click

This commit is contained in:
miruka 2019-08-19 18:32:43 -04:00
parent de4d984ded
commit d427465425
3 changed files with 22 additions and 5 deletions

View File

@ -1,11 +1,12 @@
- Refactoring - Refactoring
- Don't show the highlight rectangle sliding when clicking room - Use HInterfaceBox for EditAccount Profile and Encryption
- Use ItemDelegate
- Make all icon SVG files white/black, since we can now use ColorOverlay - Make all icon SVG files white/black, since we can now use ColorOverlay
- Make the icon blue in EditAccount when hovering and no avatar set - Make the icon blue in EditAccount when hovering and no avatar set
- Use HInterfaceBox for EditAccount Profile and Encryption
- HButton - HButton
- Control: hovered, visualFocus, enaled - Control: hovered, visualFocus, enabled
- Border and pressed color in theme / checkbox theming - Border and pressed color in theme / checkbox theming
- `^property type name$` - `^property type name$`

View File

@ -51,7 +51,15 @@ HInteractiveRectangle {
onTriggered: if (isCurrent) beHighlighted() onTriggered: if (isCurrent) beHighlighted()
} }
TapHandler { onTapped: accountDelegate.activate() } TapHandler {
onTapped: {
accountRoomList.highlightRangeMode = ListView.NoHighlightRange
accountRoomList.highlightMoveDuration = 0
activate()
accountRoomList.highlightRangeMode = ListView.ApplyRange
accountRoomList.highlightMoveDuration = theme.animationDuration
}
}
HRowLayout { HRowLayout {
id: row id: row

View File

@ -45,7 +45,15 @@ HInteractiveRectangle {
onTriggered: if (isCurrent) beHighlighted() onTriggered: if (isCurrent) beHighlighted()
} }
TapHandler { onTapped: activate() } TapHandler {
onTapped: {
accountRoomList.highlightRangeMode = ListView.NoHighlightRange
accountRoomList.highlightMoveDuration = 0
activate()
accountRoomList.highlightRangeMode = ListView.ApplyRange
accountRoomList.highlightMoveDuration = theme.animationDuration
}
}
HRowLayout { HRowLayout {
id: rowLayout id: rowLayout