2020-06-17 15:18:31 -04:00
|
|
|
import QtQuick 2.13
|
2021-09-28 18:04:06 +03:00
|
|
|
|
|
|
|
import utils 1.0
|
2021-10-28 00:27:49 +03:00
|
|
|
import shared 1.0
|
|
|
|
import shared.panels 1.0
|
2020-05-26 14:16:07 -04:00
|
|
|
|
|
|
|
Rectangle {
|
2021-10-01 18:58:36 +03:00
|
|
|
id: root
|
2020-05-26 14:16:07 -04:00
|
|
|
property string channel: "status"
|
2021-10-01 18:58:36 +03:00
|
|
|
signal clicked(string channel)
|
2020-05-26 14:16:07 -04:00
|
|
|
border.width: 1
|
|
|
|
radius: 8
|
|
|
|
width: children[0].width + 10
|
|
|
|
height: 32
|
2020-07-13 14:45:54 -04:00
|
|
|
border.color: Style.current.border
|
2021-03-26 13:57:30 -04:00
|
|
|
color: Style.current.transparent
|
2020-07-13 14:45:54 -04:00
|
|
|
|
2020-06-19 14:06:58 -04:00
|
|
|
StyledText {
|
2020-05-26 14:16:07 -04:00
|
|
|
id: suggestedChannelText
|
|
|
|
text: "#" + channel
|
|
|
|
font.weight: Font.Medium
|
2020-07-02 11:14:31 -04:00
|
|
|
color: Style.current.blue;
|
2020-05-26 14:16:07 -04: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 13:43:53 -04:00
|
|
|
onClicked: {
|
2021-10-01 18:58:36 +03:00
|
|
|
root.clicked(channel);
|
2020-08-18 13:43:53 -04:00
|
|
|
}
|
2020-05-26 14:16:07 -04:00
|
|
|
cursorShape: Qt.PointingHandCursor
|
|
|
|
}
|
|
|
|
}
|