Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-client-qt
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
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
savoirfairelinux
jami-client-qt
Commits
d4b5ec42
Commit
d4b5ec42
authored
4 years ago
by
Albert Babí Oller
Committed by
Sébastien Blin
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
conference: add host indicator
Change-Id: Ib21272302d37a7d508eb59a706bb73a8251a0e3a
parent
b35f26e3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
images/icons/star_outline-24px.svg
+1
-0
1 addition, 0 deletions
images/icons/star_outline-24px.svg
resources.qrc
+1
-0
1 addition, 0 deletions
resources.qrc
src/mainview/components/ParticipantOverlay.qml
+22
-2
22 additions, 2 deletions
src/mainview/components/ParticipantOverlay.qml
with
24 additions
and
2 deletions
images/icons/star_outline-24px.svg
0 → 100644
+
1
−
0
View file @
d4b5ec42
<svg
xmlns=
"http://www.w3.org/2000/svg"
height=
"24"
viewBox=
"0 0 24 24"
width=
"24"
><path
d=
"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"
/></svg>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
resources.qrc
+
1
−
0
View file @
d4b5ec42
...
...
@@ -136,5 +136,6 @@
<file>images/logo-jami-standard-coul.svg</file>
<file>images/logo-jami-standard-coul-white.svg</file>
<file>images/icons/moderator.svg</file>
<file>images/icons/star_outline-24px.svg</file>
</qresource>
</RCC>
This diff is collapsed.
Click to expand it.
src/mainview/components/ParticipantOverlay.qml
+
22
−
2
View file @
d4b5ec42
...
...
@@ -42,6 +42,7 @@ Rectangle {
// TODO: properties should be
property
string
uri
:
overlayMenu
.
uri
property
bool
participantIsHost
:
false
property
bool
participantIsModerator
:
false
property
bool
participantIsMuted
:
false
...
...
@@ -61,7 +62,7 @@ Rectangle {
var
isHost
=
CallAdapter
.
isCurrentHost
()
var
isModerator
=
CallAdapter
.
isCurrentModerator
()
var
participantIsHost
=
CallAdapter
.
participantIsHost
(
overlayMenu
.
uri
)
participantIsHost
=
CallAdapter
.
participantIsHost
(
overlayMenu
.
uri
)
participantIsModerator
=
CallAdapter
.
isModerator
(
overlayMenu
.
uri
)
overlayMenu
.
showSetModerator
=
isHost
&&
!
isLocal
&&
!
participantIsModerator
overlayMenu
.
showUnsetModerator
=
isHost
&&
!
isLocal
&&
participantIsModerator
...
...
@@ -82,7 +83,7 @@ Rectangle {
id
:
participantIndicators
width
:
indicatorsRowLayout
.
width
height
:
shapeHeight
visible
:
participantIsModerator
||
participantIsMuted
visible
:
participantIsHost
||
participantIsModerator
||
participantIsMuted
color
:
"
transparent
"
Shape
{
...
...
@@ -101,6 +102,25 @@ Rectangle {
height
:
parent
.
height
anchors.verticalCenter
:
parent
.
verticalCenter
ResponsiveImage
{
id
:
isHostIndicator
visible
:
participantIsHost
Layout.alignment
:
Qt
.
AlignVCenter
Layout.leftMargin
:
6
containerHeight
:
12
containerWidth
:
12
source
:
"
qrc:/images/icons/star_outline-24px.svg
"
layer
{
enabled
:
true
effect
:
ColorOverlay
{
color
:
JamiTheme
.
whiteColor
}
mipmap
:
false
smooth
:
true
}
}
ResponsiveImage
{
id
:
isModeratorIndicator
...
...
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