Remove uneeded HRectangle component

This commit is contained in:
miruka
2019-08-27 22:46:31 -04:00
parent 77dbc3a502
commit 560981a97e
20 changed files with 24 additions and 29 deletions

View File

@@ -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

View File

@@ -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 :

View File

@@ -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

View File

@@ -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(

View File

@@ -17,7 +17,7 @@ ListView {
currentItem ? currentItem.height : 0
highlight: HRectangle {
highlight: Rectangle {
color: theme.controls.listView.highlight
}

View File

@@ -23,7 +23,7 @@ Menu {
)
}
background: HRectangle {
background: Rectangle {
color: "transparent"
border.color: theme.controls.menu.border
border.width: theme.controls.menu.borderWidth

View File

@@ -35,7 +35,7 @@ SwipeView {
id: innerPage
background: null
header: HRectangle {
header: Rectangle {
implicitWidth: parent ? parent.width : 0
color: theme.controls.header.background

View File

@@ -36,7 +36,7 @@ Popup {
HNumberAnimation { property: "scale"; to: 0 }
}
background: HRectangle {
background: Rectangle {
color: theme.controls.popup.background
}

View File

@@ -1,6 +0,0 @@
import QtQuick 2.12
Rectangle {
id: rectangle
color: theme.controls.box.background
}

View File

@@ -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