Use Base components without namespace prefix
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import QtQuick 2.7
|
||||
import QtQuick.Controls 2.0
|
||||
import QtQuick.Layouts 1.4
|
||||
import "../Base" as Base
|
||||
import "../Base"
|
||||
|
||||
Rectangle {
|
||||
property bool hidden: false
|
||||
@@ -23,12 +23,12 @@ Rectangle {
|
||||
opacity: hidden ? 0 : 1
|
||||
|
||||
color: resolvedName === "?" ?
|
||||
Base.HStyle.avatar.background.unknown :
|
||||
HStyle.avatar.background.unknown :
|
||||
Qt.hsla(
|
||||
Backend.hueFromString(resolvedName),
|
||||
Base.HStyle.avatar.background.saturation,
|
||||
Base.HStyle.avatar.background.lightness,
|
||||
Base.HStyle.avatar.background.alpha
|
||||
HStyle.avatar.background.saturation,
|
||||
HStyle.avatar.background.lightness,
|
||||
HStyle.avatar.background.alpha
|
||||
)
|
||||
|
||||
HLabel {
|
||||
@@ -37,7 +37,7 @@ Rectangle {
|
||||
visible: ! hidden
|
||||
|
||||
text: resolvedName.charAt(0)
|
||||
color: Base.HStyle.avatar.letter
|
||||
color: HStyle.avatar.letter
|
||||
font.pixelSize: parent.height / 1.4
|
||||
}
|
||||
|
||||
|
@@ -1,16 +1,16 @@
|
||||
import QtQuick 2.7
|
||||
import QtQuick.Controls 2.2
|
||||
import QtQuick.Layouts 1.4
|
||||
import "../Base" as Base
|
||||
import "../Base"
|
||||
|
||||
Base.HRowLayout {
|
||||
HRowLayout {
|
||||
property alias text: noticeLabel.text
|
||||
property alias color: noticeLabel.color
|
||||
property alias font: noticeLabel.font
|
||||
property alias backgroundColor: noticeLabelBackground.color
|
||||
property alias radius: noticeLabelBackground.radius
|
||||
|
||||
Base.HLabel {
|
||||
HLabel {
|
||||
id: noticeLabel
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
wrapMode: Text.Wrap
|
||||
@@ -24,8 +24,8 @@ Base.HRowLayout {
|
||||
|
||||
background: Rectangle {
|
||||
id: noticeLabelBackground
|
||||
color: Base.HStyle.box.background
|
||||
radius: Base.HStyle.box.radius
|
||||
color: HStyle.box.background
|
||||
radius: HStyle.box.radius
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user