Add PCN theme system

Coexist with the old theme system for now. QML components have to be
updated to use the new system.
This commit is contained in:
miruka
2020-11-17 08:24:55 -04:00
parent 1af1d30c48
commit 42f04b013e
15 changed files with 159 additions and 16 deletions

View File

@@ -8,6 +8,13 @@ import "../../../Base"
import "../AutoCompletion"
Rectangle {
id: composer
property Theme ntheme: Theme {
target: composer
classes: Class { name: "Composer" }
}
property UserAutoCompletion userCompletion
property alias eventList: messageArea.eventList

View File

@@ -8,9 +8,10 @@ import "../../../Base"
import "../../../Dialogs"
HButton {
ntheme.classes: Class { name: "UploadButton" }
enabled: chat.roomInfo.can_send_messages
icon.name: "upload-file"
backgroundColor: theme.chat.composer.uploadButton.background
toolTip.text:
chat.userInfo.max_upload_size ?
qsTr("Send files (%1 max)").arg(

View File

@@ -149,8 +149,6 @@ HColumnLayout {
HButton {
id: inviteButton
icon.name: "room-send-invite"
backgroundColor:
theme.chat.roomPane.bottomBar.inviteButton.background
enabled:
chat.userInfo.presence !== "offline" &&
chat.roomInfo.can_invite