summary refs log tree commit diff
path: root/resources/qml/components
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-02-24 02:40:14 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2023-02-24 02:40:14 +0100
commitaae3300860ebe2fac39a156a31f9cddeefb4bf92 (patch)
treede63d71abe28e9e38e4cfb2c877ce5840e9b6a13 /resources/qml/components
parentReenable the nosync options for the database (diff)
downloadnheko-aae3300860ebe2fac39a156a31f9cddeefb4bf92.tar.xz
Show rooms you share with someone
Diffstat (limited to 'resources/qml/components')
-rw-r--r--resources/qml/components/NhekoTabButton.qml25
1 files changed, 25 insertions, 0 deletions
diff --git a/resources/qml/components/NhekoTabButton.qml b/resources/qml/components/NhekoTabButton.qml
new file mode 100644

index 00000000..5ae8748b --- /dev/null +++ b/resources/qml/components/NhekoTabButton.qml
@@ -0,0 +1,25 @@ +import QtQuick 2.15 +import QtQuick.Controls 2.15 +import im.nheko 1.0 + +TabButton { + id: control + + contentItem: Text { + text: control.text + font: control.font + opacity: enabled ? 1.0 : 0.3 + color: control.down ? Nheko.colors.highlightedText : Nheko.colors.text + horizontalAlignment: Text.AlignHCenter + verticalAlignment: Text.AlignVCenter + elide: Text.ElideRight + } + + background: Rectangle { + border.color: control.down ? Nheko.colors.highlight : Nheko.theme.separator + color: control.checked ? Nheko.colors.highlight : Nheko.colors.base + border.width: 1 + radius: 2 + } +} +