2024-10-15 19:26:12 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
|
|
|
|
import StatusQ.Core.Theme 0.1
|
2021-09-28 15:04:06 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
2021-10-27 21:27:49 +00:00
|
|
|
import shared 1.0
|
|
|
|
import shared.panels 1.0
|
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
|
2024-10-15 19:26:12 +00:00
|
|
|
border.color: Theme.palette.border
|
|
|
|
color: Theme.palette.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
|
2024-10-15 19:26:12 +00:00
|
|
|
color: Theme.palette.primaryColor1;
|
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
|
|
|
|
}
|
|
|
|
}
|