2023-04-09 05:35:35 +00:00
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2023-03-20 06:53:56 +00:00
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Layouts
|
2023-05-19 02:08:36 +00:00
|
|
|
import Fk
|
2023-03-20 06:53:56 +00:00
|
|
|
|
|
|
|
Item {
|
|
|
|
id: root
|
|
|
|
width: bg.width
|
|
|
|
height: bg.height
|
|
|
|
|
|
|
|
Image {
|
|
|
|
id: bg
|
|
|
|
x: -32
|
|
|
|
height: 69
|
|
|
|
source: SkinBank.LOBBY_IMG_DIR + "profile"
|
|
|
|
fillMode: Image.PreserveAspectFit
|
|
|
|
}
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
Item { Layout.preferredWidth: 16 }
|
|
|
|
|
|
|
|
Image {
|
|
|
|
Layout.preferredWidth: 64
|
|
|
|
Layout.preferredHeight: 64
|
2023-07-16 07:32:16 +00:00
|
|
|
source: SkinBank.getGeneralExtraPic(Self.avatar, "avatar/") ?? SkinBank.getGeneralPicture(Self.avatar)
|
|
|
|
// sourceSize.width: 250
|
|
|
|
// sourceSize.height: 292
|
|
|
|
sourceClipRect: sourceSize.width > 200 ? Qt.rect(61, 0, 128, 128) : undefined
|
2023-03-20 06:53:56 +00:00
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
anchors.fill: parent
|
|
|
|
color: "transparent"
|
|
|
|
border.width: 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Item { Layout.preferredWidth: 8 }
|
|
|
|
|
|
|
|
Text {
|
|
|
|
Layout.alignment: Qt.AlignTop
|
|
|
|
text: Self.screenName
|
|
|
|
font.pixelSize: 22
|
|
|
|
font.family: fontLibian.name
|
|
|
|
color: "#F0DFAF"
|
|
|
|
style: Text.Outline
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
TapHandler {
|
|
|
|
onTapped: {
|
2023-05-20 08:00:03 +00:00
|
|
|
lobby_dialog.sourceComponent = Qt.createComponent("EditProfile.qml");
|
2023-03-20 06:53:56 +00:00
|
|
|
lobby_drawer.open();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|