2020-06-17 19:18:31 +00:00
|
|
|
import QtQuick 2.13
|
2021-09-28 15:04:06 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
2020-06-19 18:06:58 +00:00
|
|
|
import "../../../../shared"
|
2021-10-14 13:09:35 +00:00
|
|
|
import "../../../../shared/panels"
|
2020-05-26 18:16:07 +00:00
|
|
|
|
|
|
|
Rectangle {
|
2021-10-01 15:58:36 +00:00
|
|
|
id: root
|
2020-05-26 18:16:07 +00:00
|
|
|
property string channel: "status"
|
2021-10-01 15:58:36 +00:00
|
|
|
signal clicked(string channel)
|
2020-05-26 18:16:07 +00:00
|
|
|
border.width: 1
|
|
|
|
radius: 8
|
|
|
|
width: children[0].width + 10
|
|
|
|
height: 32
|
2020-07-13 18:45:54 +00:00
|
|
|
border.color: Style.current.border
|
2021-03-26 17:57:30 +00:00
|
|
|
color: Style.current.transparent
|
2020-07-13 18:45:54 +00:00
|
|
|
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-05-26 18:16:07 +00:00
|
|
|
id: suggestedChannelText
|
|
|
|
text: "#" + channel
|
|
|
|
font.weight: Font.Medium
|
2020-07-02 15:14:31 +00:00
|
|
|
color: Style.current.blue;
|
2020-05-26 18:16:07 +00:00
|
|
|
anchors.top: parent.top;
|
|
|
|
anchors.topMargin: 5;
|
|
|
|
anchors.left: parent.left;
|
|
|
|
anchors.leftMargin: 5;
|
|
|
|
horizontalAlignment: Text.AlignLeft;
|
|
|
|
font.pixelSize: 15
|
|
|
|
}
|
|
|
|
|
|
|
|
MouseArea {
|
|
|
|
anchors.fill: parent
|
2020-08-18 17:43:53 +00:00
|
|
|
onClicked: {
|
2021-10-01 15:58:36 +00:00
|
|
|
root.clicked(channel);
|
2020-08-18 17:43:53 +00:00
|
|
|
}
|
2020-05-26 18:16:07 +00:00
|
|
|
cursorShape: Qt.PointingHandCursor
|
|
|
|
}
|
|
|
|
}
|