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
47a7adf8
Verified
Commit
47a7adf8
authored
4 years ago
by
Nicolas Werner
Browse files
Options
Downloads
Patches
Plain Diff
Use readonly properties where possible
parent
9b8e6c7f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#876
passed
4 years ago
Stage: build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
resources/qml/MessageView.qml
+1
-1
1 addition, 1 deletion
resources/qml/MessageView.qml
resources/qml/TimelineView.qml
+1
-1
1 addition, 1 deletion
resources/qml/TimelineView.qml
resources/qml/ui/Ripple.qml
+3
-3
3 additions, 3 deletions
resources/qml/ui/Ripple.qml
with
5 additions
and
5 deletions
resources/qml/MessageView.qml
+
1
−
1
View file @
47a7adf8
...
...
@@ -43,7 +43,7 @@ ScrollView {
property
alias
model
:
row
.
model
// use comma to update on scroll
property
var
attachedPos
:
chat
.
contentY
,
attached
?
chat
.
mapFromItem
(
attached
,
attached
?
attached
.
width
-
width
:
0
,
-
height
)
:
null
property
int
padding
:
4
readonly
property
int
padding
:
4
visible
:
Settings
.
buttonsInTimeline
&&
!!
attached
&&
(
attached
.
hovered
||
messageActionHover
.
hovered
)
x
:
attached
?
attachedPos
.
x
:
0
...
...
This diff is collapsed.
Click to expand it.
resources/qml/TimelineView.qml
+
1
−
1
View file @
47a7adf8
...
...
@@ -20,7 +20,7 @@ Page {
property
var
colors
:
currentActivePalette
property
var
systemInactive
property
var
inactiveColors
:
currentInactivePalette
?
currentInactivePalette
:
systemInactive
property
int
avatarSize
:
40
readonly
property
int
avatarSize
:
40
property
real
highlightHue
:
colors
.
highlight
.
hslHue
property
real
highlightSat
:
colors
.
highlight
.
hslSaturation
property
real
highlightLight
:
colors
.
highlight
.
hslLightness
...
...
This diff is collapsed.
Click to expand it.
resources/qml/ui/Ripple.qml
+
3
−
3
View file @
47a7adf8
...
...
@@ -13,9 +13,9 @@ Item {
property
real
radius
:
0
property
color
color
:
"
#22000000
"
property
real
maxRadius
:
Math
.
max
(
width
,
height
)
property
real
radiusAnimationRate
:
0.05
property
real
radiusTailAnimationRate
:
0.5
property
real
opacityAnimationDuration
:
300
readonly
property
real
radiusAnimationRate
:
0.05
readonly
property
real
radiusTailAnimationRate
:
0.5
readonly
property
real
opacityAnimationDuration
:
300
readonly
property
real
diameter
:
radius
*
2
property
real
centerX
property
real
centerY
...
...
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