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