Remove uneeded HRectangle component
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user