2021-05-06 09:20:50 +00:00
|
|
|
import QtQuick 2.14
|
2021-05-06 11:10:17 +00:00
|
|
|
import QtQuick.Controls 2.14
|
2021-05-06 09:20:50 +00:00
|
|
|
import QtQuick.Layouts 1.14
|
|
|
|
import StatusQ.Core 0.1
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
|
2021-06-28 13:36:51 +00:00
|
|
|
import Sandbox 0.1
|
|
|
|
|
2021-05-06 09:20:50 +00:00
|
|
|
GridLayout {
|
2021-07-23 09:44:38 +00:00
|
|
|
columns: 1
|
2021-05-06 09:20:50 +00:00
|
|
|
columnSpacing: 5
|
|
|
|
rowSpacing: 5
|
|
|
|
|
|
|
|
StatusIconTabButton {
|
|
|
|
icon.name: "chat"
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusIconTabButton {
|
|
|
|
icon.source: "https://pbs.twimg.com/profile_images/1369221718338895873/T_5fny6o_400x400.jpg"
|
|
|
|
}
|
|
|
|
|
2021-05-20 10:14:40 +00:00
|
|
|
StatusIconTabButton {
|
|
|
|
icon.color: Theme.palette.miscColor9
|
|
|
|
// This icon source is flawed and demonstrates the fallback case
|
|
|
|
// when the image source can't be loaded
|
|
|
|
icon.source: "https://pbs.twimg.com/profile_images/1369221718338895873/T_5fny6o_400x400.jp"
|
|
|
|
name: "Pascal"
|
|
|
|
}
|
|
|
|
|
2021-05-06 09:20:50 +00:00
|
|
|
StatusIconTabButton {
|
|
|
|
name: "#status"
|
|
|
|
}
|
|
|
|
|
2021-05-06 11:10:17 +00:00
|
|
|
Button {
|
|
|
|
text: "Hover me!"
|
|
|
|
StatusToolTip {
|
|
|
|
visible: parent.hovered
|
|
|
|
text: "Top"
|
|
|
|
}
|
|
|
|
StatusToolTip {
|
|
|
|
visible: parent.hovered
|
|
|
|
text: "Right"
|
|
|
|
orientation: StatusToolTip.Orientation.Right
|
|
|
|
x: parent.width + 16
|
|
|
|
y: parent.height / 2 - height / 2 + 4
|
|
|
|
}
|
|
|
|
StatusToolTip {
|
|
|
|
visible: parent.hovered
|
|
|
|
text: "Bottom"
|
|
|
|
orientation: StatusToolTip.Orientation.Bottom
|
|
|
|
y: parent.height + 12
|
|
|
|
}
|
|
|
|
StatusToolTip {
|
|
|
|
visible: parent.hovered
|
|
|
|
text: "Left"
|
|
|
|
orientation: StatusToolTip.Orientation.Left
|
|
|
|
x: -parent.width /2 -8
|
|
|
|
y: parent.height / 2 - height / 2 + 4
|
|
|
|
}
|
|
|
|
}
|
2021-05-06 12:47:57 +00:00
|
|
|
|
|
|
|
StatusNavBarTabButton {
|
|
|
|
icon.name: "chat"
|
|
|
|
tooltip.text: "Chat"
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusNavBarTabButton {
|
|
|
|
name: "#status"
|
|
|
|
tooltip.text: "Some Channel"
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusNavBarTabButton {
|
|
|
|
icon.source: "https://pbs.twimg.com/profile_images/1369221718338895873/T_5fny6o_400x400.jpg"
|
|
|
|
tooltip.text: "Some Community"
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusNavBarTabButton {
|
|
|
|
icon.name: "profile"
|
|
|
|
tooltip.text: "Profile"
|
|
|
|
badge.value: 0
|
|
|
|
badge.visible: true
|
|
|
|
badge.anchors.leftMargin:-16
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusNavBarTabButton {
|
|
|
|
icon.name: "chat"
|
|
|
|
tooltip.text: "Chat"
|
|
|
|
badge.value: 35
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusNavBarTabButton {
|
|
|
|
icon.name: "chat"
|
|
|
|
tooltip.text: "Chat"
|
|
|
|
badge.value: 100
|
|
|
|
}
|
2021-05-20 06:14:18 +00:00
|
|
|
|
|
|
|
StatusSwitch {
|
|
|
|
|
|
|
|
}
|
2021-05-20 06:45:05 +00:00
|
|
|
|
|
|
|
StatusRadioButton {
|
|
|
|
text: "i'm radio!"
|
|
|
|
}
|
2021-05-20 08:43:01 +00:00
|
|
|
|
|
|
|
StatusCheckBox {}
|
2021-05-27 12:41:14 +00:00
|
|
|
|
|
|
|
StatusChatInfoButton {
|
|
|
|
title: "Iuri Matias"
|
|
|
|
subTitle: "Contact"
|
|
|
|
icon.color: Theme.palette.miscColor7
|
|
|
|
image.source: "https://pbs.twimg.com/profile_images/1369221718338895873/T_5fny6o_400x400.jpg"
|
|
|
|
type: StatusChatInfoButton.Type.OneToOneChat
|
|
|
|
muted: true
|
|
|
|
pinnedMessagesCount: 1
|
|
|
|
}
|
|
|
|
|
2021-08-25 13:14:37 +00:00
|
|
|
Item {
|
|
|
|
implicitWidth: 100
|
|
|
|
implicitHeight: 48
|
|
|
|
StatusChatInfoButton {
|
|
|
|
title: "Iuri Matias elided"
|
|
|
|
subTitle: "Contact"
|
|
|
|
icon.color: Theme.palette.miscColor7
|
|
|
|
image.source: "https://pbs.twimg.com/profile_images/1369221718338895873/T_5fny6o_400x400.jpg"
|
|
|
|
type: StatusChatInfoButton.Type.OneToOneChat
|
|
|
|
muted: true
|
|
|
|
pinnedMessagesCount: 1
|
|
|
|
width: 100
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Item {
|
|
|
|
implicitWidth: 100
|
|
|
|
implicitHeight: 48
|
|
|
|
StatusChatInfoButton {
|
|
|
|
title: "Iuri Matias big not elided"
|
|
|
|
subTitle: "Contact"
|
|
|
|
icon.color: Theme.palette.miscColor7
|
|
|
|
image.source: "https://pbs.twimg.com/profile_images/1369221718338895873/T_5fny6o_400x400.jpg"
|
|
|
|
type: StatusChatInfoButton.Type.OneToOneChat
|
|
|
|
muted: true
|
|
|
|
pinnedMessagesCount: 1
|
|
|
|
width: 400
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-27 12:41:14 +00:00
|
|
|
StatusChatInfoButton {
|
|
|
|
title: "group"
|
|
|
|
subTitle: "Group Chat"
|
|
|
|
pinnedMessagesCount: 1
|
|
|
|
icon.color: Theme.palette.miscColor7
|
|
|
|
type: StatusChatInfoButton.Type.GroupChat
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusChatInfoButton {
|
|
|
|
title: "public-chat"
|
|
|
|
subTitle: "Public Chat"
|
|
|
|
icon.color: Theme.palette.miscColor7
|
|
|
|
type: StatusChatInfoButton.Type.PublicChat
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusChatInfoButton {
|
|
|
|
title: "community-channel"
|
|
|
|
subTitle: "Community Chat"
|
|
|
|
icon.color: Theme.palette.miscColor7
|
|
|
|
type: StatusChatInfoButton.Type.CommunityChat
|
|
|
|
}
|
2021-05-28 10:09:58 +00:00
|
|
|
|
|
|
|
StatusSlider {
|
|
|
|
width: 360
|
|
|
|
from: 0
|
|
|
|
to: 100
|
|
|
|
value: 40
|
|
|
|
}
|
2021-05-06 11:10:17 +00:00
|
|
|
}
|