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
b631f435
Commit
b631f435
authored
Feb 16, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ui/views/App/Main/MainWindow): hide menu bar when small view is displayed
parent
98f7f178
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
11 deletions
+40
-11
Collapse.qml
linphone-desktop/ui/modules/Common/Collapse.qml
+1
-0
MainWindow.qml
linphone-desktop/ui/views/App/Main/MainWindow.qml
+17
-11
MainWindowMenuBar.qml
linphone-desktop/ui/views/App/Main/MainWindowMenuBar.qml
+21
-0
MainWindowMenuBarStyle.qml
...sktop/ui/views/App/Styles/Main/MainWindowMenuBarStyle.qml
+1
-0
No files found.
linphone-desktop/ui/modules/Common/Collapse.qml
View file @
b631f435
...
...
@@ -15,6 +15,7 @@ Item {
property
var
target
property
int
targetHeight
readonly
property
alias
isCollapsed
:
collapse
.
_collapsed
property
bool
_collapsed
:
false
property
var
_savedHeight
...
...
linphone-desktop/ui/views/App/Main/MainWindow.qml
View file @
b631f435
...
...
@@ -16,7 +16,7 @@ import App.Styles 1.0
Controls1.ApplicationWindow
{
id
:
window
property
string
_currentView
:
''
property
string
_currentView
property
var
_lockedInfo
// ---------------------------------------------------------------------------
...
...
@@ -84,15 +84,25 @@ Controls1.ApplicationWindow {
title
:
MainWindowStyle
.
title
visible
:
true
onActiveFocusItemChanged
:
activeFocusItem
==
null
&&
smartSearchBar
.
hideMenu
()
// ---------------------------------------------------------------------------
// Me
r
nu bar.
// Menu bar.
// ---------------------------------------------------------------------------
menuBar
:
MainWindowMenuBar
{}
menuBar
:
MainWindowMenuBar
{
hide
:
!
collapse
.
isCollapsed
}
// ---------------------------------------------------------------------------
Component.onCompleted
:
_setView
(
'
Home
'
)
onActiveFocusItemChanged
:
activeFocusItem
==
null
&&
smartSearchBar
.
hideMenu
()
// ---------------------------------------------------------------------------
ColumnLayout
{
id
:
container
anchors.fill
:
parent
spacing
:
0
...
...
@@ -149,12 +159,10 @@ Controls1.ApplicationWindow {
Text
{
clip
:
true
font
{
pointSize
:
MainWindowStyle
.
autoAnswerStatus
.
text
.
fontSize
}
color
:
MainWindowStyle
.
autoAnswerStatus
.
text
.
color
font.pointSize
:
MainWindowStyle
.
autoAnswerStatus
.
text
.
fontSize
text
:
qsTr
(
'
autoAnswerStatus
'
)
width
:
parent
.
width
color
:
MainWindowStyle
.
autoAnswerStatus
.
text
.
color
}
}
...
...
@@ -238,8 +246,6 @@ Controls1.ApplicationWindow {
Layout.fillHeight
:
true
Layout.fillWidth
:
true
Component.onCompleted
:
setView
(
'
Home
'
)
}
}
}
...
...
linphone-desktop/ui/views/App/Main/MainWindowMenuBar.qml
View file @
b631f435
...
...
@@ -9,6 +9,27 @@ import App.Styles 1.0
// ============================================================================
MenuBar
{
id
:
container
// --------------------------------------------------------------------------
property
bool
hide
:
false
// --------------------------------------------------------------------------
// Workaround to hide toolbar.
// Use private properties of MenuBar.
__contentItem.height
:
hide
?
0
:
MainWindowMenuBarStyle
.
height
__contentItem.transform
:
Scale
{
yScale
:
Number
(
!
hide
)
}
// --------------------------------------------------------------------------
style
:
MenuBarStyle
{
background
:
Rectangle
{
color
:
MainWindowMenuBarStyle
.
color
...
...
linphone-desktop/ui/views/App/Styles/Main/MainWindowMenuBarStyle.qml
View file @
b631f435
...
...
@@ -7,6 +7,7 @@ import Common 1.0
QtObject
{
property
color
color
:
Colors
.
v
property
int
height
:
27
property
QtObject
menu
:
QtObject
{
property
QtObject
text
:
QtObject
{
...
...
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