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
f3ab0aba
Commit
f3ab0aba
authored
2 years ago
by
Loren Burkholder
Browse files
Options
Downloads
Patches
Plain Diff
Change members button color when hovered
parent
eced5c83
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
resources/qml/EncryptionIndicator.qml
+5
-3
5 additions, 3 deletions
resources/qml/EncryptionIndicator.qml
resources/qml/TopBar.qml
+17
-17
17 additions, 17 deletions
resources/qml/TopBar.qml
with
22 additions
and
20 deletions
resources/qml/EncryptionIndicator.qml
+
5
−
3
View file @
f3ab0aba
...
...
@@ -14,10 +14,12 @@ Image {
property
int
trust
:
Crypto
.
Unverified
property
string
unencryptedIcon
:
"
:/icons/icons/ui/shield-filled-cross.svg
"
property
color
unencryptedColor
:
Nheko
.
theme
.
error
property
color
unencryptedHoverColor
:
unencryptedColor
property
bool
hovered
:
ma
.
hovered
property
string
sourceUrl
:
{
if
(
!
encrypted
)
return
"
image://colorimage/
"
+
unencryptedIcon
+
"
?
"
;
return
"
image://colorimage/
"
+
unencryptedIcon
+
"
?
"
;
switch
(
trust
)
{
case
Crypto
.
Verified
:
...
...
@@ -46,10 +48,10 @@ Image {
return
sourceUrl
+
Nheko
.
theme
.
error
;
}
}
else
{
return
sourceUrl
+
unencryptedColor
;
return
sourceUrl
+
(
stateImg
.
hovered
?
unencryptedHoverColor
:
unencryptedColor
)
;
}
}
ToolTip.visible
:
ma
.
hovered
ToolTip.visible
:
stateImg
.
hovered
ToolTip.text
:
{
if
(
!
encrypted
)
return
qsTr
(
"
This message is not encrypted!
"
);
...
...
This diff is collapsed.
Click to expand it.
resources/qml/TopBar.qml
+
17
−
17
View file @
f3ab0aba
...
...
@@ -242,26 +242,26 @@ Pane {
enabled
:
false
unencryptedIcon
:
"
:/icons/icons/ui/people.svg
"
unencryptedColor
:
Nheko
.
colors
.
buttonText
}
background
:
null
ToolTip.
delay
:
Nheko
.
tooltipDelay
ToolTip.text
:
{
if
(
!
isEncrypted
)
return
qsTr
(
"
Show room members.
"
);
switch
(
trustlevel
)
{
case
Crypto
.
Verified
:
return
qsTr
(
"
This room contains only verified devices.
"
);
case
Crypto
.
TOFU
:
return
qsTr
(
"
This room contains verified devices and devices which have never changed their master key.
"
);
default
:
return
qsTr
(
"
This room contains unverified devices!
"
);
unencryptedHoverColor
:
Nheko
.
colors
.
highlight
hovered
:
parent
.
hovered
ToolTip.delay
:
Nheko
.
tooltipDelay
ToolTip.
text
:
{
if
(
!
isEncrypted
)
return
qsTr
(
"
Show room members.
"
);
switch
(
trustlevel
)
{
case
Crypto
.
Verified
:
return
qsTr
(
"
This room contains only verified devices.
"
);
case
Crypto
.
TOFU
:
return
qsTr
(
"
This room contains verified devices and devices which have never changed their master key.
"
);
default
:
return
qsTr
(
"
This room contains unverified devices!
"
);
}
}
}
ToolTip.visible
:
hovered
background
:
null
onClicked
:
TimelineManager
.
openRoomMembers
(
room
)
}
...
...
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