From eed2cc4818160e36cf6b0bf5f785575338b6d133 Mon Sep 17 00:00:00 2001 From: miruka Date: Sun, 15 Nov 2020 11:54:30 -0400 Subject: [PATCH] Remove double blank lines from QML files --- src/gui/Base/AutoDirectionLayout.qml | 1 - src/gui/Base/Buttons/FieldCopyButton.qml | 1 - src/gui/Base/DelegateTransitionFixer.qml | 1 - src/gui/Base/HAvatar.qml | 1 - src/gui/Base/HBottomFocusLine.qml | 2 -- src/gui/Base/HButton.qml | 1 - src/gui/Base/HButtonBackground.qml | 1 - src/gui/Base/HButtonContent.qml | 1 - src/gui/Base/HCheckBox.qml | 1 - src/gui/Base/HCircleProgressBar.qml | 2 -- src/gui/Base/HColorAnimation.qml | 1 - src/gui/Base/HColumnPage.qml | 1 - src/gui/Base/HDrawer.qml | 1 - src/gui/Base/HFlickableColumnPage.qml | 1 - src/gui/Base/HGridView.qml | 3 --- src/gui/Base/HIcon.qml | 1 - src/gui/Base/HImage.qml | 1 - src/gui/Base/HKineticScrollingDisabler.qml | 1 - src/gui/Base/HLabeledItem.qml | 1 - src/gui/Base/HListView.qml | 1 - src/gui/Base/HMenu.qml | 1 - src/gui/Base/HMenuItem.qml | 1 - src/gui/Base/HMenuItemPopupSpawner.qml | 1 - src/gui/Base/HMxcImage.qml | 1 - src/gui/Base/HNoticePage.qml | 1 - src/gui/Base/HNumberAnimation.qml | 1 - src/gui/Base/HPage.qml | 1 - src/gui/Base/HPopup.qml | 1 - src/gui/Base/HProgressBar.qml | 1 - src/gui/Base/HRectangleBottomBorder.qml | 1 - src/gui/Base/HRepeater.qml | 1 - src/gui/Base/HRoomAvatar.qml | 1 - src/gui/Base/HSelectableLabel.qml | 1 - src/gui/Base/HShortcut.qml | 1 - src/gui/Base/HSlider.qml | 1 - src/gui/Base/HSwipeView.qml | 2 -- src/gui/Base/HTabButton.qml | 1 - src/gui/Base/HTabbedBox.qml | 1 - src/gui/Base/HTextArea.qml | 2 -- src/gui/Base/HTextContextMenu.qml | 1 - src/gui/Base/HTextField.qml | 3 --- src/gui/Base/HTile/ContentRow.qml | 1 - src/gui/Base/HTile/HTile.qml | 2 -- src/gui/Base/HTile/SubtitleLabel.qml | 1 - src/gui/Base/HTile/TitleRightInfoLabel.qml | 1 - src/gui/Base/HToolTip.qml | 2 -- src/gui/Base/HUserAvatar.qml | 1 - src/gui/Base/MediaPlayer/AudioPlayer.qml | 1 - src/gui/Base/MediaPlayer/OSD.qml | 1 - src/gui/Base/MediaPlayer/VideoPlayer.qml | 3 --- src/gui/Base/MultiviewPane.qml | 1 - src/gui/Base/PowerLevelControl.qml | 1 - src/gui/Base/PresenceOrb.qml | 1 - src/gui/DebugConsole.qml | 1 - src/gui/Dialogs/ExportKeys.qml | 1 - src/gui/Dialogs/HFileDialogOpener.qml | 1 - src/gui/Dialogs/ImportKeys.qml | 1 - src/gui/Dialogs/SendFilePicker.qml | 1 - src/gui/IdleManager.qml | 1 - src/gui/MainPane/AccountBar.qml | 2 -- src/gui/MainPane/AccountContextMenu.qml | 1 - src/gui/MainPane/AccountDelegate.qml | 1 - src/gui/MainPane/BottomBar.qml | 2 -- src/gui/MainPane/MainPane.qml | 1 - src/gui/MainPane/MessageIndicator.qml | 1 - src/gui/MainPane/RoomDelegate.qml | 1 - src/gui/MainPane/RoomList.qml | 1 - src/gui/ModelStore.qml | 1 - src/gui/PageLoader.qml | 1 - src/gui/Pages/AccountSettings/Account.qml | 1 - src/gui/Pages/AccountSettings/AccountSettings.qml | 1 - src/gui/Pages/AccountSettings/DeviceDelegate.qml | 1 - src/gui/Pages/AccountSettings/DeviceSection.qml | 1 - src/gui/Pages/AccountSettings/Encryption.qml | 1 - src/gui/Pages/AccountSettings/Sessions.qml | 1 - src/gui/Pages/AddAccount/Register.qml | 1 - src/gui/Pages/AddAccount/Reset.qml | 1 - src/gui/Pages/AddAccount/ServerBrowser.qml | 1 - src/gui/Pages/AddAccount/ServerDelegate.qml | 1 - src/gui/Pages/AddAccount/SignInBase.qml | 1 - src/gui/Pages/AddAccount/SignInPassword.qml | 1 - src/gui/Pages/AddAccount/SignInSso.qml | 1 - src/gui/Pages/AddChat/AddChat.qml | 1 - src/gui/Pages/AddChat/CreateRoom.qml | 1 - src/gui/Pages/AddChat/CurrentUserAvatar.qml | 1 - src/gui/Pages/AddChat/DirectChat.qml | 1 - src/gui/Pages/AddChat/JoinRoom.qml | 1 - src/gui/Pages/Chat/AutoCompletion/UserAutoCompletion.qml | 1 - src/gui/Pages/Chat/Banners/Banner.qml | 1 - src/gui/Pages/Chat/Banners/InviteBanner.qml | 1 - src/gui/Pages/Chat/Chat.qml | 1 - src/gui/Pages/Chat/ChatPage.qml | 1 - src/gui/Pages/Chat/Composer/Composer.qml | 1 - src/gui/Pages/Chat/Composer/MessageArea.qml | 1 - src/gui/Pages/Chat/FileTransfer/Transfer.qml | 1 - src/gui/Pages/Chat/FileTransfer/TransferList.qml | 1 - src/gui/Pages/Chat/InfoBar.qml | 1 - src/gui/Pages/Chat/ReplyBar.qml | 1 - src/gui/Pages/Chat/RoomHeader.qml | 1 - src/gui/Pages/Chat/RoomPane/MemberView/DeviceVerification.qml | 1 - .../Pages/Chat/RoomPane/MemberView/MemberDeviceDelegate.qml | 2 -- src/gui/Pages/Chat/RoomPane/MemberView/MemberProfile.qml | 1 - src/gui/Pages/Chat/RoomPane/MemberView/MemberView.qml | 2 -- src/gui/Pages/Chat/RoomPane/RoomPane.qml | 2 -- src/gui/Pages/Chat/RoomPane/SettingsView.qml | 1 - src/gui/Pages/Chat/Timeline/EventContent.qml | 1 - src/gui/Pages/Chat/Timeline/EventContextMenu.qml | 1 - src/gui/Pages/Chat/Timeline/EventDelegate.qml | 2 -- src/gui/Pages/Chat/Timeline/EventFile.qml | 1 - src/gui/Pages/Chat/Timeline/EventImage.qml | 2 -- src/gui/Pages/Chat/Timeline/EventList.qml | 3 --- src/gui/Pages/Chat/Timeline/EventMediaLoader.qml | 1 - src/gui/Pages/Chat/TypingMembersBar.qml | 1 - src/gui/Popups/ClearMessagesPopup.qml | 1 - src/gui/Popups/ConfirmClipboardUploadPopup.qml | 1 - src/gui/Popups/ConfirmUploadPopup.qml | 1 - src/gui/Popups/DeleteDevicesPopup.qml | 2 -- src/gui/Popups/ForgetRoomPopup.qml | 1 - src/gui/Popups/HColumnPopup.qml | 1 - src/gui/Popups/HFlickableColumnPopup.qml | 1 - src/gui/Popups/ImageViewerPopup/ImageViewerPopup.qml | 1 - src/gui/Popups/ImageViewerPopup/ViewerButtons.qml | 1 - src/gui/Popups/ImageViewerPopup/ViewerCanvas.qml | 1 - src/gui/Popups/ImageViewerPopup/ViewerInfo.qml | 1 - src/gui/Popups/InvalidAccessTokenPopup.qml | 1 - src/gui/Popups/InviteToRoomPopup.qml | 1 - src/gui/Popups/KeyVerificationPopup.qml | 1 - src/gui/Popups/LeaveRoomPopup.qml | 1 - src/gui/Popups/PasswordPopup.qml | 1 - src/gui/Popups/RedactPopup.qml | 1 - src/gui/Popups/RemoveMemberPopup.qml | 2 -- src/gui/Popups/SignOutPopup.qml | 1 - src/gui/Popups/UnexpectedErrorPopup.qml | 1 - src/gui/PythonBridge/PythonRootBridge.qml | 1 - src/gui/ShortcutBundles/FlickShortcuts.qml | 1 - src/gui/ShortcutBundles/TabShortcuts.qml | 1 - src/gui/TrayIcon.qml | 1 - src/gui/UI.qml | 1 - src/gui/Window.qml | 1 - 139 files changed, 162 deletions(-) diff --git a/src/gui/Base/AutoDirectionLayout.qml b/src/gui/Base/AutoDirectionLayout.qml index a36286e1..78e97692 100644 --- a/src/gui/Base/AutoDirectionLayout.qml +++ b/src/gui/Base/AutoDirectionLayout.qml @@ -10,7 +10,6 @@ HGridLayout { readonly property bool vertical: flow === HGridLayout.TopToBottom - flow: width >= summedImplicitWidth ? HGridLayout.LeftToRight : diff --git a/src/gui/Base/Buttons/FieldCopyButton.qml b/src/gui/Base/Buttons/FieldCopyButton.qml index 1944ee6b..c0f57015 100644 --- a/src/gui/Base/Buttons/FieldCopyButton.qml +++ b/src/gui/Base/Buttons/FieldCopyButton.qml @@ -8,7 +8,6 @@ import ".." HButton { property Item textControl // HTextField or HTextArea - icon.name: "copy-text" iconItem.small: true diff --git a/src/gui/Base/DelegateTransitionFixer.qml b/src/gui/Base/DelegateTransitionFixer.qml index cbf8b508..8ed4f9f7 100644 --- a/src/gui/Base/DelegateTransitionFixer.qml +++ b/src/gui/Base/DelegateTransitionFixer.qml @@ -24,7 +24,6 @@ Timer { to: 1 } - interval: theme.animationDuration * 2 running: true onTriggered: { diff --git a/src/gui/Base/HAvatar.qml b/src/gui/Base/HAvatar.qml index 0877e188..818a95f6 100644 --- a/src/gui/Base/HAvatar.qml +++ b/src/gui/Base/HAvatar.qml @@ -23,7 +23,6 @@ Rectangle { readonly property alias hovered: hoverHandler.hovered readonly property alias circleRadius: avatarImage.circleRadius - implicitWidth: implicitHeight implicitHeight: compact ? diff --git a/src/gui/Base/HBottomFocusLine.qml b/src/gui/Base/HBottomFocusLine.qml index a99a99f4..b4381637 100644 --- a/src/gui/Base/HBottomFocusLine.qml +++ b/src/gui/Base/HBottomFocusLine.qml @@ -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 diff --git a/src/gui/Base/HButton.qml b/src/gui/Base/HButton.qml index 9ca3c001..ce0e1828 100644 --- a/src/gui/Base/HButton.qml +++ b/src/gui/Base/HButton.qml @@ -29,7 +29,6 @@ Button { visible: text && hovered } - enabled: ! button.loading spacing: theme.spacing topPadding: padded ? spacing * (circle ? 1 : 0.5) : 0 diff --git a/src/gui/Base/HButtonBackground.qml b/src/gui/Base/HButtonBackground.qml index 96793b26..65b2b0cb 100644 --- a/src/gui/Base/HButtonBackground.qml +++ b/src/gui/Base/HButtonBackground.qml @@ -9,7 +9,6 @@ Rectangle { property QtObject buttonTheme property bool useFocusLine: true - color: buttonTheme.background opacity: button.loading ? theme.loadingElementsOpacity : diff --git a/src/gui/Base/HButtonContent.qml b/src/gui/Base/HButtonContent.qml index 246cde7c..2101db9f 100644 --- a/src/gui/Base/HButtonContent.qml +++ b/src/gui/Base/HButtonContent.qml @@ -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 diff --git a/src/gui/Base/HCheckBox.qml b/src/gui/Base/HCheckBox.qml index a089a743..ae547ed2 100644 --- a/src/gui/Base/HCheckBox.qml +++ b/src/gui/Base/HCheckBox.qml @@ -17,7 +17,6 @@ CheckBox { function reset() { checked = defaultChecked } - checked: defaultChecked spacing: contentItem.visible ? theme.spacing : 0 padding: 0 diff --git a/src/gui/Base/HCircleProgressBar.qml b/src/gui/Base/HCircleProgressBar.qml index 394c57c2..9f538a77 100644 --- a/src/gui/Base/HCircleProgressBar.qml +++ b/src/gui/Base/HCircleProgressBar.qml @@ -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 diff --git a/src/gui/Base/HColorAnimation.qml b/src/gui/Base/HColorAnimation.qml index 1be76823..c299ec80 100644 --- a/src/gui/Base/HColorAnimation.qml +++ b/src/gui/Base/HColorAnimation.qml @@ -6,6 +6,5 @@ import QtQuick 2.12 ColorAnimation { property real factor: 1.0 - duration: theme.animationDuration * factor } diff --git a/src/gui/Base/HColumnPage.qml b/src/gui/Base/HColumnPage.qml index 4a1baddb..280d01ac 100644 --- a/src/gui/Base/HColumnPage.qml +++ b/src/gui/Base/HColumnPage.qml @@ -10,7 +10,6 @@ HPage { property alias column: column - implicitWidth: theme.controls.box.defaultWidth contentHeight: column.childrenRect.height diff --git a/src/gui/Base/HDrawer.qml b/src/gui/Base/HDrawer.qml index 71216a21..3432bbc5 100644 --- a/src/gui/Base/HDrawer.qml +++ b/src/gui/Base/HDrawer.qml @@ -67,7 +67,6 @@ Drawer { readonly property bool vertical: ! horizontal - implicitWidth: horizontal ? calculatedSize : parent.width implicitHeight: vertical ? calculatedSize : parent.height diff --git a/src/gui/Base/HFlickableColumnPage.qml b/src/gui/Base/HFlickableColumnPage.qml index 5c488c93..651c5738 100644 --- a/src/gui/Base/HFlickableColumnPage.qml +++ b/src/gui/Base/HFlickableColumnPage.qml @@ -17,7 +17,6 @@ HPage { property bool enableFlickShortcuts: SwipeView ? SwipeView.isCurrentItem : true - implicitWidth: theme.controls.box.defaultWidth implicitHeight: contentHeight + implicitHeaderHeight + implicitFooterHeight contentHeight: diff --git a/src/gui/Base/HGridView.qml b/src/gui/Base/HGridView.qml index 7f4ff57c..a66a45b0 100644 --- a/src/gui/Base/HGridView.qml +++ b/src/gui/Base/HGridView.qml @@ -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 } diff --git a/src/gui/Base/HIcon.qml b/src/gui/Base/HIcon.qml index d12dfb93..98869b12 100644 --- a/src/gui/Base/HIcon.qml +++ b/src/gui/Base/HIcon.qml @@ -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 diff --git a/src/gui/Base/HImage.qml b/src/gui/Base/HImage.qml index ceffc67d..e860c729 100644 --- a/src/gui/Base/HImage.qml +++ b/src/gui/Base/HImage.qml @@ -44,7 +44,6 @@ Image { source = oldSource } - autoTransform: true asynchronous: true fillMode: Image.PreserveAspectFit diff --git a/src/gui/Base/HKineticScrollingDisabler.qml b/src/gui/Base/HKineticScrollingDisabler.qml index 540b3cf7..fc703ba9 100644 --- a/src/gui/Base/HKineticScrollingDisabler.qml +++ b/src/gui/Base/HKineticScrollingDisabler.qml @@ -63,7 +63,6 @@ MouseArea { } } - enabled: ! window.settings.Scrolling.kinetic propagateComposedEvents: true acceptedButtons: Qt.NoButton diff --git a/src/gui/Base/HLabeledItem.qml b/src/gui/Base/HLabeledItem.qml index bddcee09..d028e076 100644 --- a/src/gui/Base/HLabeledItem.qml +++ b/src/gui/Base/HLabeledItem.qml @@ -14,7 +14,6 @@ HColumnLayout { readonly property alias label: label readonly property alias errorLabel: errorLabel - spacing: theme.spacing / 2 HRowLayout { diff --git a/src/gui/Base/HListView.qml b/src/gui/Base/HListView.qml index 6870b1ed..32c88df5 100644 --- a/src/gui/Base/HListView.qml +++ b/src/gui/Base/HListView.qml @@ -78,7 +78,6 @@ ListView { ) } - currentIndex: defaultCurrentIndex keyNavigationWraps: true highlightMoveDuration: theme.animationDuration diff --git a/src/gui/Base/HMenu.qml b/src/gui/Base/HMenu.qml index b2632be7..6c1328a8 100644 --- a/src/gui/Base/HMenu.qml +++ b/src/gui/Base/HMenu.qml @@ -17,7 +17,6 @@ Menu { readonly property string uuid: CppUtils.uuid() - modal: true dim: false padding: theme.controls.menu.borderWidth diff --git a/src/gui/Base/HMenuItem.qml b/src/gui/Base/HMenuItem.qml index 19f57562..fa36cf20 100644 --- a/src/gui/Base/HMenuItem.qml +++ b/src/gui/Base/HMenuItem.qml @@ -10,7 +10,6 @@ MenuItem { readonly property alias iconItem: contentItem.icon readonly property alias label: contentItem.label - spacing: theme.spacing leftPadding: spacing rightPadding: leftPadding diff --git a/src/gui/Base/HMenuItemPopupSpawner.qml b/src/gui/Base/HMenuItemPopupSpawner.qml index 20f45633..9a9dc994 100644 --- a/src/gui/Base/HMenuItemPopupSpawner.qml +++ b/src/gui/Base/HMenuItemPopupSpawner.qml @@ -9,7 +9,6 @@ HMenuItem { property bool autoDestruct: true property var properties: ({}) - onTriggered: { menu.focusOnClosed = null diff --git a/src/gui/Base/HMxcImage.qml b/src/gui/Base/HMxcImage.qml index 073d0901..46473389 100644 --- a/src/gui/Base/HMxcImage.qml +++ b/src/gui/Base/HMxcImage.qml @@ -59,7 +59,6 @@ HImage { ) } - source: sourceOverride || (show ? cachedPath : "") showProgressBar: (isMxc && status === Image.Null) || status === Image.Loading diff --git a/src/gui/Base/HNoticePage.qml b/src/gui/Base/HNoticePage.qml index 5f4c24ad..c079747d 100644 --- a/src/gui/Base/HNoticePage.qml +++ b/src/gui/Base/HNoticePage.qml @@ -12,7 +12,6 @@ HRowLayout { property alias backgroundColor: noticeLabelBackground.color property alias radius: noticeLabelBackground.radius - HLabel { id: noticeLabel horizontalAlignment: Text.AlignHCenter diff --git a/src/gui/Base/HNumberAnimation.qml b/src/gui/Base/HNumberAnimation.qml index 26c6cace..2663110e 100644 --- a/src/gui/Base/HNumberAnimation.qml +++ b/src/gui/Base/HNumberAnimation.qml @@ -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 diff --git a/src/gui/Base/HPage.qml b/src/gui/Base/HPage.qml index 54161e64..41e95bbe 100644 --- a/src/gui/Base/HPage.qml +++ b/src/gui/Base/HPage.qml @@ -19,7 +19,6 @@ Page { signal keyboardAccept() signal keyboardCancel() - padding: currentSpacing < theme.spacing ? 0 : currentSpacing background: null diff --git a/src/gui/Base/HPopup.qml b/src/gui/Base/HPopup.qml index a3156f4f..9d54eba6 100644 --- a/src/gui/Base/HPopup.qml +++ b/src/gui/Base/HPopup.qml @@ -19,7 +19,6 @@ Popup { readonly property string uuid: CppUtils.uuid() - modal: true focus: true padding: 0 diff --git a/src/gui/Base/HProgressBar.qml b/src/gui/Base/HProgressBar.qml index 25b740b1..9536ae6e 100644 --- a/src/gui/Base/HProgressBar.qml +++ b/src/gui/Base/HProgressBar.qml @@ -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 diff --git a/src/gui/Base/HRectangleBottomBorder.qml b/src/gui/Base/HRectangleBottomBorder.qml index 0f45ee76..9fcb9d06 100644 --- a/src/gui/Base/HRectangleBottomBorder.qml +++ b/src/gui/Base/HRectangleBottomBorder.qml @@ -7,7 +7,6 @@ Item { property alias borderHeight: clipArea.height property alias color: borderRectangle.color - implicitWidth: rectangle.width implicitHeight: rectangle.height diff --git a/src/gui/Base/HRepeater.qml b/src/gui/Base/HRepeater.qml index 49ca82c0..4949ac09 100644 --- a/src/gui/Base/HRepeater.qml +++ b/src/gui/Base/HRepeater.qml @@ -4,7 +4,6 @@ import QtQuick.Controls 2.12 import QtQuick 2.12 - Repeater { id: repeater diff --git a/src/gui/Base/HRoomAvatar.qml b/src/gui/Base/HRoomAvatar.qml index c8a00217..43dc641a 100644 --- a/src/gui/Base/HRoomAvatar.qml +++ b/src/gui/Base/HRoomAvatar.qml @@ -7,7 +7,6 @@ HAvatar { property string roomId property string displayName - name: displayName[0] === "#" && displayName.length > 1 ? displayName.substring(1) : displayName diff --git a/src/gui/Base/HSelectableLabel.qml b/src/gui/Base/HSelectableLabel.qml index ccb4b60d..06f32a0e 100644 --- a/src/gui/Base/HSelectableLabel.qml +++ b/src/gui/Base/HSelectableLabel.qml @@ -23,7 +23,6 @@ TextEdit { label.selectAll() } - font.family: theme.fontFamily.sans font.pixelSize: theme.fontSize.normal color: theme.colors.text diff --git a/src/gui/Base/HShortcut.qml b/src/gui/Base/HShortcut.qml index 4e264065..527d4535 100644 --- a/src/gui/Base/HShortcut.qml +++ b/src/gui/Base/HShortcut.qml @@ -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 } diff --git a/src/gui/Base/HSlider.qml b/src/gui/Base/HSlider.qml index 01166cf1..67216b75 100644 --- a/src/gui/Base/HSlider.qml +++ b/src/gui/Base/HSlider.qml @@ -15,7 +15,6 @@ Slider { property alias toolTip: toolTip property alias mouseArea: mouseArea - leftPadding: 0 rightPadding: leftPadding topPadding: 0 diff --git a/src/gui/Base/HSwipeView.qml b/src/gui/Base/HSwipeView.qml index 4ef6e623..1fd4d886 100644 --- a/src/gui/Base/HSwipeView.qml +++ b/src/gui/Base/HSwipeView.qml @@ -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 diff --git a/src/gui/Base/HTabButton.qml b/src/gui/Base/HTabButton.qml index 9ca9f910..9a5dc214 100644 --- a/src/gui/Base/HTabButton.qml +++ b/src/gui/Base/HTabButton.qml @@ -27,7 +27,6 @@ TabButton { visible: text && hovered } - spacing: theme.spacing topPadding: spacing / 1.5 bottomPadding: topPadding diff --git a/src/gui/Base/HTabbedBox.qml b/src/gui/Base/HTabbedBox.qml index 6f8789b8..2ac9d21c 100644 --- a/src/gui/Base/HTabbedBox.qml +++ b/src/gui/Base/HTabbedBox.qml @@ -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) diff --git a/src/gui/Base/HTextArea.qml b/src/gui/Base/HTextArea.qml index 4583b23d..c509613c 100644 --- a/src/gui/Base/HTextArea.qml +++ b/src/gui/Base/HTextArea.qml @@ -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 diff --git a/src/gui/Base/HTextContextMenu.qml b/src/gui/Base/HTextContextMenu.qml index cde72905..a680cae5 100644 --- a/src/gui/Base/HTextContextMenu.qml +++ b/src/gui/Base/HTextContextMenu.qml @@ -26,7 +26,6 @@ HMenu { ) } - onClosed: control.persistentSelection = hadPersistentSelection Component.onDestruction: control.persistentSelection = hadPersistentSelection diff --git a/src/gui/Base/HTextField.qml b/src/gui/Base/HTextField.qml index b1762705..bd757bcc 100644 --- a/src/gui/Base/HTextField.qml +++ b/src/gui/Base/HTextField.qml @@ -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 {} } diff --git a/src/gui/Base/HTile/ContentRow.qml b/src/gui/Base/HTile/ContentRow.qml index 093a2e13..10e1eaaf 100644 --- a/src/gui/Base/HTile/ContentRow.qml +++ b/src/gui/Base/HTile/ContentRow.qml @@ -7,7 +7,6 @@ import ".." HRowLayout { property HTile tile - spacing: tile.spacing opacity: tile.contentOpacity } diff --git a/src/gui/Base/HTile/HTile.qml b/src/gui/Base/HTile/HTile.qml index 2f4718a0..c009e4a0 100644 --- a/src/gui/Base/HTile/HTile.qml +++ b/src/gui/Base/HTile/HTile.qml @@ -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 {} } diff --git a/src/gui/Base/HTile/SubtitleLabel.qml b/src/gui/Base/HTile/SubtitleLabel.qml index dcb5ebdd..e8ce2877 100644 --- a/src/gui/Base/HTile/SubtitleLabel.qml +++ b/src/gui/Base/HTile/SubtitleLabel.qml @@ -8,7 +8,6 @@ import ".." HLabel { property HTile tile - textFormat: Text.StyledText font.pixelSize: theme.fontSize.small verticalAlignment: Qt.AlignVCenter diff --git a/src/gui/Base/HTile/TitleRightInfoLabel.qml b/src/gui/Base/HTile/TitleRightInfoLabel.qml index b19532f1..70bf2913 100644 --- a/src/gui/Base/HTile/TitleRightInfoLabel.qml +++ b/src/gui/Base/HTile/TitleRightInfoLabel.qml @@ -9,7 +9,6 @@ HLabel { property HTile tile property int hideUnderWidth: 200 - font.pixelSize: theme.fontSize.small verticalAlignment: Qt.AlignVCenter color: theme.colors.halfDimText diff --git a/src/gui/Base/HToolTip.qml b/src/gui/Base/HToolTip.qml index 3c97b24c..1cf65282 100644 --- a/src/gui/Base/HToolTip.qml +++ b/src/gui/Base/HToolTip.qml @@ -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 diff --git a/src/gui/Base/HUserAvatar.qml b/src/gui/Base/HUserAvatar.qml index f5544ead..174cd243 100644 --- a/src/gui/Base/HUserAvatar.qml +++ b/src/gui/Base/HUserAvatar.qml @@ -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" diff --git a/src/gui/Base/MediaPlayer/AudioPlayer.qml b/src/gui/Base/MediaPlayer/AudioPlayer.qml index 6d66a375..41847ea2 100644 --- a/src/gui/Base/MediaPlayer/AudioPlayer.qml +++ b/src/gui/Base/MediaPlayer/AudioPlayer.qml @@ -9,7 +9,6 @@ OSD { property alias source: audioPlayer.source - audioOnly: true media: audioPlayer diff --git a/src/gui/Base/MediaPlayer/OSD.qml b/src/gui/Base/MediaPlayer/OSD.qml index ad6c14d1..fb0677f0 100644 --- a/src/gui/Base/MediaPlayer/OSD.qml +++ b/src/gui/Base/MediaPlayer/OSD.qml @@ -32,7 +32,6 @@ HColumnLayout { if (media.seekable) media.seek(pos * (savedDuration || boundPosition)) } - visible: osdScaleTransform.yScale > 0 transform: Scale { diff --git a/src/gui/Base/MediaPlayer/VideoPlayer.qml b/src/gui/Base/MediaPlayer/VideoPlayer.qml index a433af73..4a5c06cd 100644 --- a/src/gui/Base/MediaPlayer/VideoPlayer.qml +++ b/src/gui/Base/MediaPlayer/VideoPlayer.qml @@ -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 diff --git a/src/gui/Base/MultiviewPane.qml b/src/gui/Base/MultiviewPane.qml index 92d6bd1e..ad42205d 100644 --- a/src/gui/Base/MultiviewPane.qml +++ b/src/gui/Base/MultiviewPane.qml @@ -19,7 +19,6 @@ HDrawer { readonly property alias buttonRepeater: buttonRepeater readonly property alias swipeView: swipeView - defaultSize: buttonRepeater.count * buttonWidth minimumSize: buttonWidth diff --git a/src/gui/Base/PowerLevelControl.qml b/src/gui/Base/PowerLevelControl.qml index 033f4491..ffc4058d 100644 --- a/src/gui/Base/PowerLevelControl.qml +++ b/src/gui/Base/PowerLevelControl.qml @@ -25,7 +25,6 @@ AutoDirectionLayout { function reset() { field.reset() } - rowSpacing: theme.spacing onActiveFocusChanged: if (activeFocus) field.forceActiveFocus() diff --git a/src/gui/Base/PresenceOrb.qml b/src/gui/Base/PresenceOrb.qml index 8374143d..2d726d0b 100644 --- a/src/gui/Base/PresenceOrb.qml +++ b/src/gui/Base/PresenceOrb.qml @@ -6,7 +6,6 @@ import QtQuick 2.12 Rectangle { property string presence - implicitWidth: window.settings.General.compact ? theme.controls.presence.radius * 2 : diff --git a/src/gui/DebugConsole.qml b/src/gui/DebugConsole.qml index 81d956e2..8ec7467c 100644 --- a/src/gui/DebugConsole.qml +++ b/src/gui/DebugConsole.qml @@ -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 diff --git a/src/gui/Dialogs/ExportKeys.qml b/src/gui/Dialogs/ExportKeys.qml index c79a67cb..e9797bfc 100644 --- a/src/gui/Dialogs/ExportKeys.qml +++ b/src/gui/Dialogs/ExportKeys.qml @@ -24,7 +24,6 @@ HFileDialogOpener { }) } - fill: false dialog.title: qsTr("Save decryption keys file as...") dialog.fileMode: FileDialog.SaveFile diff --git a/src/gui/Dialogs/HFileDialogOpener.qml b/src/gui/Dialogs/HFileDialogOpener.qml index 180e4044..ecb58d21 100644 --- a/src/gui/Dialogs/HFileDialogOpener.qml +++ b/src/gui/Dialogs/HFileDialogOpener.qml @@ -26,7 +26,6 @@ Item { signal filesPicked(var files) signal cancelled() - anchors.fill: fill ? parent : undefined TapHandler { enabled: opener.enabled && fill; onTapped: fileDialog.open() } diff --git a/src/gui/Dialogs/ImportKeys.qml b/src/gui/Dialogs/ImportKeys.qml index 95cbfb0e..5ef15e40 100644 --- a/src/gui/Dialogs/ImportKeys.qml +++ b/src/gui/Dialogs/ImportKeys.qml @@ -10,7 +10,6 @@ HFileDialogOpener { property string userId: "" property string importFutureId: "" - fill: false dialog.title: qsTr("Select a decryption keys file to import") onFilePicked: { diff --git a/src/gui/Dialogs/SendFilePicker.qml b/src/gui/Dialogs/SendFilePicker.qml index 3a63f1ce..1f420605 100644 --- a/src/gui/Dialogs/SendFilePicker.qml +++ b/src/gui/Dialogs/SendFilePicker.qml @@ -12,7 +12,6 @@ HFileDialogOpener { signal replied() - fill: false dialog.title: qsTr("Select a file to send") dialog.fileMode: FileDialog.OpenFiles diff --git a/src/gui/IdleManager.qml b/src/gui/IdleManager.qml index 77c70d10..25350196 100644 --- a/src/gui/IdleManager.qml +++ b/src/gui/IdleManager.qml @@ -13,7 +13,6 @@ Timer { py.callClientCoro(userId, "set_presence", [presence, undefined, false]) } - interval: 1000 repeat: true running: diff --git a/src/gui/MainPane/AccountBar.qml b/src/gui/MainPane/AccountBar.qml index 4cbfc84b..ae5227bb 100644 --- a/src/gui/MainPane/AccountBar.qml +++ b/src/gui/MainPane/AccountBar.qml @@ -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: { diff --git a/src/gui/MainPane/AccountContextMenu.qml b/src/gui/MainPane/AccountContextMenu.qml index ee420884..ce976449 100644 --- a/src/gui/MainPane/AccountContextMenu.qml +++ b/src/gui/MainPane/AccountContextMenu.qml @@ -20,7 +20,6 @@ HMenu { py.callClientCoro(userId, "set_presence", [presence, statusMsg]) } - onOpened: statusText.forceActiveFocus() HLabeledItem { diff --git a/src/gui/MainPane/AccountDelegate.qml b/src/gui/MainPane/AccountDelegate.qml index 7c3d60ed..19dc3b5c 100644 --- a/src/gui/MainPane/AccountDelegate.qml +++ b/src/gui/MainPane/AccountDelegate.qml @@ -40,7 +40,6 @@ HTile { py.callClientCoro(model.id, "set_presence", [presence]) } - backgroundColor: theme.mainPane.listView.account.background contentItem: ContentRow { diff --git a/src/gui/MainPane/BottomBar.qml b/src/gui/MainPane/BottomBar.qml index 42ae2374..0f866674 100644 --- a/src/gui/MainPane/BottomBar.qml +++ b/src/gui/MainPane/BottomBar.qml @@ -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 { diff --git a/src/gui/MainPane/MainPane.qml b/src/gui/MainPane/MainPane.qml index 5a2dfd05..7e4b0de4 100644 --- a/src/gui/MainPane/MainPane.qml +++ b/src/gui/MainPane/MainPane.qml @@ -22,7 +22,6 @@ HDrawer { bottomBar.filterField.forceActiveFocus() } - saveName: "mainPane" background: Rectangle { color: theme.mainPane.background } requireDefaultSize: bottomBar.filterField.activeFocus diff --git a/src/gui/MainPane/MessageIndicator.qml b/src/gui/MainPane/MessageIndicator.qml index 04ee87f9..120a9aba 100644 --- a/src/gui/MainPane/MessageIndicator.qml +++ b/src/gui/MainPane/MessageIndicator.qml @@ -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" : diff --git a/src/gui/MainPane/RoomDelegate.qml b/src/gui/MainPane/RoomDelegate.qml index 730db110..5964dd60 100644 --- a/src/gui/MainPane/RoomDelegate.qml +++ b/src/gui/MainPane/RoomDelegate.qml @@ -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 diff --git a/src/gui/MainPane/RoomList.qml b/src/gui/MainPane/RoomList.qml index dc4e9e9c..ac47ab2f 100644 --- a/src/gui/MainPane/RoomList.qml +++ b/src/gui/MainPane/RoomList.qml @@ -148,7 +148,6 @@ HListView { return false } - highlightRangeMode: keepListCentered ? ListView.ApplyRange : ListView.NoHighlightRange diff --git a/src/gui/ModelStore.qml b/src/gui/ModelStore.qml index 1ef358d2..81f8b17b 100644 --- a/src/gui/ModelStore.qml +++ b/src/gui/ModelStore.qml @@ -38,7 +38,6 @@ QtObject { py.callCoro("models.ensure_exists_from_qml", [modelId]) } - function get(...modelId) { if (modelId.length === 1) modelId = modelId[0] diff --git a/src/gui/PageLoader.qml b/src/gui/PageLoader.qml index 400a6b3b..347f561c 100644 --- a/src/gui/PageLoader.qml +++ b/src/gui/PageLoader.qml @@ -66,7 +66,6 @@ HLoader { if (mainPane.collapse) mainPane.close() } - clip: appearAnimation.running onLoaded: { takeFocus(); appearAnimation.restart() } diff --git a/src/gui/Pages/AccountSettings/Account.qml b/src/gui/Pages/AccountSettings/Account.qml index 2df57667..5d875b68 100644 --- a/src/gui/Pages/AccountSettings/Account.qml +++ b/src/gui/Pages/AccountSettings/Account.qml @@ -64,7 +64,6 @@ HFlickableColumnPage { fileDialog.file = "" } - footer: AutoDirectionLayout { ApplyButton { id: saveButton diff --git a/src/gui/Pages/AccountSettings/AccountSettings.qml b/src/gui/Pages/AccountSettings/AccountSettings.qml index 1ba6a1a0..acfd0b31 100644 --- a/src/gui/Pages/AccountSettings/AccountSettings.qml +++ b/src/gui/Pages/AccountSettings/AccountSettings.qml @@ -12,7 +12,6 @@ HPage { property string userId - HTabbedBox { anchors.centerIn: parent width: Math.min(implicitWidth, page.availableWidth) diff --git a/src/gui/Pages/AccountSettings/DeviceDelegate.qml b/src/gui/Pages/AccountSettings/DeviceDelegate.qml index fbe5b18d..af2fada4 100644 --- a/src/gui/Pages/AccountSettings/DeviceDelegate.qml +++ b/src/gui/Pages/AccountSettings/DeviceDelegate.qml @@ -18,7 +18,6 @@ HTile { signal renameRequest(string name) signal deleteRequest() - backgroundColor: "transparent" compact: false diff --git a/src/gui/Pages/AccountSettings/DeviceSection.qml b/src/gui/Pages/AccountSettings/DeviceSection.qml index 9b296094..3528752b 100644 --- a/src/gui/Pages/AccountSettings/DeviceSection.qml +++ b/src/gui/Pages/AccountSettings/DeviceSection.qml @@ -16,7 +16,6 @@ HRowLayout { readonly property int sectionTotalCount: deviceList.sectionItemCounts[section] || 0 - HCheckBox { id: checkBox padding: theme.spacing diff --git a/src/gui/Pages/AccountSettings/Encryption.qml b/src/gui/Pages/AccountSettings/Encryption.qml index fe7ddcb8..80b6dc62 100644 --- a/src/gui/Pages/AccountSettings/Encryption.qml +++ b/src/gui/Pages/AccountSettings/Encryption.qml @@ -13,7 +13,6 @@ HFlickableColumnPage { function takeFocus() { exportButton.forceActiveFocus() } - footer: AutoDirectionLayout { GroupButton { id: exportButton diff --git a/src/gui/Pages/AccountSettings/Sessions.qml b/src/gui/Pages/AccountSettings/Sessions.qml index c79c87a3..20b7fe46 100644 --- a/src/gui/Pages/AccountSettings/Sessions.qml +++ b/src/gui/Pages/AccountSettings/Sessions.qml @@ -89,7 +89,6 @@ HColumnPage { return counts } - enabled: ModelStore.get("accounts").find(userId).presence !== "offline" contentHeight: Math.min( window.height, diff --git a/src/gui/Pages/AddAccount/Register.qml b/src/gui/Pages/AddAccount/Register.qml index f3044bef..b8f7cdbc 100644 --- a/src/gui/Pages/AddAccount/Register.qml +++ b/src/gui/Pages/AddAccount/Register.qml @@ -9,7 +9,6 @@ import "../../Base/Buttons" HFlickableColumnPage { function takeFocus() { registerButton.forceActiveFocus() } - footer: AutoDirectionLayout { ApplyButton { id: registerButton diff --git a/src/gui/Pages/AddAccount/Reset.qml b/src/gui/Pages/AddAccount/Reset.qml index 1fc44e16..7486014a 100644 --- a/src/gui/Pages/AddAccount/Reset.qml +++ b/src/gui/Pages/AddAccount/Reset.qml @@ -9,7 +9,6 @@ import "../../Base/Buttons" HFlickableColumnPage { function takeFocus() { resetButton.forceActiveFocus() } - footer: AutoDirectionLayout { ApplyButton { id: resetButton diff --git a/src/gui/Pages/AddAccount/ServerBrowser.qml b/src/gui/Pages/AddAccount/ServerBrowser.qml index bda55e2a..aa228329 100644 --- a/src/gui/Pages/AddAccount/ServerBrowser.qml +++ b/src/gui/Pages/AddAccount/ServerBrowser.qml @@ -91,7 +91,6 @@ HBox { }) } - padding: 0 implicitWidth: theme.controls.box.defaultWidth * 1.25 contentHeight: window.height diff --git a/src/gui/Pages/AddAccount/ServerDelegate.qml b/src/gui/Pages/AddAccount/ServerDelegate.qml index ce9f3c17..fec4d764 100644 --- a/src/gui/Pages/AddAccount/ServerDelegate.qml +++ b/src/gui/Pages/AddAccount/ServerDelegate.qml @@ -11,7 +11,6 @@ HTile { property string loadingIconStep - backgroundColor: "transparent" contentOpacity: model.status === "Failed" ? 0.3 : 1 // XXX rightPadding: 0 diff --git a/src/gui/Pages/AddAccount/SignInBase.qml b/src/gui/Pages/AddAccount/SignInBase.qml index 91901c9d..ab0433e1 100644 --- a/src/gui/Pages/AddAccount/SignInBase.qml +++ b/src/gui/Pages/AddAccount/SignInBase.qml @@ -62,7 +62,6 @@ HFlickableColumnPage { page.loginFutureId = "" } - flickable.topMargin: theme.spacing * 1.5 flickable.bottomMargin: flickable.topMargin diff --git a/src/gui/Pages/AddAccount/SignInPassword.qml b/src/gui/Pages/AddAccount/SignInPassword.qml index 00d89272..029f34d5 100644 --- a/src/gui/Pages/AddAccount/SignInPassword.qml +++ b/src/gui/Pages/AddAccount/SignInPassword.qml @@ -41,7 +41,6 @@ SignInBase { ) } - applyButton.enabled: idField.item.text.trim() && passField.item.text applyButton.onClicked: page.signIn() diff --git a/src/gui/Pages/AddAccount/SignInSso.qml b/src/gui/Pages/AddAccount/SignInSso.qml index 9183cb68..326a7eb4 100644 --- a/src/gui/Pages/AddAccount/SignInSso.qml +++ b/src/gui/Pages/AddAccount/SignInSso.qml @@ -36,7 +36,6 @@ SignInBase { page.exitRequested() } - implicitWidth: theme.controls.box.defaultWidth * 1.25 applyButton.text: qsTr("Waiting") applyButton.loading: true diff --git a/src/gui/Pages/AddChat/AddChat.qml b/src/gui/Pages/AddChat/AddChat.qml index 4ed86a78..83a5aabc 100644 --- a/src/gui/Pages/AddChat/AddChat.qml +++ b/src/gui/Pages/AddChat/AddChat.qml @@ -10,7 +10,6 @@ HPage { property string userId - HTabbedBox { anchors.centerIn: parent width: Math.min(implicitWidth, page.availableWidth) diff --git a/src/gui/Pages/AddChat/CreateRoom.qml b/src/gui/Pages/AddChat/CreateRoom.qml index 69511fc2..b0bc88ef 100644 --- a/src/gui/Pages/AddChat/CreateRoom.qml +++ b/src/gui/Pages/AddChat/CreateRoom.qml @@ -50,7 +50,6 @@ HFlickableColumnPage { pageLoader.showPrevious() } - enabled: account && account.presence !== "offline" footer: AutoDirectionLayout { diff --git a/src/gui/Pages/AddChat/CurrentUserAvatar.qml b/src/gui/Pages/AddChat/CurrentUserAvatar.qml index 73401b74..b6031eeb 100644 --- a/src/gui/Pages/AddChat/CurrentUserAvatar.qml +++ b/src/gui/Pages/AddChat/CurrentUserAvatar.qml @@ -8,7 +8,6 @@ import "../../Base" HUserAvatar { property QtObject account - clientUserId: userId displayName: account ? account.display_name : "" mxc: account ? account.avatar_url : "" diff --git a/src/gui/Pages/AddChat/DirectChat.qml b/src/gui/Pages/AddChat/DirectChat.qml index b7b0446c..9952cedc 100644 --- a/src/gui/Pages/AddChat/DirectChat.qml +++ b/src/gui/Pages/AddChat/DirectChat.qml @@ -61,7 +61,6 @@ HFlickableColumnPage { pageLoader.showPrevious() } - enabled: account && account.presence !== "offline" footer: AutoDirectionLayout { diff --git a/src/gui/Pages/AddChat/JoinRoom.qml b/src/gui/Pages/AddChat/JoinRoom.qml index 1b03486a..bdb7a381 100644 --- a/src/gui/Pages/AddChat/JoinRoom.qml +++ b/src/gui/Pages/AddChat/JoinRoom.qml @@ -54,7 +54,6 @@ HFlickableColumnPage { pageLoader.showPrevious() } - enabled: account && account.presence !== "offline" footer: AutoDirectionLayout { diff --git a/src/gui/Pages/Chat/AutoCompletion/UserAutoCompletion.qml b/src/gui/Pages/Chat/AutoCompletion/UserAutoCompletion.qml index cf44f566..b2a96439 100644 --- a/src/gui/Pages/Chat/AutoCompletion/UserAutoCompletion.qml +++ b/src/gui/Pages/Chat/AutoCompletion/UserAutoCompletion.qml @@ -85,7 +85,6 @@ HListView { open = false } - visible: opacity > 0 opacity: open && count ? 1 : 0 bottomMargin: theme.spacing / 2 diff --git a/src/gui/Pages/Chat/Banners/Banner.qml b/src/gui/Pages/Chat/Banners/Banner.qml index 998e2d0d..59d4c54c 100644 --- a/src/gui/Pages/Chat/Banners/Banner.qml +++ b/src/gui/Pages/Chat/Banners/Banner.qml @@ -14,7 +14,6 @@ Rectangle { property alias buttonModel: bannerRepeater.model property var buttonCallbacks: [] - implicitHeight: childrenRect.height color: theme.controls.box.background diff --git a/src/gui/Pages/Chat/Banners/InviteBanner.qml b/src/gui/Pages/Chat/Banners/InviteBanner.qml index 8136c379..411091b8 100644 --- a/src/gui/Pages/Chat/Banners/InviteBanner.qml +++ b/src/gui/Pages/Chat/Banners/InviteBanner.qml @@ -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 diff --git a/src/gui/Pages/Chat/Chat.qml b/src/gui/Pages/Chat/Chat.qml index f91927e9..1105f692 100644 --- a/src/gui/Pages/Chat/Chat.qml +++ b/src/gui/Pages/Chat/Chat.qml @@ -46,7 +46,6 @@ Item { replyToDisplayName = "" } - onFocusChanged: if (focus && loader.item) loader.item.composer.takeFocus() onReadyChanged: longLoading = false diff --git a/src/gui/Pages/Chat/ChatPage.qml b/src/gui/Pages/Chat/ChatPage.qml index 02966c77..54476f91 100644 --- a/src/gui/Pages/Chat/ChatPage.qml +++ b/src/gui/Pages/Chat/ChatPage.qml @@ -30,7 +30,6 @@ HColumnPage { anchors.fill: parent } - padding: 0 column.spacing: 0 diff --git a/src/gui/Pages/Chat/Composer/Composer.qml b/src/gui/Pages/Chat/Composer/Composer.qml index 39cd1491..5c96165d 100644 --- a/src/gui/Pages/Chat/Composer/Composer.qml +++ b/src/gui/Pages/Chat/Composer/Composer.qml @@ -16,7 +16,6 @@ Rectangle { function takeFocus() { messageArea.forceActiveFocus() } - implicitHeight: Math.max(theme.baseElementsHeight, row.implicitHeight) color: theme.chat.composer.background diff --git a/src/gui/Pages/Chat/Composer/MessageArea.qml b/src/gui/Pages/Chat/Composer/MessageArea.qml index 0fb0aa93..9324e5b0 100644 --- a/src/gui/Pages/Chat/Composer/MessageArea.qml +++ b/src/gui/Pages/Chat/Composer/MessageArea.qml @@ -125,7 +125,6 @@ HTextArea { clearReplyTo() } - saveName: "composer" saveId: [chat.roomId, chat.userId] diff --git a/src/gui/Pages/Chat/FileTransfer/Transfer.qml b/src/gui/Pages/Chat/FileTransfer/Transfer.qml index dfc2e37f..0197c93c 100644 --- a/src/gui/Pages/Chat/FileTransfer/Transfer.qml +++ b/src/gui/Pages/Chat/FileTransfer/Transfer.qml @@ -30,7 +30,6 @@ HColumnLayout { ) } - Behavior on height { HNumberAnimation {} } DelegateTransitionFixer {} diff --git a/src/gui/Pages/Chat/FileTransfer/TransferList.qml b/src/gui/Pages/Chat/FileTransfer/TransferList.qml index a3534264..c7c2571f 100644 --- a/src/gui/Pages/Chat/FileTransfer/TransferList.qml +++ b/src/gui/Pages/Chat/FileTransfer/TransferList.qml @@ -13,7 +13,6 @@ Rectangle { readonly property alias transferCount: transferList.count - implicitWidth: 800 implicitHeight: firstDelegate ? firstDelegate.height : 0 color: theme.chat.fileTransfer.background diff --git a/src/gui/Pages/Chat/InfoBar.qml b/src/gui/Pages/Chat/InfoBar.qml index f9bc4e57..8aeff234 100644 --- a/src/gui/Pages/Chat/InfoBar.qml +++ b/src/gui/Pages/Chat/InfoBar.qml @@ -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 diff --git a/src/gui/Pages/Chat/ReplyBar.qml b/src/gui/Pages/Chat/ReplyBar.qml index 11c25041..a550542b 100644 --- a/src/gui/Pages/Chat/ReplyBar.qml +++ b/src/gui/Pages/Chat/ReplyBar.qml @@ -12,7 +12,6 @@ InfoBar { signal cancel() - color: theme.chat.replyBar.background icon.svgName: "reply-to" label.textFormat: Text.StyledText diff --git a/src/gui/Pages/Chat/RoomHeader.qml b/src/gui/Pages/Chat/RoomHeader.qml index ed9ecfff..a8febce8 100644 --- a/src/gui/Pages/Chat/RoomHeader.qml +++ b/src/gui/Pages/Chat/RoomHeader.qml @@ -16,7 +16,6 @@ Rectangle { readonly property bool center: showLeftButton || window.settings.Chat.always_center_header - implicitHeight: theme.baseElementsHeight color: theme.chat.roomHeader.background diff --git a/src/gui/Pages/Chat/RoomPane/MemberView/DeviceVerification.qml b/src/gui/Pages/Chat/RoomPane/MemberView/DeviceVerification.qml index 7bc4eb49..7c2aaca4 100644 --- a/src/gui/Pages/Chat/RoomPane/MemberView/DeviceVerification.qml +++ b/src/gui/Pages/Chat/RoomPane/MemberView/DeviceVerification.qml @@ -25,7 +25,6 @@ HFlickableColumnPage { stackView.pop() } - footer: AutoDirectionLayout { PositiveButton { text: qsTr("They're the same") diff --git a/src/gui/Pages/Chat/RoomPane/MemberView/MemberDeviceDelegate.qml b/src/gui/Pages/Chat/RoomPane/MemberView/MemberDeviceDelegate.qml index 54956e8c..f6f15dff 100644 --- a/src/gui/Pages/Chat/RoomPane/MemberView/MemberDeviceDelegate.qml +++ b/src/gui/Pages/Chat/RoomPane/MemberView/MemberDeviceDelegate.qml @@ -10,7 +10,6 @@ import "../../../../Base/HTile" HTile { id: deviceTile - property string userId property string deviceOwner property string deviceOwnerDisplayName @@ -18,7 +17,6 @@ HTile { signal trustSet(bool trust) - backgroundColor: "transparent" rightPadding: theme.spacing / 2 compact: false diff --git a/src/gui/Pages/Chat/RoomPane/MemberView/MemberProfile.qml b/src/gui/Pages/Chat/RoomPane/MemberView/MemberProfile.qml index 0391ee2a..075b5af6 100644 --- a/src/gui/Pages/Chat/RoomPane/MemberView/MemberProfile.qml +++ b/src/gui/Pages/Chat/RoomPane/MemberView/MemberProfile.qml @@ -37,7 +37,6 @@ HListView { focusOnExit.forceActiveFocus() } - clip: true bottomMargin: theme.spacing model: ListModel {} diff --git a/src/gui/Pages/Chat/RoomPane/MemberView/MemberView.qml b/src/gui/Pages/Chat/RoomPane/MemberView/MemberView.qml index 62a571e0..e272735d 100644 --- a/src/gui/Pages/Chat/RoomPane/MemberView/MemberView.qml +++ b/src/gui/Pages/Chat/RoomPane/MemberView/MemberView.qml @@ -14,7 +14,6 @@ HColumnLayout { readonly property alias viewDepth: stackView.depth readonly property alias filterField: filterField - Connections { target: pageLoader onAboutToRecycle: { @@ -130,7 +129,6 @@ HColumnLayout { } } - Keys.forwardTo: [stackView.currentItem] Keys.priority: Keys.AfterItem diff --git a/src/gui/Pages/Chat/RoomPane/RoomPane.qml b/src/gui/Pages/Chat/RoomPane/RoomPane.qml index ca14aa43..85d2748e 100644 --- a/src/gui/Pages/Chat/RoomPane/RoomPane.qml +++ b/src/gui/Pages/Chat/RoomPane/RoomPane.qml @@ -24,7 +24,6 @@ MultiviewPane { swipeView.currentItem.keybindFocusItem.forceActiveFocus() } - saveName: "roomPane" edge: Qt.RightEdge @@ -42,7 +41,6 @@ MultiviewPane { buttonsBackgroundColor: theme.chat.roomPane.topBar.background background: Rectangle { color: theme.chat.roomPane.background } - buttonRepeater.model: [ "back", "members", "files", "notifications", "history", "settings" ] diff --git a/src/gui/Pages/Chat/RoomPane/SettingsView.qml b/src/gui/Pages/Chat/RoomPane/SettingsView.qml index 93e9b137..3cf0ca03 100644 --- a/src/gui/Pages/Chat/RoomPane/SettingsView.qml +++ b/src/gui/Pages/Chat/RoomPane/SettingsView.qml @@ -55,7 +55,6 @@ HFlickableColumnPage { forbidGuestsCheckBox.reset() } - enableFlickShortcuts: ! chat.composerHasFocus background: Rectangle { diff --git a/src/gui/Pages/Chat/Timeline/EventContent.qml b/src/gui/Pages/Chat/Timeline/EventContent.qml index e5dffb1d..a799f390 100644 --- a/src/gui/Pages/Chat/Timeline/EventContent.qml +++ b/src/gui/Pages/Chat/Timeline/EventContent.qml @@ -84,7 +84,6 @@ HRowLayout { readonly property alias selectedText: contentLabel.selectedPlainText - spacing: theme.chat.message.horizontalSpacing layoutDirection: onRight ? Qt.RightToLeft: Qt.LeftToRight diff --git a/src/gui/Pages/Chat/Timeline/EventContextMenu.qml b/src/gui/Pages/Chat/Timeline/EventContextMenu.qml index 029bb9d3..d1f03fc1 100644 --- a/src/gui/Pages/Chat/Timeline/EventContextMenu.qml +++ b/src/gui/Pages/Chat/Timeline/EventContextMenu.qml @@ -33,7 +33,6 @@ HMenu { menu.popup() } - onClosed: { hoveredLink = "" eventIndex = -1 diff --git a/src/gui/Pages/Chat/Timeline/EventDelegate.qml b/src/gui/Pages/Chat/Timeline/EventDelegate.qml index 8ec7d0ef..05c3ecf1 100644 --- a/src/gui/Pages/Chat/Timeline/EventDelegate.qml +++ b/src/gui/Pages/Chat/Timeline/EventDelegate.qml @@ -45,7 +45,6 @@ HColumnLayout { readonly property alias eventContent: eventContent - function dict() { let event = eventList.model.get(model.index) event = JSON.parse(JSON.stringify(event)) @@ -63,7 +62,6 @@ HColumnLayout { eventList.toggleCheck(model.index) } - width: eventList.width - eventList.leftMargin - eventList.rightMargin // Needed because of eventList's MouseArea which steals the diff --git a/src/gui/Pages/Chat/Timeline/EventFile.qml b/src/gui/Pages/Chat/Timeline/EventFile.qml index 7feb99b0..808534dc 100644 --- a/src/gui/Pages/Chat/Timeline/EventFile.qml +++ b/src/gui/Pages/Chat/Timeline/EventFile.qml @@ -13,7 +13,6 @@ HTile { property EventMediaLoader loader - width: Math.min( eventDelegate.width, eventContent.maxMessageWidth, diff --git a/src/gui/Pages/Chat/Timeline/EventImage.qml b/src/gui/Pages/Chat/Timeline/EventImage.qml index 5b972443..db7e21f5 100644 --- a/src/gui/Pages/Chat/Timeline/EventImage.qml +++ b/src/gui/Pages/Chat/Timeline/EventImage.qml @@ -67,7 +67,6 @@ HMxcImage { Qt.openUrlExternally(loader.mediaUrl) } - width: fitSize.width height: fitSize.height horizontalAlignment: Image.AlignLeft @@ -86,7 +85,6 @@ HMxcImage { loader.singleMediaInfo.media_crypt_dict ) - onCachedPathChanged: eventList.thumbnailCachedPaths[loader.singleMediaInfo.id] = cachedPath diff --git a/src/gui/Pages/Chat/Timeline/EventList.qml b/src/gui/Pages/Chat/Timeline/EventList.qml index 4f179dd8..89a15306 100644 --- a/src/gui/Pages/Chat/Timeline/EventList.qml +++ b/src/gui/Pages/Chat/Timeline/EventList.qml @@ -17,7 +17,6 @@ Rectangle { readonly property alias eventList: eventList readonly property alias contextMenu: contextMenu - color: theme.chat.eventList.background HShortcut { @@ -222,7 +221,6 @@ Rectangle { flickable: eventList } - HListView { id: eventList @@ -501,7 +499,6 @@ Rectangle { eventList.getLocalOrDownloadMedia(event, Qt.openUrlExternally) } - anchors.fill: parent enabled: ! window.anyPopup clip: true diff --git a/src/gui/Pages/Chat/Timeline/EventMediaLoader.qml b/src/gui/Pages/Chat/Timeline/EventMediaLoader.qml index e905dec1..7ae8694a 100644 --- a/src/gui/Pages/Chat/Timeline/EventMediaLoader.qml +++ b/src/gui/Pages/Chat/Timeline/EventMediaLoader.qml @@ -33,7 +33,6 @@ HLoader { readonly property bool hovered: item ? item.hovered : false - visible: Boolean(item) x: eventContent.spacing diff --git a/src/gui/Pages/Chat/TypingMembersBar.qml b/src/gui/Pages/Chat/TypingMembersBar.qml index 7b0f0286..f50ce43e 100644 --- a/src/gui/Pages/Chat/TypingMembersBar.qml +++ b/src/gui/Pages/Chat/TypingMembersBar.qml @@ -8,7 +8,6 @@ import "../../Base" InfoBar { property var typingMembers: [] - color: theme.chat.typingMembers.background icon.svgName: "typing" // TODO: animate label.textFormat: Text.StyledText diff --git a/src/gui/Popups/ClearMessagesPopup.qml b/src/gui/Popups/ClearMessagesPopup.qml index fe7f3805..88282403 100644 --- a/src/gui/Popups/ClearMessagesPopup.qml +++ b/src/gui/Popups/ClearMessagesPopup.qml @@ -12,7 +12,6 @@ HFlickableColumnPopup { property string roomId: "" property var preClearCallback: null - page.footer: AutoDirectionLayout { ApplyButton { id: clearButton diff --git a/src/gui/Popups/ConfirmClipboardUploadPopup.qml b/src/gui/Popups/ConfirmClipboardUploadPopup.qml index d4b4b778..c22af74b 100644 --- a/src/gui/Popups/ConfirmClipboardUploadPopup.qml +++ b/src/gui/Popups/ConfirmClipboardUploadPopup.qml @@ -21,7 +21,6 @@ HColumnPopup { signal replied() - contentWidthLimit: theme.controls.popup.defaultWidth * 1.25 page.footer: AutoDirectionLayout { diff --git a/src/gui/Popups/ConfirmUploadPopup.qml b/src/gui/Popups/ConfirmUploadPopup.qml index 5c4747fc..53d182c7 100644 --- a/src/gui/Popups/ConfirmUploadPopup.qml +++ b/src/gui/Popups/ConfirmUploadPopup.qml @@ -20,7 +20,6 @@ HColumnPopup { signal replied() - contentWidthLimit: theme.controls.popup.defaultWidth * 1.25 page.footer: AutoDirectionLayout { diff --git a/src/gui/Popups/DeleteDevicesPopup.qml b/src/gui/Popups/DeleteDevicesPopup.qml index 01bf2670..f60e03a8 100644 --- a/src/gui/Popups/DeleteDevicesPopup.qml +++ b/src/gui/Popups/DeleteDevicesPopup.qml @@ -33,11 +33,9 @@ PasswordPopup { ) } - summary.text: qsTr("Enter your account's password to continue:") - validateButton.text: deviceIds.length > 1 ? qsTr("Sign out %1 devices").arg(deviceIds.length) : diff --git a/src/gui/Popups/ForgetRoomPopup.qml b/src/gui/Popups/ForgetRoomPopup.qml index 5fb5efb9..47155e26 100644 --- a/src/gui/Popups/ForgetRoomPopup.qml +++ b/src/gui/Popups/ForgetRoomPopup.qml @@ -28,7 +28,6 @@ HFlickableColumnPopup { }) } - page.footer: AutoDirectionLayout { ApplyButton { id: forgetButton diff --git a/src/gui/Popups/HColumnPopup.qml b/src/gui/Popups/HColumnPopup.qml index 1eb42509..ee5065c8 100644 --- a/src/gui/Popups/HColumnPopup.qml +++ b/src/gui/Popups/HColumnPopup.qml @@ -15,7 +15,6 @@ HPopup { signal keyboardAccept() - HColumnPage { id: page implicitWidth: Math.min( diff --git a/src/gui/Popups/HFlickableColumnPopup.qml b/src/gui/Popups/HFlickableColumnPopup.qml index de2ce54a..ad27fb39 100644 --- a/src/gui/Popups/HFlickableColumnPopup.qml +++ b/src/gui/Popups/HFlickableColumnPopup.qml @@ -13,7 +13,6 @@ HPopup { signal keyboardAccept() - HFlickableColumnPage { id: page implicitWidth: Math.min( diff --git a/src/gui/Popups/ImageViewerPopup/ImageViewerPopup.qml b/src/gui/Popups/ImageViewerPopup/ImageViewerPopup.qml index 5b71802d..851795d1 100644 --- a/src/gui/Popups/ImageViewerPopup/ImageViewerPopup.qml +++ b/src/gui/Popups/ImageViewerPopup/ImageViewerPopup.qml @@ -87,7 +87,6 @@ HPopup { return isFull ? exitFullScreen() : showFullScreen() } - margins: 0 background: null diff --git a/src/gui/Popups/ImageViewerPopup/ViewerButtons.qml b/src/gui/Popups/ImageViewerPopup/ViewerButtons.qml index 078a1d52..8c3599d8 100644 --- a/src/gui/Popups/ImageViewerPopup/ViewerButtons.qml +++ b/src/gui/Popups/ImageViewerPopup/ViewerButtons.qml @@ -19,7 +19,6 @@ HFlow { readonly property real calculatedWidth: utils.sumChildrenImplicitWidths(visibleChildren) - HButton { id: pause backgroundColor: root.backgroundsColor diff --git a/src/gui/Popups/ImageViewerPopup/ViewerCanvas.qml b/src/gui/Popups/ImageViewerPopup/ViewerCanvas.qml index d898442f..86008dca 100644 --- a/src/gui/Popups/ImageViewerPopup/ViewerCanvas.qml +++ b/src/gui/Popups/ImageViewerPopup/ViewerCanvas.qml @@ -15,7 +15,6 @@ HFlickable { readonly property alias thumbnail: thumbnail readonly property alias full: full - contentWidth: Math.max(window.width, viewer.paintedWidth * thumbnail.scale) contentHeight: diff --git a/src/gui/Popups/ImageViewerPopup/ViewerInfo.qml b/src/gui/Popups/ImageViewerPopup/ViewerInfo.qml index c18750cc..62b845d6 100644 --- a/src/gui/Popups/ImageViewerPopup/ViewerInfo.qml +++ b/src/gui/Popups/ImageViewerPopup/ViewerInfo.qml @@ -15,7 +15,6 @@ Rectangle { readonly property alias dimensions: dimensions readonly property alias fileSize: fileSize - implicitHeight: Math.max(theme.baseElementsHeight, childrenRect.height) color: utils.hsluv(0, 0, 0, 0.8) diff --git a/src/gui/Popups/InvalidAccessTokenPopup.qml b/src/gui/Popups/InvalidAccessTokenPopup.qml index 62030dd8..62fec873 100644 --- a/src/gui/Popups/InvalidAccessTokenPopup.qml +++ b/src/gui/Popups/InvalidAccessTokenPopup.qml @@ -14,7 +14,6 @@ HFlickableColumnPopup { window.mainUI.pageLoader.show("Pages/AddAccount/AddAccount.qml") } - page.footer: AutoDirectionLayout { ApplyButton { id: signBackButton diff --git a/src/gui/Popups/InviteToRoomPopup.qml b/src/gui/Popups/InviteToRoomPopup.qml index 450ac63a..9b96f9fa 100644 --- a/src/gui/Popups/InviteToRoomPopup.qml +++ b/src/gui/Popups/InviteToRoomPopup.qml @@ -46,7 +46,6 @@ HColumnPopup { ) } - page.footer: AutoDirectionLayout { ApplyButton { id: inviteButton diff --git a/src/gui/Popups/KeyVerificationPopup.qml b/src/gui/Popups/KeyVerificationPopup.qml index 73e82671..33a169be 100644 --- a/src/gui/Popups/KeyVerificationPopup.qml +++ b/src/gui/Popups/KeyVerificationPopup.qml @@ -17,7 +17,6 @@ HFlickableColumnPopup { property var verifiedCallback: null property var blacklistedCallback: null - page.footer: AutoDirectionLayout { PositiveButton { visible: ! deviceIsCurrent diff --git a/src/gui/Popups/LeaveRoomPopup.qml b/src/gui/Popups/LeaveRoomPopup.qml index 3453f208..f1fc28dd 100644 --- a/src/gui/Popups/LeaveRoomPopup.qml +++ b/src/gui/Popups/LeaveRoomPopup.qml @@ -13,7 +13,6 @@ HFlickableColumnPopup { property string roomName: "" property var leftCallback: null - page.footer: AutoDirectionLayout { ApplyButton { id: leaveButton diff --git a/src/gui/Popups/PasswordPopup.qml b/src/gui/Popups/PasswordPopup.qml index 4617e88a..0ce0508f 100644 --- a/src/gui/Popups/PasswordPopup.qml +++ b/src/gui/Popups/PasswordPopup.qml @@ -49,7 +49,6 @@ HFlickableColumnPopup { }) } - page.footer: AutoDirectionLayout { ApplyButton { id: validateButton diff --git a/src/gui/Popups/RedactPopup.qml b/src/gui/Popups/RedactPopup.qml index 4d172de1..f2e56389 100644 --- a/src/gui/Popups/RedactPopup.qml +++ b/src/gui/Popups/RedactPopup.qml @@ -36,7 +36,6 @@ HFlickableColumnPopup { popup.close() } - page.footer: AutoDirectionLayout { ApplyButton { text: qsTr("Remove") diff --git a/src/gui/Popups/RemoveMemberPopup.qml b/src/gui/Popups/RemoveMemberPopup.qml index 4cf09ed3..d886ab97 100644 --- a/src/gui/Popups/RemoveMemberPopup.qml +++ b/src/gui/Popups/RemoveMemberPopup.qml @@ -18,7 +18,6 @@ HFlickableColumnPopup { readonly property string coloredTarget: utils.coloredNameHtml(targetDisplayName, targetUserId) - function remove() { py.callClientCoro( userId, @@ -29,7 +28,6 @@ HFlickableColumnPopup { popup.close() } - page.footer: AutoDirectionLayout { ApplyButton { text: diff --git a/src/gui/Popups/SignOutPopup.qml b/src/gui/Popups/SignOutPopup.qml index bfab9bee..c2be8288 100644 --- a/src/gui/Popups/SignOutPopup.qml +++ b/src/gui/Popups/SignOutPopup.qml @@ -11,7 +11,6 @@ HFlickableColumnPopup { property string userId: "" - page.footer: AutoDirectionLayout { PositiveButton { id: exportButton diff --git a/src/gui/Popups/UnexpectedErrorPopup.qml b/src/gui/Popups/UnexpectedErrorPopup.qml index 76649595..23f08d32 100644 --- a/src/gui/Popups/UnexpectedErrorPopup.qml +++ b/src/gui/Popups/UnexpectedErrorPopup.qml @@ -15,7 +15,6 @@ HColumnPopup { property string message: "" property string traceback: "" - page.footer: AutoDirectionLayout { PositiveButton { text: qsTr("Report") diff --git a/src/gui/PythonBridge/PythonRootBridge.qml b/src/gui/PythonBridge/PythonRootBridge.qml index 9296a2c0..7cbbc90b 100644 --- a/src/gui/PythonBridge/PythonRootBridge.qml +++ b/src/gui/PythonBridge/PythonRootBridge.qml @@ -10,7 +10,6 @@ PythonBridge { readonly property EventHandlers eventHandlers: EventHandlers {} - Component.onCompleted: { for (var func in eventHandlers) { if (! eventHandlers.hasOwnProperty(func)) continue diff --git a/src/gui/ShortcutBundles/FlickShortcuts.qml b/src/gui/ShortcutBundles/FlickShortcuts.qml index dcebe492..99f01d50 100644 --- a/src/gui/ShortcutBundles/FlickShortcuts.qml +++ b/src/gui/ShortcutBundles/FlickShortcuts.qml @@ -10,7 +10,6 @@ HQtObject { property Item flickable: parent property bool active: true - HShortcut { active: root.active sequences: window.settings.Keys.Scrolling.up diff --git a/src/gui/ShortcutBundles/TabShortcuts.qml b/src/gui/ShortcutBundles/TabShortcuts.qml index 1b3f4375..ad199e27 100644 --- a/src/gui/ShortcutBundles/TabShortcuts.qml +++ b/src/gui/ShortcutBundles/TabShortcuts.qml @@ -10,7 +10,6 @@ HQtObject { property Item container: parent property bool active: container.count > 1 - HShortcut { active: root.active sequences: window.settings.Keys.previous_tab diff --git a/src/gui/TrayIcon.qml b/src/gui/TrayIcon.qml index a39346db..ad433526 100644 --- a/src/gui/TrayIcon.qml +++ b/src/gui/TrayIcon.qml @@ -27,7 +27,6 @@ SystemTrayIcon { } } - visible: true tooltip: Qt.application.displayName icon.source: `../icons/${iconPack}/tray-icon.png` diff --git a/src/gui/UI.qml b/src/gui/UI.qml index 880ad87f..7e5a2fa6 100644 --- a/src/gui/UI.qml +++ b/src/gui/UI.qml @@ -31,7 +31,6 @@ Item { readonly property alias fontMetrics: fontMetrics readonly property alias idleManager: idleManager - focus: true Component.onCompleted: window.mainUI = mainUI diff --git a/src/gui/Window.qml b/src/gui/Window.qml index ff73e7d5..4e063243 100644 --- a/src/gui/Window.qml +++ b/src/gui/Window.qml @@ -91,7 +91,6 @@ ApplicationWindow { window.requestActivate() } - flags: Qt.WA_TranslucentBackground minimumWidth: theme ? theme.minimumSupportedWidth : 240 minimumHeight: theme ? theme.minimumSupportedHeight : 120