Remove uneeded HRectangle component
This commit is contained in:
parent
77dbc3a502
commit
560981a97e
|
@ -3,7 +3,7 @@ import QtQuick.Controls 2.12
|
|||
import "../Base"
|
||||
import "../utils.js" as Utils
|
||||
|
||||
HRectangle {
|
||||
Rectangle {
|
||||
id: avatar
|
||||
implicitWidth: theme.controls.avatar.size
|
||||
implicitHeight: theme.controls.avatar.size
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import QtQuick 2.12
|
||||
import QtQuick.Controls 2.12
|
||||
|
||||
HRectangle {
|
||||
Rectangle {
|
||||
color: buttonTheme.background
|
||||
opacity: loading ? theme.loadingElementsOpacity :
|
||||
enabled ? 1 : theme.disabledElementsOpacity
|
||||
|
@ -14,7 +14,7 @@ HRectangle {
|
|||
Behavior on opacity { HNumberAnimation {} }
|
||||
|
||||
|
||||
HRectangle {
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
radius: parent.radius
|
||||
color: button.checked ? buttonTheme.checkedOverlay :
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import QtQuick 2.12
|
||||
|
||||
HRectangle {
|
||||
Rectangle {
|
||||
id: rectangle
|
||||
|
||||
property bool checkable: false // TODO
|
||||
|
@ -11,7 +11,7 @@ HRectangle {
|
|||
readonly property QtObject _ir: theme.controls.interactiveRectangle
|
||||
color: _ir.background
|
||||
|
||||
HRectangle {
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
|
||||
visible: opacity > 0
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import QtQuick 2.12
|
||||
import QtQuick.Layouts 1.12
|
||||
|
||||
HRectangle {
|
||||
Rectangle {
|
||||
id: interfaceBox
|
||||
color: theme.controls.box.background
|
||||
implicitWidth: Math.min(
|
||||
|
|
|
@ -17,7 +17,7 @@ ListView {
|
|||
currentItem ? currentItem.height : 0
|
||||
|
||||
|
||||
highlight: HRectangle {
|
||||
highlight: Rectangle {
|
||||
color: theme.controls.listView.highlight
|
||||
}
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ Menu {
|
|||
)
|
||||
}
|
||||
|
||||
background: HRectangle {
|
||||
background: Rectangle {
|
||||
color: "transparent"
|
||||
border.color: theme.controls.menu.border
|
||||
border.width: theme.controls.menu.borderWidth
|
||||
|
|
|
@ -35,7 +35,7 @@ SwipeView {
|
|||
id: innerPage
|
||||
background: null
|
||||
|
||||
header: HRectangle {
|
||||
header: Rectangle {
|
||||
implicitWidth: parent ? parent.width : 0
|
||||
color: theme.controls.header.background
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ Popup {
|
|||
HNumberAnimation { property: "scale"; to: 0 }
|
||||
}
|
||||
|
||||
background: HRectangle {
|
||||
background: Rectangle {
|
||||
color: theme.controls.popup.background
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
import QtQuick 2.12
|
||||
|
||||
Rectangle {
|
||||
id: rectangle
|
||||
color: theme.controls.box.background
|
||||
}
|
|
@ -6,7 +6,7 @@ ToolTip {
|
|||
delay: theme.controls.toolTip.delay
|
||||
padding: background.border.width
|
||||
|
||||
background: HRectangle {
|
||||
background: Rectangle {
|
||||
id: background
|
||||
color: theme.controls.toolTip.background
|
||||
border.color: theme.controls.toolTip.border
|
||||
|
|
|
@ -2,9 +2,10 @@ import QtQuick 2.12
|
|||
import QtQuick.Layouts 1.12
|
||||
import "../../Base"
|
||||
|
||||
HRectangle {
|
||||
Rectangle {
|
||||
id: banner
|
||||
implicitHeight: childrenRect.height
|
||||
color: theme.controls.box.background
|
||||
|
||||
property alias avatar: bannerAvatar
|
||||
property alias icon: bannerIcon
|
||||
|
@ -25,7 +26,7 @@ HRectangle {
|
|||
HRowLayout {
|
||||
id: bannerRow
|
||||
|
||||
HRectangle {
|
||||
Rectangle {
|
||||
id: bannerAvatarWrapper
|
||||
color: "black"
|
||||
|
||||
|
@ -79,7 +80,7 @@ HRectangle {
|
|||
}
|
||||
}
|
||||
|
||||
HRectangle {
|
||||
Rectangle {
|
||||
id: buttonsRightPadding
|
||||
color: theme.controls.button.background
|
||||
visible: bannerGrid.flow == GridLayout.TopToBottom
|
||||
|
|
|
@ -2,7 +2,7 @@ import QtQuick 2.12
|
|||
import QtQuick.Layouts 1.12
|
||||
import "../Base"
|
||||
|
||||
HRectangle {
|
||||
Rectangle {
|
||||
property alias buttonsImplicitWidth: viewButtons.implicitWidth
|
||||
property int buttonsWidth: viewButtons.Layout.preferredWidth
|
||||
property var activeButton: "members"
|
||||
|
|
|
@ -2,7 +2,7 @@ import QtQuick 2.12
|
|||
import QtQuick.Layouts 1.12
|
||||
import "../../Base"
|
||||
|
||||
HRectangle {
|
||||
Rectangle {
|
||||
id: roomSidePane
|
||||
color: theme.chat.roomSidePane.background
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ import QtQuick.Layouts 1.12
|
|||
import "../Base"
|
||||
import "../utils.js" as Utils
|
||||
|
||||
HRectangle {
|
||||
Rectangle {
|
||||
function setFocus() { areaScrollView.forceActiveFocus() }
|
||||
|
||||
property string indent: " "
|
||||
|
|
|
@ -2,7 +2,7 @@ import QtQuick 2.12
|
|||
import "../../Base"
|
||||
import "../../utils.js" as Utils
|
||||
|
||||
HRectangle {
|
||||
Rectangle {
|
||||
property alias listView: eventList
|
||||
|
||||
color: theme.chat.eventList.background
|
||||
|
|
|
@ -2,7 +2,7 @@ import QtQuick 2.12
|
|||
import QtQuick.Layouts 1.12
|
||||
import "../Base"
|
||||
|
||||
HRectangle {
|
||||
Rectangle {
|
||||
id: typingMembersBar
|
||||
|
||||
property alias label: typingLabel
|
||||
|
|
|
@ -33,7 +33,7 @@ HPage {
|
|||
id: repeater
|
||||
model: ["Profile.qml", "Encryption.qml"]
|
||||
|
||||
HRectangle {
|
||||
Rectangle {
|
||||
color: ready ? theme.controls.box.background : "transparent"
|
||||
Behavior on color { HColorAnimation {} }
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ HGridLayout {
|
|||
Layout.preferredWidth: Math.min(flickable.height, avatarPreferredSize)
|
||||
Layout.preferredHeight: Layout.preferredWidth
|
||||
|
||||
HRectangle {
|
||||
Rectangle {
|
||||
z: 10
|
||||
visible: opacity > 0
|
||||
opacity: ! fileDialog.dialog.visible &&
|
||||
|
|
|
@ -3,7 +3,7 @@ import QtQuick.Layouts 1.12
|
|||
import "../Base"
|
||||
import "../utils.js" as Utils
|
||||
|
||||
HRectangle {
|
||||
Rectangle {
|
||||
id: sidePane
|
||||
clip: true
|
||||
opacity: mainUI.accountsPresent && ! reduce ? 1 : 0
|
||||
|
|
|
@ -5,7 +5,7 @@ import QtQuick.Window 2.7
|
|||
import "Base"
|
||||
import "SidePane"
|
||||
|
||||
HRectangle {
|
||||
Rectangle {
|
||||
id: mainUI
|
||||
color: theme.ui.background
|
||||
Component.onCompleted: window.mainUI = mainUI
|
||||
|
|
Loading…
Reference in New Issue
Block a user