Remove double blank lines from QML files
This commit is contained in:
parent
58257c0930
commit
eed2cc4818
|
@ -10,7 +10,6 @@ HGridLayout {
|
|||
|
||||
readonly property bool vertical: flow === HGridLayout.TopToBottom
|
||||
|
||||
|
||||
flow:
|
||||
width >= summedImplicitWidth ?
|
||||
HGridLayout.LeftToRight :
|
||||
|
|
|
@ -8,7 +8,6 @@ import ".."
|
|||
HButton {
|
||||
property Item textControl // HTextField or HTextArea
|
||||
|
||||
|
||||
icon.name: "copy-text"
|
||||
iconItem.small: true
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@ Timer {
|
|||
to: 1
|
||||
}
|
||||
|
||||
|
||||
interval: theme.animationDuration * 2
|
||||
running: true
|
||||
onTriggered: {
|
||||
|
|
|
@ -23,7 +23,6 @@ Rectangle {
|
|||
readonly property alias hovered: hoverHandler.hovered
|
||||
readonly property alias circleRadius: avatarImage.circleRadius
|
||||
|
||||
|
||||
implicitWidth: implicitHeight
|
||||
implicitHeight:
|
||||
compact ?
|
||||
|
|
|
@ -3,13 +3,11 @@
|
|||
|
||||
import QtQuick 2.12
|
||||
|
||||
|
||||
HRectangleBottomBorder {
|
||||
id: line
|
||||
|
||||
property bool show: false
|
||||
|
||||
|
||||
transform: Scale {
|
||||
origin.x: line.width / 2
|
||||
origin.y: line.height / 2
|
||||
|
|
|
@ -29,7 +29,6 @@ Button {
|
|||
visible: text && hovered
|
||||
}
|
||||
|
||||
|
||||
enabled: ! button.loading
|
||||
spacing: theme.spacing
|
||||
topPadding: padded ? spacing * (circle ? 1 : 0.5) : 0
|
||||
|
|
|
@ -9,7 +9,6 @@ Rectangle {
|
|||
property QtObject buttonTheme
|
||||
property bool useFocusLine: true
|
||||
|
||||
|
||||
color: buttonTheme.background
|
||||
opacity:
|
||||
button.loading ? theme.loadingElementsOpacity :
|
||||
|
|
|
@ -14,7 +14,6 @@ HRowLayout {
|
|||
readonly property alias icon: icon
|
||||
readonly property alias label: label
|
||||
|
||||
|
||||
spacing: button.spacing
|
||||
opacity: button.loading ? theme.loadingElementsOpacity :
|
||||
enabled ? 1 : theme.disabledElementsOpacity
|
||||
|
|
|
@ -17,7 +17,6 @@ CheckBox {
|
|||
|
||||
function reset() { checked = defaultChecked }
|
||||
|
||||
|
||||
checked: defaultChecked
|
||||
spacing: contentItem.visible ? theme.spacing : 0
|
||||
padding: 0
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
import QtQuick 2.12
|
||||
import QtQuick.Shapes 1.12
|
||||
|
||||
|
||||
Item {
|
||||
property real progress: 0 // 0-1
|
||||
|
||||
|
@ -12,7 +11,6 @@ Item {
|
|||
readonly property alias progressCircle: progressCircle
|
||||
readonly property alias label: label
|
||||
|
||||
|
||||
implicitWidth: 96 * (theme ? theme.uiScale : 1)
|
||||
implicitHeight: implicitWidth
|
||||
|
||||
|
|
|
@ -6,6 +6,5 @@ import QtQuick 2.12
|
|||
ColorAnimation {
|
||||
property real factor: 1.0
|
||||
|
||||
|
||||
duration: theme.animationDuration * factor
|
||||
}
|
||||
|
|
|
@ -10,7 +10,6 @@ HPage {
|
|||
|
||||
property alias column: column
|
||||
|
||||
|
||||
implicitWidth: theme.controls.box.defaultWidth
|
||||
contentHeight: column.childrenRect.height
|
||||
|
||||
|
|
|
@ -67,7 +67,6 @@ Drawer {
|
|||
|
||||
readonly property bool vertical: ! horizontal
|
||||
|
||||
|
||||
implicitWidth: horizontal ? calculatedSize : parent.width
|
||||
implicitHeight: vertical ? calculatedSize : parent.height
|
||||
|
||||
|
|
|
@ -17,7 +17,6 @@ HPage {
|
|||
property bool enableFlickShortcuts:
|
||||
SwipeView ? SwipeView.isCurrentItem : true
|
||||
|
||||
|
||||
implicitWidth: theme.controls.box.defaultWidth
|
||||
implicitHeight: contentHeight + implicitHeaderHeight + implicitFooterHeight
|
||||
contentHeight:
|
||||
|
|
|
@ -16,7 +16,6 @@ GridView {
|
|||
property int lastCheckedDelegateIndex: 0
|
||||
property int selectedCount: Object.keys(checked).length
|
||||
|
||||
|
||||
function check(...indices) {
|
||||
for (const i of indices) {
|
||||
const model = gridView.model.get(i)
|
||||
|
@ -71,7 +70,6 @@ GridView {
|
|||
)
|
||||
}
|
||||
|
||||
|
||||
currentIndex: defaultCurrentIndex
|
||||
keyNavigationWraps: true
|
||||
highlightMoveDuration: theme.animationDuration
|
||||
|
@ -84,7 +82,6 @@ GridView {
|
|||
maximumFlickVelocity: window.settings.Scrolling.kinetic_max_speed
|
||||
flickDeceleration: window.settings.Scrolling.kinetic_deceleration
|
||||
|
||||
|
||||
highlight: Rectangle {
|
||||
color: theme.controls.gridView.highlight
|
||||
}
|
||||
|
|
|
@ -18,7 +18,6 @@ Image {
|
|||
property color colorize: theme.icons.colorize
|
||||
property string iconPack: theme ? theme.icons.preferredPack : "thin"
|
||||
|
||||
|
||||
cache: true
|
||||
asynchronous: true
|
||||
fillMode: Image.PreserveAspectFit
|
||||
|
|
|
@ -44,7 +44,6 @@ Image {
|
|||
source = oldSource
|
||||
}
|
||||
|
||||
|
||||
autoTransform: true
|
||||
asynchronous: true
|
||||
fillMode: Image.PreserveAspectFit
|
||||
|
|
|
@ -63,7 +63,6 @@ MouseArea {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
enabled: ! window.settings.Scrolling.kinetic
|
||||
propagateComposedEvents: true
|
||||
acceptedButtons: Qt.NoButton
|
||||
|
|
|
@ -14,7 +14,6 @@ HColumnLayout {
|
|||
readonly property alias label: label
|
||||
readonly property alias errorLabel: errorLabel
|
||||
|
||||
|
||||
spacing: theme.spacing / 2
|
||||
|
||||
HRowLayout {
|
||||
|
|
|
@ -78,7 +78,6 @@ ListView {
|
|||
)
|
||||
}
|
||||
|
||||
|
||||
currentIndex: defaultCurrentIndex
|
||||
keyNavigationWraps: true
|
||||
highlightMoveDuration: theme.animationDuration
|
||||
|
|
|
@ -17,7 +17,6 @@ Menu {
|
|||
|
||||
readonly property string uuid: CppUtils.uuid()
|
||||
|
||||
|
||||
modal: true
|
||||
dim: false
|
||||
padding: theme.controls.menu.borderWidth
|
||||
|
|
|
@ -10,7 +10,6 @@ MenuItem {
|
|||
readonly property alias iconItem: contentItem.icon
|
||||
readonly property alias label: contentItem.label
|
||||
|
||||
|
||||
spacing: theme.spacing
|
||||
leftPadding: spacing
|
||||
rightPadding: leftPadding
|
||||
|
|
|
@ -9,7 +9,6 @@ HMenuItem {
|
|||
property bool autoDestruct: true
|
||||
property var properties: ({})
|
||||
|
||||
|
||||
onTriggered: {
|
||||
menu.focusOnClosed = null
|
||||
|
||||
|
|
|
@ -59,7 +59,6 @@ HImage {
|
|||
)
|
||||
}
|
||||
|
||||
|
||||
source: sourceOverride || (show ? cachedPath : "")
|
||||
showProgressBar:
|
||||
(isMxc && status === Image.Null) || status === Image.Loading
|
||||
|
|
|
@ -12,7 +12,6 @@ HRowLayout {
|
|||
property alias backgroundColor: noticeLabelBackground.color
|
||||
property alias radius: noticeLabelBackground.radius
|
||||
|
||||
|
||||
HLabel {
|
||||
id: noticeLabel
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
|
|
|
@ -7,7 +7,6 @@ NumberAnimation {
|
|||
property real factor: 1.0
|
||||
property real overshoot: 0.0
|
||||
|
||||
|
||||
duration:
|
||||
theme.animationDuration *
|
||||
Math.max((1 + Math.abs(overshoot)) / 1.7, 1.0) * factor
|
||||
|
|
|
@ -19,7 +19,6 @@ Page {
|
|||
signal keyboardAccept()
|
||||
signal keyboardCancel()
|
||||
|
||||
|
||||
padding: currentSpacing < theme.spacing ? 0 : currentSpacing
|
||||
background: null
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@ Popup {
|
|||
|
||||
readonly property string uuid: CppUtils.uuid()
|
||||
|
||||
|
||||
modal: true
|
||||
focus: true
|
||||
padding: 0
|
||||
|
|
|
@ -10,7 +10,6 @@ ProgressBar {
|
|||
property color backgroundColor: theme.controls.progressBar.background
|
||||
property color foregroundColor: theme.controls.progressBar.foreground
|
||||
|
||||
|
||||
background: Rectangle {
|
||||
implicitWidth: 200
|
||||
implicitHeight: theme.controls.progressBar.height
|
||||
|
|
|
@ -7,7 +7,6 @@ Item {
|
|||
property alias borderHeight: clipArea.height
|
||||
property alias color: borderRectangle.color
|
||||
|
||||
|
||||
implicitWidth: rectangle.width
|
||||
implicitHeight: rectangle.height
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
import QtQuick.Controls 2.12
|
||||
import QtQuick 2.12
|
||||
|
||||
|
||||
Repeater {
|
||||
id: repeater
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@ HAvatar {
|
|||
property string roomId
|
||||
property string displayName
|
||||
|
||||
|
||||
name: displayName[0] === "#" && displayName.length > 1 ?
|
||||
displayName.substring(1) :
|
||||
displayName
|
||||
|
|
|
@ -23,7 +23,6 @@ TextEdit {
|
|||
label.selectAll()
|
||||
}
|
||||
|
||||
|
||||
font.family: theme.fontFamily.sans
|
||||
font.pixelSize: theme.fontSize.normal
|
||||
color: theme.colors.text
|
||||
|
|
|
@ -7,7 +7,6 @@ Shortcut {
|
|||
// TODO: use enabled + a Binding with restoreValue when switch to Qt 5.15
|
||||
property bool active: true
|
||||
|
||||
|
||||
enabled: ! window.anyPopupOrMenu && active
|
||||
context: Qt.ApplicationShortcut
|
||||
}
|
||||
|
|
|
@ -15,7 +15,6 @@ Slider {
|
|||
property alias toolTip: toolTip
|
||||
property alias mouseArea: mouseArea
|
||||
|
||||
|
||||
leftPadding: 0
|
||||
rightPadding: leftPadding
|
||||
topPadding: 0
|
||||
|
|
|
@ -22,7 +22,6 @@ SwipeView {
|
|||
property int lastMove: HSwipeView.Move.ToNext
|
||||
property bool changed: currentIndex !== defaultIndex
|
||||
|
||||
|
||||
function reset() { setCurrentIndex(defaultIndex) }
|
||||
|
||||
function incrementWrapIndex() {
|
||||
|
@ -37,7 +36,6 @@ SwipeView {
|
|||
decrementCurrentIndex()
|
||||
}
|
||||
|
||||
|
||||
Component.onCompleted: if (! changed) {
|
||||
setCurrentIndex(window.getState(this, "currentIndex", defaultIndex))
|
||||
saveEnabled = true
|
||||
|
|
|
@ -27,7 +27,6 @@ TabButton {
|
|||
visible: text && hovered
|
||||
}
|
||||
|
||||
|
||||
spacing: theme.spacing
|
||||
topPadding: spacing / 1.5
|
||||
bottomPadding: topPadding
|
||||
|
|
|
@ -8,7 +8,6 @@ import QtQuick.Layouts 1.12
|
|||
HPage {
|
||||
default property alias swipeViewData: swipeView.contentData
|
||||
|
||||
|
||||
contentWidth:
|
||||
Math.max(swipeView.contentWidth, theme.controls.box.defaultWidth)
|
||||
|
||||
|
|
|
@ -60,7 +60,6 @@ TextArea {
|
|||
return cursorPosition === 0 ? null : getWordAt(cursorPosition - 1)
|
||||
}
|
||||
|
||||
|
||||
text: defaultText || ""
|
||||
opacity: enabled ? 1 : theme.disabledElementsOpacity
|
||||
selectByMouse: true
|
||||
|
@ -146,7 +145,6 @@ TextArea {
|
|||
KeyNavigation.priority: KeyNavigation.BeforeItem
|
||||
KeyNavigation.tab: focusItemOnTab
|
||||
|
||||
|
||||
Binding on color {
|
||||
value: "transparent"
|
||||
when: disabledText !== null && ! textArea.enabled
|
||||
|
|
|
@ -26,7 +26,6 @@ HMenu {
|
|||
)
|
||||
}
|
||||
|
||||
|
||||
onClosed: control.persistentSelection = hadPersistentSelection
|
||||
Component.onDestruction:
|
||||
control.persistentSelection = hadPersistentSelection
|
||||
|
|
|
@ -48,7 +48,6 @@ TextField {
|
|||
insert(cursorPosition, text)
|
||||
}
|
||||
|
||||
|
||||
text: defaultText || ""
|
||||
opacity: enabled ? 1 : theme.disabledElementsOpacity
|
||||
selectByMouse: true
|
||||
|
@ -117,7 +116,6 @@ TextField {
|
|||
Keys.onRightPressed:
|
||||
event.accepted = cursorPosition === length && ! selectedText
|
||||
|
||||
|
||||
Binding on color {
|
||||
value: "transparent"
|
||||
when: disabledText !== null && ! field.enabled
|
||||
|
@ -133,7 +131,6 @@ TextField {
|
|||
when: disabledText !== null && ! field.enabled
|
||||
}
|
||||
|
||||
|
||||
Behavior on opacity { HNumberAnimation {} }
|
||||
Behavior on color { HColorAnimation {} }
|
||||
Behavior on placeholderTextColor { HColorAnimation {} }
|
||||
|
|
|
@ -7,7 +7,6 @@ import ".."
|
|||
HRowLayout {
|
||||
property HTile tile
|
||||
|
||||
|
||||
spacing: tile.spacing
|
||||
opacity: tile.contentOpacity
|
||||
}
|
||||
|
|
|
@ -38,7 +38,6 @@ HButton {
|
|||
openMenu(menuAtCursor)
|
||||
}
|
||||
|
||||
|
||||
topPadding: padded ? spacing / (compact ? 4 : 2) : 0
|
||||
bottomPadding: topPadding
|
||||
|
||||
|
@ -47,7 +46,6 @@ HButton {
|
|||
Keys.onSpacePressed: leftClicked()
|
||||
Keys.onMenuPressed: doRightClick(false)
|
||||
|
||||
|
||||
Behavior on topPadding { HNumberAnimation {} }
|
||||
Behavior on bottomPadding { HNumberAnimation {} }
|
||||
|
||||
|
|
|
@ -8,7 +8,6 @@ import ".."
|
|||
HLabel {
|
||||
property HTile tile
|
||||
|
||||
|
||||
textFormat: Text.StyledText
|
||||
font.pixelSize: theme.fontSize.small
|
||||
verticalAlignment: Qt.AlignVCenter
|
||||
|
|
|
@ -9,7 +9,6 @@ HLabel {
|
|||
property HTile tile
|
||||
property int hideUnderWidth: 200
|
||||
|
||||
|
||||
font.pixelSize: theme.fontSize.small
|
||||
verticalAlignment: Qt.AlignVCenter
|
||||
color: theme.colors.halfDimText
|
||||
|
|
|
@ -13,7 +13,6 @@ ToolTip {
|
|||
property alias label: label
|
||||
property alias backgroundColor: background.color
|
||||
|
||||
|
||||
function instantShow(timeout=-1) {
|
||||
if (visible) return
|
||||
instant = true
|
||||
|
@ -25,7 +24,6 @@ ToolTip {
|
|||
visible ? hide() : instantShow(timeout)
|
||||
}
|
||||
|
||||
|
||||
delay: instant ? 0 : window.settings.General.tooltips_delay * 1000
|
||||
padding: background.border.width
|
||||
|
||||
|
|
|
@ -16,7 +16,6 @@ HAvatar {
|
|||
readonly property bool admin: powerLevel >= 100
|
||||
readonly property bool moderator: powerLevel >= 50 && ! admin
|
||||
|
||||
|
||||
name: displayName || userId.substring(1) // no leading @
|
||||
title: "user_" + userId + ".avatar"
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@ OSD {
|
|||
|
||||
property alias source: audioPlayer.source
|
||||
|
||||
|
||||
audioOnly: true
|
||||
media: audioPlayer
|
||||
|
||||
|
|
|
@ -32,7 +32,6 @@ HColumnLayout {
|
|||
if (media.seekable) media.seek(pos * (savedDuration || boundPosition))
|
||||
}
|
||||
|
||||
|
||||
visible: osdScaleTransform.yScale > 0
|
||||
|
||||
transform: Scale {
|
||||
|
|
|
@ -14,14 +14,12 @@ Video {
|
|||
implicitWidth: fullScreen ? window.width : 640
|
||||
implicitHeight: fullScreen ? window.height : (width / osd.savedAspectRatio)
|
||||
|
||||
|
||||
property bool hovered: false
|
||||
property alias fullScreen: osd.fullScreen
|
||||
|
||||
property int oldVisibility: Window.Windowed
|
||||
property QtObject oldParent: video.parent
|
||||
|
||||
|
||||
onFullScreenChanged: {
|
||||
if (fullScreen) {
|
||||
oldVisibility = window.visibility
|
||||
|
@ -40,7 +38,6 @@ Video {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
Connections {
|
||||
target: mainUI.fullScreenPopup
|
||||
onClosed: fullScreen = false
|
||||
|
|
|
@ -19,7 +19,6 @@ HDrawer {
|
|||
readonly property alias buttonRepeater: buttonRepeater
|
||||
readonly property alias swipeView: swipeView
|
||||
|
||||
|
||||
defaultSize: buttonRepeater.count * buttonWidth
|
||||
minimumSize: buttonWidth
|
||||
|
||||
|
|
|
@ -25,7 +25,6 @@ AutoDirectionLayout {
|
|||
|
||||
function reset() { field.reset() }
|
||||
|
||||
|
||||
rowSpacing: theme.spacing
|
||||
onActiveFocusChanged: if (activeFocus) field.forceActiveFocus()
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@ import QtQuick 2.12
|
|||
Rectangle {
|
||||
property string presence
|
||||
|
||||
|
||||
implicitWidth:
|
||||
window.settings.General.compact ?
|
||||
theme.controls.presence.radius * 2 :
|
||||
|
|
|
@ -110,7 +110,6 @@ HDrawer {
|
|||
outputList.model.insert(0, { input, output, error })
|
||||
}
|
||||
|
||||
|
||||
objectName: "debugConsole"
|
||||
edge: Qt.TopEdge
|
||||
x: horizontal ? 0 : referenceSizeParent.width / 2 - width / 2
|
||||
|
|
|
@ -24,7 +24,6 @@ HFileDialogOpener {
|
|||
})
|
||||
}
|
||||
|
||||
|
||||
fill: false
|
||||
dialog.title: qsTr("Save decryption keys file as...")
|
||||
dialog.fileMode: FileDialog.SaveFile
|
||||
|
|
|
@ -26,7 +26,6 @@ Item {
|
|||
signal filesPicked(var files)
|
||||
signal cancelled()
|
||||
|
||||
|
||||
anchors.fill: fill ? parent : undefined
|
||||
|
||||
TapHandler { enabled: opener.enabled && fill; onTapped: fileDialog.open() }
|
||||
|
|
|
@ -10,7 +10,6 @@ HFileDialogOpener {
|
|||
property string userId: ""
|
||||
property string importFutureId: ""
|
||||
|
||||
|
||||
fill: false
|
||||
dialog.title: qsTr("Select a decryption keys file to import")
|
||||
onFilePicked: {
|
||||
|
|
|
@ -12,7 +12,6 @@ HFileDialogOpener {
|
|||
|
||||
signal replied()
|
||||
|
||||
|
||||
fill: false
|
||||
dialog.title: qsTr("Select a file to send")
|
||||
dialog.fileMode: FileDialog.OpenFiles
|
||||
|
|
|
@ -13,7 +13,6 @@ Timer {
|
|||
py.callClientCoro(userId, "set_presence", [presence, undefined, false])
|
||||
}
|
||||
|
||||
|
||||
interval: 1000
|
||||
repeat: true
|
||||
running:
|
||||
|
|
|
@ -11,7 +11,6 @@ Rectangle {
|
|||
property RoomList roomList
|
||||
readonly property alias accountList: accountList
|
||||
|
||||
|
||||
color: theme.mainPane.accountBar.background
|
||||
implicitHeight:
|
||||
accountList.count >= 2 ?
|
||||
|
@ -79,7 +78,6 @@ Rectangle {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
HShortcut {
|
||||
sequences: window.settings.Keys.Accounts.previous
|
||||
onActivated: {
|
||||
|
|
|
@ -20,7 +20,6 @@ HMenu {
|
|||
py.callClientCoro(userId, "set_presence", [presence, statusMsg])
|
||||
}
|
||||
|
||||
|
||||
onOpened: statusText.forceActiveFocus()
|
||||
|
||||
HLabeledItem {
|
||||
|
|
|
@ -40,7 +40,6 @@ HTile {
|
|||
py.callClientCoro(model.id, "set_presence", [presence])
|
||||
}
|
||||
|
||||
|
||||
backgroundColor: theme.mainPane.listView.account.background
|
||||
|
||||
contentItem: ContentRow {
|
||||
|
|
|
@ -10,7 +10,6 @@ Rectangle {
|
|||
readonly property alias addAccountButton: addAccountButton
|
||||
readonly property alias filterField: filterField
|
||||
|
||||
|
||||
// Hide filter field overflowing for a sec on size changes
|
||||
clip: true
|
||||
implicitHeight: theme.baseElementsHeight
|
||||
|
@ -69,7 +68,6 @@ Rectangle {
|
|||
if (window.settings.RoomList.escape_clears_filter) text = ""
|
||||
}
|
||||
|
||||
|
||||
Behavior on opacity { HNumberAnimation {} }
|
||||
|
||||
HShortcut {
|
||||
|
|
|
@ -22,7 +22,6 @@ HDrawer {
|
|||
bottomBar.filterField.forceActiveFocus()
|
||||
}
|
||||
|
||||
|
||||
saveName: "mainPane"
|
||||
background: Rectangle { color: theme.mainPane.background }
|
||||
requireDefaultSize: bottomBar.filterField.activeFocus
|
||||
|
|
|
@ -11,7 +11,6 @@ HLabel {
|
|||
property bool localUnreads: false
|
||||
property bool localHighlights: false
|
||||
|
||||
|
||||
text:
|
||||
unreads >= 1000000 ? Math.floor(unreads / 1000000) + "M" :
|
||||
unreads >= 1000 ? Math.floor(unreads / 1000) + "K" :
|
||||
|
|
|
@ -29,7 +29,6 @@ HTile {
|
|||
readonly property QtObject lastEvent:
|
||||
eventModel.count > 0 ? eventModel.get(0) : null
|
||||
|
||||
|
||||
backgroundColor: theme.mainPane.listView.room.background
|
||||
leftPadding: theme.spacing * 2
|
||||
rightPadding: theme.spacing
|
||||
|
|
|
@ -148,7 +148,6 @@ HListView {
|
|||
return false
|
||||
}
|
||||
|
||||
|
||||
highlightRangeMode:
|
||||
keepListCentered ? ListView.ApplyRange : ListView.NoHighlightRange
|
||||
|
||||
|
|
|
@ -38,7 +38,6 @@ QtObject {
|
|||
py.callCoro("models.ensure_exists_from_qml", [modelId])
|
||||
}
|
||||
|
||||
|
||||
function get(...modelId) {
|
||||
if (modelId.length === 1) modelId = modelId[0]
|
||||
|
||||
|
|
|
@ -66,7 +66,6 @@ HLoader {
|
|||
if (mainPane.collapse) mainPane.close()
|
||||
}
|
||||
|
||||
|
||||
clip: appearAnimation.running
|
||||
|
||||
onLoaded: { takeFocus(); appearAnimation.restart() }
|
||||
|
|
|
@ -64,7 +64,6 @@ HFlickableColumnPage {
|
|||
fileDialog.file = ""
|
||||
}
|
||||
|
||||
|
||||
footer: AutoDirectionLayout {
|
||||
ApplyButton {
|
||||
id: saveButton
|
||||
|
|
|
@ -12,7 +12,6 @@ HPage {
|
|||
|
||||
property string userId
|
||||
|
||||
|
||||
HTabbedBox {
|
||||
anchors.centerIn: parent
|
||||
width: Math.min(implicitWidth, page.availableWidth)
|
||||
|
|
|
@ -18,7 +18,6 @@ HTile {
|
|||
signal renameRequest(string name)
|
||||
signal deleteRequest()
|
||||
|
||||
|
||||
backgroundColor: "transparent"
|
||||
compact: false
|
||||
|
||||
|
|
|
@ -16,7 +16,6 @@ HRowLayout {
|
|||
readonly property int sectionTotalCount:
|
||||
deviceList.sectionItemCounts[section] || 0
|
||||
|
||||
|
||||
HCheckBox {
|
||||
id: checkBox
|
||||
padding: theme.spacing
|
||||
|
|
|
@ -13,7 +13,6 @@ HFlickableColumnPage {
|
|||
|
||||
function takeFocus() { exportButton.forceActiveFocus() }
|
||||
|
||||
|
||||
footer: AutoDirectionLayout {
|
||||
GroupButton {
|
||||
id: exportButton
|
||||
|
|
|
@ -89,7 +89,6 @@ HColumnPage {
|
|||
return counts
|
||||
}
|
||||
|
||||
|
||||
enabled: ModelStore.get("accounts").find(userId).presence !== "offline"
|
||||
contentHeight: Math.min(
|
||||
window.height,
|
||||
|
|
|
@ -9,7 +9,6 @@ import "../../Base/Buttons"
|
|||
HFlickableColumnPage {
|
||||
function takeFocus() { registerButton.forceActiveFocus() }
|
||||
|
||||
|
||||
footer: AutoDirectionLayout {
|
||||
ApplyButton {
|
||||
id: registerButton
|
||||
|
|
|
@ -9,7 +9,6 @@ import "../../Base/Buttons"
|
|||
HFlickableColumnPage {
|
||||
function takeFocus() { resetButton.forceActiveFocus() }
|
||||
|
||||
|
||||
footer: AutoDirectionLayout {
|
||||
ApplyButton {
|
||||
id: resetButton
|
||||
|
|
|
@ -91,7 +91,6 @@ HBox {
|
|||
})
|
||||
}
|
||||
|
||||
|
||||
padding: 0
|
||||
implicitWidth: theme.controls.box.defaultWidth * 1.25
|
||||
contentHeight: window.height
|
||||
|
|
|
@ -11,7 +11,6 @@ HTile {
|
|||
|
||||
property string loadingIconStep
|
||||
|
||||
|
||||
backgroundColor: "transparent"
|
||||
contentOpacity: model.status === "Failed" ? 0.3 : 1 // XXX
|
||||
rightPadding: 0
|
||||
|
|
|
@ -62,7 +62,6 @@ HFlickableColumnPage {
|
|||
page.loginFutureId = ""
|
||||
}
|
||||
|
||||
|
||||
flickable.topMargin: theme.spacing * 1.5
|
||||
flickable.bottomMargin: flickable.topMargin
|
||||
|
||||
|
|
|
@ -41,7 +41,6 @@ SignInBase {
|
|||
)
|
||||
}
|
||||
|
||||
|
||||
applyButton.enabled: idField.item.text.trim() && passField.item.text
|
||||
applyButton.onClicked: page.signIn()
|
||||
|
||||
|
|
|
@ -36,7 +36,6 @@ SignInBase {
|
|||
page.exitRequested()
|
||||
}
|
||||
|
||||
|
||||
implicitWidth: theme.controls.box.defaultWidth * 1.25
|
||||
applyButton.text: qsTr("Waiting")
|
||||
applyButton.loading: true
|
||||
|
|
|
@ -10,7 +10,6 @@ HPage {
|
|||
|
||||
property string userId
|
||||
|
||||
|
||||
HTabbedBox {
|
||||
anchors.centerIn: parent
|
||||
width: Math.min(implicitWidth, page.availableWidth)
|
||||
|
|
|
@ -50,7 +50,6 @@ HFlickableColumnPage {
|
|||
pageLoader.showPrevious()
|
||||
}
|
||||
|
||||
|
||||
enabled: account && account.presence !== "offline"
|
||||
|
||||
footer: AutoDirectionLayout {
|
||||
|
|
|
@ -8,7 +8,6 @@ import "../../Base"
|
|||
HUserAvatar {
|
||||
property QtObject account
|
||||
|
||||
|
||||
clientUserId: userId
|
||||
displayName: account ? account.display_name : ""
|
||||
mxc: account ? account.avatar_url : ""
|
||||
|
|
|
@ -61,7 +61,6 @@ HFlickableColumnPage {
|
|||
pageLoader.showPrevious()
|
||||
}
|
||||
|
||||
|
||||
enabled: account && account.presence !== "offline"
|
||||
|
||||
footer: AutoDirectionLayout {
|
||||
|
|
|
@ -54,7 +54,6 @@ HFlickableColumnPage {
|
|||
pageLoader.showPrevious()
|
||||
}
|
||||
|
||||
|
||||
enabled: account && account.presence !== "offline"
|
||||
|
||||
footer: AutoDirectionLayout {
|
||||
|
|
|
@ -85,7 +85,6 @@ HListView {
|
|||
open = false
|
||||
}
|
||||
|
||||
|
||||
visible: opacity > 0
|
||||
opacity: open && count ? 1 : 0
|
||||
bottomMargin: theme.spacing / 2
|
||||
|
|
|
@ -14,7 +14,6 @@ Rectangle {
|
|||
property alias buttonModel: bannerRepeater.model
|
||||
property var buttonCallbacks: []
|
||||
|
||||
|
||||
implicitHeight: childrenRect.height
|
||||
color: theme.controls.box.background
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@ Banner {
|
|||
property string inviterName: chat.roomInfo.inviter_name
|
||||
property string inviterAvatar: chat.roomInfo.inviter_avatar
|
||||
|
||||
|
||||
color: theme.chat.inviteBanner.background
|
||||
|
||||
avatar.userId: inviterId
|
||||
|
|
|
@ -46,7 +46,6 @@ Item {
|
|||
replyToDisplayName = ""
|
||||
}
|
||||
|
||||
|
||||
onFocusChanged: if (focus && loader.item) loader.item.composer.takeFocus()
|
||||
onReadyChanged: longLoading = false
|
||||
|
||||
|
|
|
@ -30,7 +30,6 @@ HColumnPage {
|
|||
anchors.fill: parent
|
||||
}
|
||||
|
||||
|
||||
padding: 0
|
||||
column.spacing: 0
|
||||
|
||||
|
|
|
@ -16,7 +16,6 @@ Rectangle {
|
|||
|
||||
function takeFocus() { messageArea.forceActiveFocus() }
|
||||
|
||||
|
||||
implicitHeight: Math.max(theme.baseElementsHeight, row.implicitHeight)
|
||||
color: theme.chat.composer.background
|
||||
|
||||
|
|
|
@ -125,7 +125,6 @@ HTextArea {
|
|||
clearReplyTo()
|
||||
}
|
||||
|
||||
|
||||
saveName: "composer"
|
||||
saveId: [chat.roomId, chat.userId]
|
||||
|
||||
|
|
|
@ -30,7 +30,6 @@ HColumnLayout {
|
|||
)
|
||||
}
|
||||
|
||||
|
||||
Behavior on height { HNumberAnimation {} }
|
||||
|
||||
DelegateTransitionFixer {}
|
||||
|
|
|
@ -13,7 +13,6 @@ Rectangle {
|
|||
|
||||
readonly property alias transferCount: transferList.count
|
||||
|
||||
|
||||
implicitWidth: 800
|
||||
implicitHeight: firstDelegate ? firstDelegate.height : 0
|
||||
color: theme.chat.fileTransfer.background
|
||||
|
|
|
@ -11,7 +11,6 @@ Rectangle {
|
|||
readonly property alias icon: icon
|
||||
readonly property alias label: label
|
||||
|
||||
|
||||
implicitHeight: label.text ? rowLayout.height : 0
|
||||
opacity: implicitHeight ? 1 : 0
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@ InfoBar {
|
|||
|
||||
signal cancel()
|
||||
|
||||
|
||||
color: theme.chat.replyBar.background
|
||||
icon.svgName: "reply-to"
|
||||
label.textFormat: Text.StyledText
|
||||
|
|
|
@ -16,7 +16,6 @@ Rectangle {
|
|||
readonly property bool center:
|
||||
showLeftButton || window.settings.Chat.always_center_header
|
||||
|
||||
|
||||
implicitHeight: theme.baseElementsHeight
|
||||
color: theme.chat.roomHeader.background
|
||||
|
||||
|
|
|
@ -25,7 +25,6 @@ HFlickableColumnPage {
|
|||
stackView.pop()
|
||||
}
|
||||
|
||||
|
||||
footer: AutoDirectionLayout {
|
||||
PositiveButton {
|
||||
text: qsTr("They're the same")
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user