diff options
author | Jedi18 <targetakhil@gmail.com> | 2021-02-10 21:22:42 +0530 |
---|---|---|
committer | Jedi18 <targetakhil@gmail.com> | 2021-02-10 21:22:42 +0530 |
commit | b70f37194fd968950c920b1c39388154aa46cdc1 (patch) | |
tree | 8fee13b660e1f86b370fe8da9f46bf0162d000d4 /resources/qml | |
parent | added room settings qml (diff) | |
download | nheko-b70f37194fd968950c920b1c39388154aa46cdc1.tar.xz |
ui almost looks the same, midway between transition from old room settings to new room settings
Diffstat (limited to 'resources/qml')
-rw-r--r-- | resources/qml/RoomSettings.qml | 2 | ||||
-rw-r--r-- | resources/qml/TimelineView.qml | 4 | ||||
-rw-r--r-- | resources/qml/ToggleButton.qml | 10 |
3 files changed, 14 insertions, 2 deletions
diff --git a/resources/qml/RoomSettings.qml b/resources/qml/RoomSettings.qml index 106c9119..d6f3fe7b 100644 --- a/resources/qml/RoomSettings.qml +++ b/resources/qml/RoomSettings.qml @@ -16,7 +16,7 @@ ApplicationWindow { minimumHeight: 420 palette: colors color: colors.window - title: "Room Settings" + title: roomSettings.roomName modality: Qt.Modal Shortcut { diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml index c6c1e2b2..6b34f2ab 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml @@ -177,7 +177,9 @@ Page { Connections { target: TimelineManager onOpenRoomSettingsDialog: { - var roomSettings = roomSettingsComponent.createObject(timelineRoot); + var roomSettings = roomSettingsComponent.createObject(timelineRoot, { + "roomSettings": roomSettings + }); roomSettings.show(); } } diff --git a/resources/qml/ToggleButton.qml b/resources/qml/ToggleButton.qml new file mode 100644 index 00000000..584fc693 --- /dev/null +++ b/resources/qml/ToggleButton.qml @@ -0,0 +1,10 @@ +import QtQuick 2.5 +import QtQuick.Controls 2.3 +import im.nheko 1.0 + +Switch { + property color activeColor + property color disabledColor + property color inactiveColor + property color trackColor +} \ No newline at end of file |