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
7321af8a
Commit
7321af8a
authored
3 years ago
by
kamathmanu
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup more nits
parent
0f4a7b1b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
resources/qml/RoomDirectory.qml
+8
-19
8 additions, 19 deletions
resources/qml/RoomDirectory.qml
with
8 additions
and
19 deletions
resources/qml/RoomDirectory.qml
+
8
−
19
View file @
7321af8a
...
...
@@ -14,8 +14,6 @@ ApplicationWindow {
property
RoomDirectoryModel
publicRooms
visible
:
true
x
:
MainWindow
.
x
+
(
MainWindow
.
width
/
2
)
-
(
width
/
2
)
y
:
MainWindow
.
y
+
(
MainWindow
.
height
/
2
)
-
(
height
/
2
)
minimumWidth
:
650
minimumHeight
:
420
palette
:
Nheko
.
colors
...
...
@@ -57,7 +55,7 @@ ApplicationWindow {
RowLayout
{
spacing
:
Nheko
.
paddingMedium
anchors.fill
:
parent
anchors.margins
:
Nheko
.
padding
Medium
anchors.margins
:
Nheko
.
padding
Large
implicitHeight
:
textContent
.
height
Avatar
{
...
...
@@ -76,22 +74,14 @@ ApplicationWindow {
Layout.alignment
:
Qt
.
AlignLeft
width
:
parent
.
width
-
avatar
.
width
Layout.preferredWidth
:
parent
.
width
-
avatar
.
width
Layout.preferredHeight
:
roomNameRow
.
height
+
roomDescriptionRow
.
height
spacing
:
Nheko
.
paddingSmall
RowLayout
{
id
:
roomNameRow
spacing
:
0
ElidedLabel
{
Layout.alignment
:
Qt
.
AlignBottom
color
:
roomDirDelegate
.
importantText
elideWidth
:
textContent
.
width
*
0.5
-
Nheko
.
paddingMedium
font.pixelSize
:
fontMetrics
.
font
.
pixelSize
*
1.1
fullText
:
model
.
name
}
ElidedLabel
{
Layout.alignment
:
Qt
.
AlignBottom
color
:
roomDirDelegate
.
importantText
elideWidth
:
textContent
.
width
-
numMembersRectangle
.
width
-
buttonRectangle
.
width
font.pixelSize
:
fontMetrics
.
font
.
pixelSize
*
1.1
fullText
:
model
.
name
}
RowLayout
{
...
...
@@ -106,7 +96,6 @@ ApplicationWindow {
id
:
roomTopic
color
:
roomDirDelegate
.
unimportantText
font.weight
:
Font
.
Thin
Layout.alignment
:
Qt
.
AlignVCenter
|
Qt
.
AlignLeft
font.pixelSize
:
fontMetrics
.
font
.
pixelSize
elide
:
Text
.
ElideRight
...
...
@@ -163,7 +152,7 @@ ApplicationWindow {
footer
:
Item
{
anchors.horizontalCenter
:
parent
.
horizontalCenter
width
:
parent
.
width
visible
:
(
publicRooms
.
reachedEndOfPagination
==
false
)
&&
publicRooms
.
loadingMoreRooms
visible
:
!
publicRooms
.
reachedEndOfPagination
&&
publicRooms
.
loadingMoreRooms
// hacky but works
height
:
loadingSpinner
.
height
+
2
*
Nheko
.
paddingLarge
anchors.margins
:
Nheko
.
paddingLarge
...
...
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