Fix DeviceSection number vertical alignment
This commit is contained in:
parent
dcc634be04
commit
3001131ffa
12
TODO.md
12
TODO.md
|
@ -1,15 +1,19 @@
|
|||
# TODO
|
||||
|
||||
- sessions page size
|
||||
- menu click-through padding to close it easily
|
||||
- clear listview checked on message clear
|
||||
- unregister popup/menu when destroyed without being closed
|
||||
- flickshortcuts
|
||||
- avatar upload/change component
|
||||
|
||||
- show scrollbars for a few secs if there's content to scroll on beginning
|
||||
- can leave room with a reason?
|
||||
|
||||
- field/area focus line in popups weird
|
||||
- clear listview checked on message clear
|
||||
- unregister popup/menu when destroyed without being closed
|
||||
- menu click-through padding to close it easily
|
||||
|
||||
- can leave room with a reason?
|
||||
- use new nio `restore_login()`
|
||||
|
||||
- verify all popups and boxes work: enter/esc, tab focus, operations
|
||||
|
||||
## Refactoring
|
||||
|
|
|
@ -15,8 +15,8 @@ HRowLayout {
|
|||
readonly property int sectionTotalCount:
|
||||
deviceList.sectionItemCounts[section] || 0
|
||||
|
||||
|
||||
HCheckBox {
|
||||
id: checkBox
|
||||
padding: theme.spacing
|
||||
topPadding: padding * (section === "current" ? 1 : 2)
|
||||
|
||||
|
@ -62,7 +62,10 @@ HRowLayout {
|
|||
.arg(sectionCheckedCount).arg(sectionTotalCount) :
|
||||
sectionTotalCount
|
||||
|
||||
topPadding: checkBox.topPadding - theme.spacing * 0.75
|
||||
rightPadding: theme.spacing * 1.5
|
||||
verticalAlignment: Qt.AlignVCenter
|
||||
|
||||
color:
|
||||
section === "current" || section === "verified" ?
|
||||
theme.colors.positiveText :
|
||||
|
@ -71,5 +74,7 @@ HRowLayout {
|
|||
theme.colors.warningText :
|
||||
|
||||
theme.colors.errorText
|
||||
|
||||
Layout.fillHeight: true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user