Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nheko
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nheko Reborn
nheko
Commits
2a7c6f2d
Verified
Commit
2a7c6f2d
authored
2 years ago
by
Nicolas Werner
Browse files
Options
Downloads
Patches
Plain Diff
Load components on demand
parent
570d7b8b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#3736
failed
2 years ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
resources/qml/ReplyPopup.qml
+1
-1
1 addition, 1 deletion
resources/qml/ReplyPopup.qml
resources/qml/Root.qml
+26
-167
26 additions, 167 deletions
resources/qml/Root.qml
with
27 additions
and
168 deletions
resources/qml/ReplyPopup.qml
+
1
−
1
View file @
2a7c6f2d
...
@@ -91,7 +91,7 @@ Rectangle {
...
@@ -91,7 +91,7 @@ Rectangle {
anchors.margins
:
8
anchors.margins
:
8
anchors.top
:
parent
.
top
anchors.top
:
parent
.
top
hoverEnabled
:
true
hoverEnabled
:
true
buttonTextColor
:
room
?
TimelineManager
.
userColor
(
room
.
thread
,
Nheko
.
colors
.
base
)
:
undefined
buttonTextColor
:
room
?
TimelineManager
.
userColor
(
room
.
thread
,
Nheko
.
colors
.
base
)
:
Nheko
.
colors
.
buttonText
image
:
"
:/icons/icons/ui/dismiss_thread.svg
"
image
:
"
:/icons/icons/ui/dismiss_thread.svg
"
width
:
22
width
:
22
height
:
22
height
:
22
...
...
This diff is collapsed.
Click to expand it.
resources/qml/Root.qml
+
26
−
167
View file @
2a7c6f2d
...
@@ -47,46 +47,24 @@ Pane {
...
@@ -47,46 +47,24 @@ Pane {
model
:
TimelineManager
.
completerFor
(
"
allemoji
"
,
""
)
model
:
TimelineManager
.
completerFor
(
"
allemoji
"
,
""
)
}
}
Component
{
id
:
userProfileComponent
UserProfile
{
}
}
function
showAliasEditor
(
settings
)
{
function
showAliasEditor
(
settings
)
{
var
dialog
=
a
liasEditor
.
createObject
(
timelineRoot
,
{
var
dialog
=
Qt
.
createComponent
(
"
qrc:/qml/dialogs/A
liasEditor.
qml
"
).
createObject
(
timelineRoot
,
{
"
roomSettings
"
:
settings
"
roomSettings
"
:
settings
});
});
dialog
.
show
();
dialog
.
show
();
destroyOnClose
(
dialog
);
destroyOnClose
(
dialog
);
}
}
Component
{
id
:
aliasEditor
AliasEditor
{
}
}
function
showPLEditor
(
settings
)
{
function
showPLEditor
(
settings
)
{
var
dialog
=
p
lEditor
.
createObject
(
timelineRoot
,
{
var
dialog
=
Qt
.
createComponent
(
"
qrc:/qml/dialogs/PowerLeve
lEditor.
qml
"
).
createObject
(
timelineRoot
,
{
"
roomSettings
"
:
settings
"
roomSettings
"
:
settings
});
});
dialog
.
show
();
dialog
.
show
();
destroyOnClose
(
dialog
);
destroyOnClose
(
dialog
);
}
}
Component
{
id
:
plApplyPrompt
PowerLevelSpacesApplyDialog
{
}
}
function
showSpacePLApplyPrompt
(
settings
,
editingModel
)
{
function
showSpacePLApplyPrompt
(
settings
,
editingModel
)
{
var
dialog
=
plApplyPrompt
.
createObject
(
timelineRoot
,
{
var
dialog
=
Qt
.
createComponent
(
"
qrc:/qml/dialogs/PowerLevelSpacesApplyDialog.qml
"
)
.
createObject
(
timelineRoot
,
{
"
roomSettings
"
:
settings
,
"
roomSettings
"
:
settings
,
"
editingModel
"
:
editingModel
"
editingModel
"
:
editingModel
});
});
...
@@ -94,86 +72,14 @@ Pane {
...
@@ -94,86 +72,14 @@ Pane {
destroyOnClose
(
dialog
);
destroyOnClose
(
dialog
);
}
}
Component
{
id
:
plEditor
PowerLevelEditor
{
}
}
Component
{
id
:
roomSettingsComponent
RoomSettings
{
}
}
Component
{
id
:
allowedRoomSettingsComponent
AllowedRoomsSettingsDialog
{
}
}
function
showAllowedRoomsEditor
(
settings
)
{
function
showAllowedRoomsEditor
(
settings
)
{
var
dialog
=
a
llowedRoomSettings
Component
.
createObject
(
timelineRoot
,
{
var
dialog
=
Qt
.
createComponent
(
"
qrc:/qml/dialogs/A
llowedRoom
s
Settings
Dialog.qml
"
)
.
createObject
(
timelineRoot
,
{
"
roomSettings
"
:
settings
"
roomSettings
"
:
settings
});
});
dialog
.
show
();
dialog
.
show
();
destroyOnClose
(
dialog
);
destroyOnClose
(
dialog
);
}
}
Component
{
id
:
roomMembersComponent
RoomMembers
{
}
}
Component
{
id
:
mobileCallInviteDialog
CallInvite
{
}
}
Component
{
id
:
quickSwitcherComponent
QuickSwitcher
{
}
}
Component
{
id
:
deviceVerificationDialog
DeviceVerification
{
}
}
Component
{
id
:
inviteDialog
InviteDialog
{
}
}
Component
{
id
:
packSettingsComponent
ImagePackSettingsDialog
{
}
}
Component
{
Component
{
id
:
readReceiptsDialog
id
:
readReceiptsDialog
...
@@ -182,62 +88,6 @@ Pane {
...
@@ -182,62 +88,6 @@ Pane {
}
}
Component
{
id
:
rawMessageDialog
RawMessageDialog
{
}
}
Component
{
id
:
logoutDialog
LogoutDialog
{
}
}
Component
{
id
:
joinRoomDialog
JoinRoomDialog
{
}
}
Component
{
id
:
confirmJoinRoomDialog
ConfirmJoinRoomDialog
{
}
}
Component
{
id
:
leaveRoomComponent
LeaveRoomDialog
{
}
}
Component
{
id
:
imageOverlay
ImageOverlay
{
}
}
Component
{
id
:
userSettingsPage
UserSettingsPage
{
}
}
Shortcut
{
Shortcut
{
sequence
:
StandardKey
.
Quit
sequence
:
StandardKey
.
Quit
onActivated
:
Qt
.
quit
()
onActivated
:
Qt
.
quit
()
...
@@ -246,7 +96,7 @@ Pane {
...
@@ -246,7 +96,7 @@ Pane {
Shortcut
{
Shortcut
{
sequence
:
"
Ctrl+K
"
sequence
:
"
Ctrl+K
"
onActivated
:
{
onActivated
:
{
var
quickSwitch
=
q
uickSwitcher
Component
.
createObject
(
timelineRoot
);
var
quickSwitch
=
Qt
.
createComponent
(
"
qrc:/qml/dialogs/Q
uickSwitcher
.qml
"
)
.
createObject
(
timelineRoot
);
quickSwitch
.
open
();
quickSwitch
.
open
();
destroyOnClosed
(
quickSwitch
);
destroyOnClosed
(
quickSwitch
);
}
}
...
@@ -270,19 +120,19 @@ Pane {
...
@@ -270,19 +120,19 @@ Pane {
Connections
{
Connections
{
function
onOpenLogoutDialog
()
{
function
onOpenLogoutDialog
()
{
var
dialog
=
l
ogoutDialog
.
createObject
(
timelineRoot
);
var
dialog
=
Qt
.
createComponent
(
"
qrc:/qml/dialogs/L
ogoutDialog.
qml
"
).
createObject
(
timelineRoot
);
dialog
.
open
();
dialog
.
open
();
destroyOnClose
(
dialog
);
destroyOnClose
(
dialog
);
}
}
function
onOpenJoinRoomDialog
()
{
function
onOpenJoinRoomDialog
()
{
var
dialog
=
j
oinRoomDialog
.
createObject
(
timelineRoot
);
var
dialog
=
Qt
.
createComponent
(
"
qrc:/qml/dialogs/J
oinRoomDialog.
qml
"
).
createObject
(
timelineRoot
);
dialog
.
show
();
dialog
.
show
();
destroyOnClose
(
dialog
);
destroyOnClose
(
dialog
);
}
}
function
onShowRoomJoinPrompt
(
summary
)
{
function
onShowRoomJoinPrompt
(
summary
)
{
var
dialog
=
c
onfirmJoinRoomDialog
.
createObject
(
timelineRoot
,
{
"
summary
"
:
summary
});
var
dialog
=
Qt
.
createComponent
(
"
qrc:/qml/dialogs/C
onfirmJoinRoomDialog.
qml
"
).
createObject
(
timelineRoot
,
{
"
summary
"
:
summary
});
dialog
.
show
();
dialog
.
show
();
destroyOnClose
(
dialog
);
destroyOnClose
(
dialog
);
}
}
...
@@ -292,7 +142,7 @@ Pane {
...
@@ -292,7 +142,7 @@ Pane {
Connections
{
Connections
{
function
onNewDeviceVerificationRequest
(
flow
)
{
function
onNewDeviceVerificationRequest
(
flow
)
{
var
dialog
=
d
eviceVerification
Dialog
.
createObject
(
timelineRoot
,
{
var
dialog
=
Qt
.
createComponent
(
"
qrc:/qml/dialogs/D
eviceVerification
.qml
"
)
.
createObject
(
timelineRoot
,
{
"
flow
"
:
flow
"
flow
"
:
flow
});
});
dialog
.
show
();
dialog
.
show
();
...
@@ -313,7 +163,7 @@ Pane {
...
@@ -313,7 +163,7 @@ Pane {
Connections
{
Connections
{
function
onOpenProfile
(
profile
)
{
function
onOpenProfile
(
profile
)
{
var
userProfile
=
userProfileComponent
.
createObject
(
timelineRoot
,
{
var
userProfile
=
Qt
.
createComponent
(
"
qrc:/qml/dialogs/UserProfile.qml
"
)
.
createObject
(
timelineRoot
,
{
"
profile
"
:
profile
"
profile
"
:
profile
});
});
userProfile
.
show
();
userProfile
.
show
();
...
@@ -321,7 +171,7 @@ Pane {
...
@@ -321,7 +171,7 @@ Pane {
}
}
function
onShowImagePackSettings
(
room
,
packlist
)
{
function
onShowImagePackSettings
(
room
,
packlist
)
{
var
packSet
=
packSettingsComponent
.
createObject
(
timelineRoot
,
{
var
packSet
=
Qt
.
createComponent
(
"
qrc:/qml/dialogs/ImagePackSettingsDialog.qml
"
)
.
createObject
(
timelineRoot
,
{
"
room
"
:
room
,
"
room
"
:
room
,
"
packlist
"
:
packlist
"
packlist
"
:
packlist
});
});
...
@@ -330,7 +180,7 @@ Pane {
...
@@ -330,7 +180,7 @@ Pane {
}
}
function
onOpenRoomMembersDialog
(
members
,
room
)
{
function
onOpenRoomMembersDialog
(
members
,
room
)
{
var
membersDialog
=
roomMembersComponent
.
createObject
(
timelineRoot
,
{
var
membersDialog
=
Qt
.
createComponent
(
"
qrc:/qml/dialogs/RoomMembers.qml
"
)
.
createObject
(
timelineRoot
,
{
"
members
"
:
members
,
"
members
"
:
members
,
"
room
"
:
room
"
room
"
:
room
});
});
...
@@ -339,7 +189,7 @@ Pane {
...
@@ -339,7 +189,7 @@ Pane {
}
}
function
onOpenRoomSettingsDialog
(
settings
)
{
function
onOpenRoomSettingsDialog
(
settings
)
{
var
roomSettings
=
r
oomSettings
Component
.
createObject
(
timelineRoot
,
{
var
roomSettings
=
Qt
.
createComponent
(
"
qrc:/qml/dialogs/R
oomSettings
.qml
"
)
.
createObject
(
timelineRoot
,
{
"
roomSettings
"
:
settings
"
roomSettings
"
:
settings
});
});
roomSettings
.
show
();
roomSettings
.
show
();
...
@@ -347,7 +197,7 @@ Pane {
...
@@ -347,7 +197,7 @@ Pane {
}
}
function
onOpenInviteUsersDialog
(
invitees
)
{
function
onOpenInviteUsersDialog
(
invitees
)
{
var
dialog
=
i
nviteDialog
.
createObject
(
timelineRoot
,
{
var
dialog
=
Qt
.
createComponent
(
"
qrc:/qml/dialogs/I
nviteDialog.
qml
"
).
createObject
(
timelineRoot
,
{
"
roomId
"
:
Rooms
.
currentRoom
.
roomId
,
"
roomId
"
:
Rooms
.
currentRoom
.
roomId
,
"
plainRoomName
"
:
Rooms
.
currentRoom
.
plainRoomName
,
"
plainRoomName
"
:
Rooms
.
currentRoom
.
plainRoomName
,
"
invitees
"
:
invitees
"
invitees
"
:
invitees
...
@@ -357,7 +207,7 @@ Pane {
...
@@ -357,7 +207,7 @@ Pane {
}
}
function
onOpenLeaveRoomDialog
(
roomid
,
reason
)
{
function
onOpenLeaveRoomDialog
(
roomid
,
reason
)
{
var
dialog
=
leaveRoomComponent
.
createObject
(
timelineRoot
,
{
var
dialog
=
Qt
.
createComponent
(
"
qrc:/qml/dialogs/LeaveRoomDialog.qml
"
)
.
createObject
(
timelineRoot
,
{
"
roomId
"
:
roomid
,
"
roomId
"
:
roomid
,
"
reason
"
:
reason
"
reason
"
:
reason
});
});
...
@@ -366,7 +216,7 @@ Pane {
...
@@ -366,7 +216,7 @@ Pane {
}
}
function
onShowImageOverlay
(
room
,
eventId
,
url
,
originalWidth
,
proportionalHeight
)
{
function
onShowImageOverlay
(
room
,
eventId
,
url
,
originalWidth
,
proportionalHeight
)
{
var
dialog
=
i
mageOverlay
.
createObject
(
timelineRoot
,
{
var
dialog
=
Qt
.
createComponent
(
"
qrc:/qml/dialogs/I
mageOverlay.
qml
"
).
createObject
(
timelineRoot
,
{
"
room
"
:
room
,
"
room
"
:
room
,
"
eventId
"
:
eventId
,
"
eventId
"
:
eventId
,
"
url
"
:
url
,
"
url
"
:
url
,
...
@@ -384,7 +234,7 @@ Pane {
...
@@ -384,7 +234,7 @@ Pane {
Connections
{
Connections
{
function
onNewInviteState
()
{
function
onNewInviteState
()
{
if
(
CallManager
.
haveCallInvite
&&
Settings
.
mobileMode
)
{
if
(
CallManager
.
haveCallInvite
&&
Settings
.
mobileMode
)
{
var
dialog
=
mobile
CallInvite
Dialog
.
createObject
(
timelineRoot
);
var
dialog
=
Qt
.
createComponent
(
"
qrc:/qml/dialogs/
CallInvite
.qml
"
)
.
createObject
(
timelineRoot
);
dialog
.
open
();
dialog
.
open
();
destroyOnClose
(
dialog
);
destroyOnClose
(
dialog
);
}
}
...
@@ -516,6 +366,15 @@ Pane {
...
@@ -516,6 +366,15 @@ Pane {
}
}
}
}
Component
{
id
:
userSettingsPage
UserSettingsPage
{
}
}
Snackbar
{
id
:
snackbar
}
Snackbar
{
id
:
snackbar
}
Connections
{
Connections
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment