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
8a2a2bde
Commit
8a2a2bde
authored
Feb 15, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ui/views/App/Main/MainWindowMenuBar): style done
parent
c9d27e37
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
176 additions
and
17 deletions
+176
-17
en.ts
linphone-desktop/assets/languages/en.ts
+16
-0
fr.ts
linphone-desktop/assets/languages/fr.ts
+16
-0
resources.qrc
linphone-desktop/resources.qrc
+1
-0
MainWindowMenuBar.qml
linphone-desktop/ui/views/App/Main/MainWindowMenuBar.qml
+91
-13
MainWindowMenuBarStyle.qml
...sktop/ui/views/App/Styles/Main/MainWindowMenuBarStyle.qml
+47
-0
qmldir
linphone-desktop/ui/views/App/Styles/qmldir
+5
-4
No files found.
linphone-desktop/assets/languages/en.ts
View file @
8a2a2bde
...
...
@@ -428,6 +428,22 @@ Server url not configured.</translation>
<
source
>
about
<
/source
>
<
translation
>
About
<
/translation
>
<
/message
>
<
message
>
<
source
>
checkForUpdates
<
/source
>
<
translation
>
Check
for
updates
<
/translation
>
<
/message
>
<
message
>
<
source
>
quit
<
/source
>
<
translation
>
Quit
<
/translation
>
<
/message
>
<
message
>
<
source
>
importContacts
<
/source
>
<
translation
>
Import
contacts
from
vCards
<
/translation
>
<
/message
>
<
message
>
<
source
>
exportContacts
<
/source
>
<
translation
>
Export
contacts
as
vCards
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
ManageAccounts
<
/name
>
...
...
linphone-desktop/assets/languages/fr.ts
View file @
8a2a2bde
...
...
@@ -427,6 +427,22 @@ Url du serveur non configurée.</translation>
<
source
>
about
<
/source
>
<
translation
>
À
propos
<
/translation
>
<
/message
>
<
message
>
<
source
>
checkForUpdates
<
/source
>
<
translation
>
V
é
rifier
les
mises
à
jour
<
/translation
>
<
/message
>
<
message
>
<
source
>
quit
<
/source
>
<
translation
>
Quitter
<
/translation
>
<
/message
>
<
message
>
<
source
>
importContacts
<
/source
>
<
translation
>
Importer
des
contacts
depuis
des
vCards
<
/translation
>
<
/message
>
<
message
>
<
source
>
exportContacts
<
/source
>
<
translation
>
Exporter
des
contacts
sous
forme
de
vCards
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
ManageAccounts
<
/name
>
...
...
linphone-desktop/resources.qrc
View file @
8a2a2bde
...
...
@@ -319,6 +319,7 @@
<file>
ui/views/App/Styles/Main/ContactEditStyle.qml
</file>
<file>
ui/views/App/Styles/Main/ContactsStyle.qml
</file>
<file>
ui/views/App/Styles/Main/ConversationStyle.qml
</file>
<file>
ui/views/App/Styles/Main/MainWindowMenuBarStyle.qml
</file>
<file>
ui/views/App/Styles/Main/MainWindowStyle.qml
</file>
<file>
ui/views/App/Styles/qmldir
</file>
<file>
ui/views/App/Styles/Settings/SettingsWindowStyle.qml
</file>
...
...
linphone-desktop/ui/views/App/Main/MainWindowMenuBar.qml
View file @
8a2a2bde
...
...
@@ -2,27 +2,80 @@ import QtQuick 2.7
import
QtQuick
.
Controls
1.4
import
QtQuick
.
Controls
.
Styles
1.4
import
Common
1.0
as
Common
import
App
.
Styles
1.0
// ============================================================================
MenuBar
{
style
:
MenuBarStyle
{
background
:
Rectangle
{
anchors.fill
:
parent
color
:
'
#E8E8E7
'
color
:
MainWindowMenuBarStyle
.
color
Rectangle
{
anchors.bottom
:
parent
.
bottom
color
:
MainWindowMenuBarStyle
.
separator
.
color
height
:
MainWindowMenuBarStyle
.
separator
.
height
width
:
parent
.
width
}
}
itemDelegate
:
Rectangle
{
implicitHeight
:
text
.
height
+
8
implicitWidth
:
text
.
width
+
18
color
:
'
transparent
'
menuStyle
:
MenuStyle
{
frame
:
Item
{}
itemDelegate
{
background
:
Rectangle
{
color
:
(
styleData
.
selected
||
styleData
.
open
)
?
MainWindowMenuBarStyle
.
subMenu
.
color
.
selected
:
MainWindowMenuBarStyle
.
subMenu
.
color
.
normal
}
label
:
Label
{
color
:
styleData
.
selected
?
MainWindowMenuBarStyle
.
subMenu
.
text
.
color
.
selected
:
MainWindowMenuBarStyle
.
subMenu
.
text
.
color
.
normal
text
:
styleData
.
text
}
shortcut
:
Label
{
color
:
styleData
.
selected
?
MainWindowMenuBarStyle
.
subMenu
.
text
.
color
.
selected
:
MainWindowMenuBarStyle
.
subMenu
.
text
.
color
.
normal
text
:
styleData
.
shortcut
}
}
}
itemDelegate
:
Item
{
implicitHeight
:
menuItem
.
height
+
MainWindowMenuBarStyle
.
separator
.
spacing
implicitWidth
:
menuItem
.
width
Item
{
id
:
menuItem
Text
{
i
d
:
text
implicitHeight
:
text
.
height
+
MainWindowMenuBarStyle
.
menu
.
text
.
verticalMargins
*
2
i
mplicitWidth
:
text
.
width
+
MainWindowMenuBarStyle
.
menu
.
text
.
horizontalMargins
*
2
anchors.centerIn
:
parent
font
:
root
.
font
text
:
formatMnemonic
(
styleData
.
text
,
styleData
.
underlineMnemonic
)
color
:
styleData
.
open
?
'
#FE5E00
'
:
'
#515557
'
Text
{
id
:
text
anchors.centerIn
:
parent
color
:
styleData
.
open
?
MainWindowMenuBarStyle
.
menu
.
text
.
color
.
selected
:
MainWindowMenuBarStyle
.
menu
.
text
.
color
.
normal
text
:
formatMnemonic
(
styleData
.
text
,
styleData
.
underlineMnemonic
)
}
Rectangle
{
anchors.bottom
:
parent
.
bottom
color
:
MainWindowMenuBarStyle
.
menu
.
indicator
.
color
visible
:
styleData
.
open
height
:
MainWindowMenuBarStyle
.
menu
.
indicator
.
height
width
:
parent
.
width
}
}
}
}
...
...
@@ -33,8 +86,16 @@ import QtQuick.Controls.Styles 1.4
title
:
qsTr
(
'
options
'
)
MenuItem
{
shortcut
:
'
Ctrl+P
'
text
:
qsTr
(
'
settings
'
)
}
MenuSeparator
{}
MenuItem
{
shortcut
:
StandardKey
.
Quit
text
:
qsTr
(
'
quit
'
)
}
}
Menu
{
...
...
@@ -51,6 +112,17 @@ import QtQuick.Controls.Styles 1.4
MenuSeparator
{}
MenuItem
{
text
:
qsTr
(
'
importContacts
'
)
}
MenuItem
{
text
:
qsTr
(
'
exportContacts
'
)
}
MenuSeparator
{}
MenuItem
{
shortcut
:
'
Ctrl+D
'
text
:
qsTr
(
'
debugWindow
'
)
}
}
...
...
@@ -59,8 +131,14 @@ import QtQuick.Controls.Styles 1.4
title
:
qsTr
(
'
help
'
)
MenuItem
{
shortcut
:
StandardKey
.
HelpContents
text
:
qsTr
(
'
about
'
)
}
}
MenuSeparator
{}
MenuItem
{
text
:
qsTr
(
'
checkForUpdates
'
)
}
}
}
linphone-desktop/ui/views/App/Styles/Main/MainWindowMenuBarStyle.qml
0 → 100644
View file @
8a2a2bde
pragma
Singleton
import
QtQuick
2.7
import
Common
1.0
// =============================================================================
QtObject
{
property
color
color
:
Colors
.
v
property
QtObject
menu
:
QtObject
{
property
QtObject
text
:
QtObject
{
property
int
horizontalMargins
:
9
property
int
verticalMargins
:
4
property
QtObject
color
:
QtObject
{
property
color
selected
:
Colors
.
i
property
color
normal
:
Colors
.
b
}
}
property
QtObject
indicator
:
QtObject
{
property
color
color
:
Colors
.
i
property
int
height
:
2
}
}
property
QtObject
separator
:
QtObject
{
property
color
color
:
Colors
.
u
property
int
height
:
1
property
int
spacing
:
4
}
property
QtObject
subMenu
:
QtObject
{
property
QtObject
color
:
QtObject
{
property
color
selected
:
Colors
.
i
property
color
normal
:
Colors
.
k
}
property
QtObject
text
:
QtObject
{
property
QtObject
color
:
QtObject
{
property
color
selected
:
Colors
.
k
property
color
normal
:
Colors
.
b
}
}
}
}
linphone-desktop/ui/views/App/Styles/qmldir
View file @
8a2a2bde
...
...
@@ -7,9 +7,10 @@ module App.Styles
singleton CallStyle 1.0 Calls/CallStyle.qml
singleton CallsWindowStyle 1.0 Calls/CallsWindowStyle.qml
singleton ContactEditStyle 1.0 Main/ContactEditStyle.qml
singleton ContactsStyle 1.0 Main/ContactsStyle.qml
singleton ConversationStyle 1.0 Main/ConversationStyle.qml
singleton MainWindowStyle 1.0 Main/MainWindowStyle.qml
singleton ContactEditStyle 1.0 Main/ContactEditStyle.qml
singleton ContactsStyle 1.0 Main/ContactsStyle.qml
singleton ConversationStyle 1.0 Main/ConversationStyle.qml
singleton MainWindowMenuBarStyle 1.0 Main/MainWindowMenuBarStyle.qml
singleton MainWindowStyle 1.0 Main/MainWindowStyle.qml
singleton SettingsWindowStyle 1.0 Settings/SettingsWindowStyle.qml
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