mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-11 06:47:01 +00:00
7b54bf31b4
- Added functionality as experimental advanced view button feat(CommunitySettings / Permissions): Added welcome page - Enabled new permissions tab. - Created welcome page layout. - Added permissions welcome image. - Fixed top margin content in `SettingsPanelLayout` to fit designs. Closes #6036 feat(CommunitySettings/Permissions): Created `new permission` page - Added `new permission` page. - Created first card layout. - Added navigation between `welcome` and `newPermission` views. - Improvements in base community settings layout pages. Closes #6037 feat(CommunitySettings/Permissions): `Who holds` tokens dropdown component creation and integration - Tokens dropdown component creation: main view, operators view and extended view. - Logic to add new token and change operator. Part of #6038
46 lines
1.3 KiB
QML
46 lines
1.3 KiB
QML
import QtQuick 2.14
|
|
import QtQuick.Layouts 1.14
|
|
|
|
import StatusQ.Core 0.1
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
import utils 1.0
|
|
|
|
RowLayout {
|
|
id: root
|
|
|
|
property string text
|
|
|
|
implicitHeight: 32
|
|
|
|
Canvas {
|
|
readonly property int cornerRadius: 9
|
|
readonly property int lineWidth: 2
|
|
readonly property int verticalLine: 12
|
|
readonly property int horizontalLine: 19
|
|
|
|
Layout.preferredWidth: horizontalLine + cornerRadius
|
|
Layout.preferredHeight: verticalLine + lineWidth + cornerRadius
|
|
Layout.alignment: Qt.AlignTop
|
|
Layout.topMargin: 12
|
|
contextType: "2d"
|
|
onPaint: {
|
|
context.reset();
|
|
context.beginPath()
|
|
context.moveTo(width, lineWidth)
|
|
context.arc(cornerRadius + lineWidth, cornerRadius + lineWidth, cornerRadius, 3 * Math.PI / 2, Math.PI, true/*anticlockwise*/)
|
|
context.lineTo(lineWidth, cornerRadius + verticalLine + lineWidth)
|
|
context.strokeStyle = Style.current.separator
|
|
context.lineWidth = 2
|
|
context.stroke()
|
|
}
|
|
}
|
|
StatusBaseText {
|
|
Layout.alignment: Qt.AlignTop
|
|
Layout.topMargin: 2
|
|
text: root.text
|
|
color: Theme.palette.directColor1
|
|
font.pixelSize: 17
|
|
}
|
|
}
|