Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
af0c3d19
Commit
af0c3d19
authored
Nov 02, 2016
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(Menu): supports background
parent
cc4e0252
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
90 additions
and
66 deletions
+90
-66
Colors.qml
tests/ui/modules/Common/Colors.qml
+1
-0
Menu.qml
tests/ui/modules/Common/Menu/Menu.qml
+80
-63
MenuStyle.qml
tests/ui/modules/Common/Styles/Menu/MenuStyle.qml
+2
-1
MainWindow.qml
tests/ui/views/App/MainWindow/MainWindow.qml
+7
-2
No files found.
tests/ui/modules/Common/Colors.qml
View file @
af0c3d19
...
...
@@ -38,4 +38,5 @@ QtObject {
property
color
u
:
'
#B1B1B1
'
property
color
v
:
'
#E2E2E2
'
property
color
w
:
'
#A1A1A1
'
property
color
x
:
'
#96A5B1
'
}
tests/ui/modules/Common/Menu/Menu.qml
View file @
af0c3d19
...
...
@@ -8,7 +8,7 @@ import Common.Styles 1.0
// Responsive flat menu with visual indicators.
// ===================================================================
ColumnLayout
{
Rectangle
{
id
:
menu
property
int
entryHeight
...
...
@@ -19,6 +19,22 @@ ColumnLayout {
signal
entrySelected
(
int
entry
)
// -----------------------------------------------------------------
function
resetSelectedEntry
()
{
_selectedEntry
=
-
1
}
// -----------------------------------------------------------------
color
:
MenuStyle
.
backgroundColor
implicitHeight
:
content
.
height
width
:
entryWidth
ColumnLayout
{
id
:
content
anchors.centerIn
:
parent
spacing
:
MenuStyle
.
spacing
Repeater
{
...
...
@@ -95,4 +111,5 @@ ColumnLayout {
}
}
}
}
}
tests/ui/modules/Common/Styles/Menu/MenuStyle.qml
View file @
af0c3d19
...
...
@@ -6,7 +6,8 @@ import Common 1.0
// ===================================================================
QtObject
{
property
int
spacing
:
0
property
int
spacing
:
1
property
color
backgroundColor
:
Colors
.
x
property
QtObject
entry
:
QtObject
{
property
int
iconSize
:
24
...
...
tests/ui/views/App/MainWindow/MainWindow.qml
View file @
af0c3d19
...
...
@@ -126,8 +126,10 @@ ApplicationWindow {
spacing
:
0
Menu
{
id
:
menu
entryHeight
:
MainWindowStyle
.
menu
.
entryHeight
entryWidth
:
parent
.
width
entryWidth
:
MainWindowStyle
.
menu
.
width
entries
:
[{
entryName
:
qsTr
(
'
homeEntry
'
),
...
...
@@ -156,7 +158,10 @@ ApplicationWindow {
Layout.fillWidth
:
true
model
:
ContactsListModel
{}
// Use History list.
onClicked
:
setView
(
'
Conversation
'
)
onClicked
:
{
menu
.
resetSelectedEntry
()
setView
(
'
Conversation
'
)
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment