Commit 49e86f2e authored by camilo higuita's avatar camilo higuita

more fixes

parent 244a6c44
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="180px" height="180px" viewBox="0 0 180 180" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
<!-- Generator: Sketch 3.3.1 (12005) - http://www.bohemiancoding.com/sketch -->
<title>Bench</title>
<desc>Created with Sketch.</desc>
<defs>
<filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="filter-1">
<feOffset dx="0" dy="-6" in="SourceAlpha" result="shadowOffsetInner1"></feOffset>
<feGaussianBlur stdDeviation="0" in="shadowOffsetInner1" result="shadowBlurInner1"></feGaussianBlur>
<feComposite in="shadowBlurInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.105 0" in="shadowInnerInner1" type="matrix" result="shadowMatrixInner1"></feColorMatrix>
<feMerge>
<feMergeNode in="SourceGraphic"></feMergeNode>
<feMergeNode in="shadowMatrixInner1"></feMergeNode>
</feMerge>
</filter>
<filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="filter-2">
<feOffset dx="0" dy="-4" in="SourceAlpha" result="shadowOffsetInner1"></feOffset>
<feGaussianBlur stdDeviation="0" in="shadowOffsetInner1" result="shadowBlurInner1"></feGaussianBlur>
<feComposite in="shadowBlurInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.105 0" in="shadowInnerInner1" type="matrix" result="shadowMatrixInner1"></feColorMatrix>
<feMerge>
<feMergeNode in="SourceGraphic"></feMergeNode>
<feMergeNode in="shadowMatrixInner1"></feMergeNode>
</feMerge>
</filter>
<filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="filter-3">
<feOffset dx="0" dy="-4" in="SourceAlpha" result="shadowOffsetInner1"></feOffset>
<feGaussianBlur stdDeviation="0" in="shadowOffsetInner1" result="shadowBlurInner1"></feGaussianBlur>
<feComposite in="shadowBlurInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.105 0" in="shadowInnerInner1" type="matrix" result="shadowMatrixInner1"></feColorMatrix>
<feMerge>
<feMergeNode in="SourceGraphic"></feMergeNode>
<feMergeNode in="shadowMatrixInner1"></feMergeNode>
</feMerge>
</filter>
<filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="filter-4">
<feOffset dx="-7" dy="-7" in="SourceAlpha" result="shadowOffsetInner1"></feOffset>
<feGaussianBlur stdDeviation="0" in="shadowOffsetInner1" result="shadowBlurInner1"></feGaussianBlur>
<feComposite in="shadowBlurInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.105 0" in="shadowInnerInner1" type="matrix" result="shadowMatrixInner1"></feColorMatrix>
<feMerge>
<feMergeNode in="SourceGraphic"></feMergeNode>
<feMergeNode in="shadowMatrixInner1"></feMergeNode>
</feMerge>
</filter>
<filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="filter-5">
<feOffset dx="0" dy="-4" in="SourceAlpha" result="shadowOffsetInner1"></feOffset>
<feGaussianBlur stdDeviation="0" in="shadowOffsetInner1" result="shadowBlurInner1"></feGaussianBlur>
<feComposite in="shadowBlurInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.105 0" in="shadowInnerInner1" type="matrix" result="shadowMatrixInner1"></feColorMatrix>
<feMerge>
<feMergeNode in="SourceGraphic"></feMergeNode>
<feMergeNode in="shadowMatrixInner1"></feMergeNode>
</feMerge>
</filter>
</defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
<g id="Bench" sketch:type="MSLayerGroup" transform="translate(6.000000, 23.000000)">
<rect id="Rectangle-1132-Copy" stroke="#535353" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="#FFFFFF" sketch:type="MSShapeGroup" x="28.2678571" y="96" width="110.553571" height="11"></rect>
<rect id="Rectangle-1132-Copy-2" stroke="#535353" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="#FFFFFF" sketch:type="MSShapeGroup" x="28.2678571" y="84" width="110.553571" height="7"></rect>
<rect id="Rectangle-1132-Copy-3" stroke="#535353" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="#FFFFFF" sketch:type="MSShapeGroup" x="28" y="72" width="110.553571" height="7"></rect>
<rect id="Rectangle-1132-Copy-6" fill="#D4AEAE" filter="url(#filter-1)" sketch:type="MSShapeGroup" x="30.2678571" y="99" width="110.553571" height="11"></rect>
<rect id="Rectangle-1132-Copy-4" fill="#D4AEAE" filter="url(#filter-2)" sketch:type="MSShapeGroup" x="30.2678571" y="87" width="110.553571" height="7"></rect>
<rect id="Rectangle-1132-Copy-5" fill="#D4AEAE" filter="url(#filter-3)" sketch:type="MSShapeGroup" x="30" y="75" width="110.553571" height="7"></rect>
<rect id="Rectangle-1132-Copy-9" stroke="#535353" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" sketch:type="MSShapeGroup" x="28.2678571" y="96" width="110.553571" height="11"></rect>
<rect id="Rectangle-1132-Copy-7" stroke="#535353" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" sketch:type="MSShapeGroup" x="28.2678571" y="84" width="110.553571" height="7"></rect>
<rect id="Rectangle-1132-Copy-8" stroke="#535353" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" sketch:type="MSShapeGroup" x="28" y="72" width="110.553571" height="7"></rect>
<ellipse id="Oval-951" stroke="#535353" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="#FFFFFF" sketch:type="MSShapeGroup" cx="141.821429" cy="13.4693878" rx="13.4821429" ry="13.4693878"></ellipse>
<ellipse id="Oval-951-Copy" fill="#F8B163" filter="url(#filter-4)" sketch:type="MSShapeGroup" cx="145.821429" cy="16.4693878" rx="13.4821429" ry="13.4693878"></ellipse>
<ellipse id="Oval-951-Copy-2" stroke="#535353" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" sketch:type="MSShapeGroup" cx="141.821429" cy="13.4693878" rx="13.4821429" ry="13.4693878"></ellipse>
<path d="M120.25,13.4693878 L114.857143,13.4693878" id="Line" stroke="#535353" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" sketch:type="MSShapeGroup"></path>
<path d="M128.339286,26.9387755 L124.52596,30.7521014" id="Line-Copy-18" stroke="#535353" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" sketch:type="MSShapeGroup"></path>
<path d="M141.91389,34.9247522 L141.91389,40.3125073" id="Line" stroke="#535353" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" sketch:type="MSShapeGroup"></path>
<rect id="Rectangle-288-Copy-4" stroke="#535353" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="#D4AEAE" sketch:type="MSShapeGroup" x="29" y="78" width="5" height="7"></rect>
<rect id="Rectangle-288-Copy-5" stroke="#535353" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="#D4AEAE" sketch:type="MSShapeGroup" x="134" y="78" width="5" height="7"></rect>
<rect id="Rectangle-288" stroke="#535353" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="#D4AEAE" sketch:type="MSShapeGroup" x="29" y="90" width="5" height="7"></rect>
<rect id="Rectangle-288-Copy-3" stroke="#535353" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="#D4AEAE" sketch:type="MSShapeGroup" x="134" y="90" width="5" height="7"></rect>
<rect id="Rectangle-288-Copy" stroke="#535353" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="#D4AEAE" sketch:type="MSShapeGroup" x="29" y="106" width="5" height="20"></rect>
<rect id="Rectangle-288-Copy-2" stroke="#535353" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="#D4AEAE" sketch:type="MSShapeGroup" x="134" y="106" width="5" height="20"></rect>
<path d="M165.041196,132.897437 C142.574437,125.183049 113.810032,120.551543 82.4557045,120.551543 C51.4781504,120.551543 23.0286479,125.072408 0.682858528,132.620672 L165.041196,132.897437 Z" id="Oval-946" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>
<path d="M165.041196,136.345894 C142.574437,128.631506 113.810032,124 82.4557045,124 C51.4781504,124 23.0286479,128.520865 0.682858528,136.069129 L165.041196,136.345894 Z" id="Oval-946-Copy" fill="#5FDC76" filter="url(#filter-5)" sketch:type="MSShapeGroup"></path>
<path d="M165.041196,132.897437 C142.574437,125.183049 113.810032,120.551543 82.4557045,120.551543 C51.4781504,120.551543 23.0286479,125.072408 0.682858528,132.620672 L165.041196,132.897437 Z" id="Oval-946-Copy-2" stroke="#535353" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" sketch:type="MSShapeGroup"></path>
</g>
</g>
</svg>
\ No newline at end of file
...@@ -3,5 +3,6 @@ ...@@ -3,5 +3,6 @@
<file>smartphone.svg</file> <file>smartphone.svg</file>
<file>Circuit.svg</file> <file>Circuit.svg</file>
<file>portrait.jpg</file> <file>portrait.jpg</file>
<file>Bench.svg</file>
</qresource> </qresource>
</RCC> </RCC>
...@@ -30,21 +30,21 @@ Maui.ApplicationWindow ...@@ -30,21 +30,21 @@ Maui.ApplicationWindow
/** UI PROPS**/ /** UI PROPS**/
property color cardColor: darkTheme ? "#4f5160" : Qt.darker(Maui.Style.buttonBackgroundColor, 1.05) property color cardColor: darkTheme ? "#4f5160" : Qt.darker(Maui.Style.buttonBackgroundColor, 1.05)
bgColor: darkTheme ? "#1f2532" : Maui.Style.backgroundColor // bgColor: darkTheme ? "#1f2532" : Maui.Style.backgroundColor
highlightColor: darkTheme ? "#ff6a83" : Maui.Style.highlightColor // highlightColor: darkTheme ? "#ff6a83" : Maui.Style.highlightColor
backgroundColor: darkTheme ? bgColor : Maui.Style.backgroundColor // backgroundColor: darkTheme ? bgColor : Maui.Style.backgroundColor
textColor: darkTheme ? "#fafafa" : Maui.Style.textColor // textColor: darkTheme ? "#fafafa" : Maui.Style.textColor
viewBackgroundColor: darkTheme ? "#1e2431" : Maui.Style.viewBackgroundColor // viewBackgroundColor: darkTheme ? "#1e2431" : Maui.Style.viewBackgroundColor
accentColor: darkTheme ? "#3c4862" : Maui.Style.highlightColor // accentColor: darkTheme ? "#3c4862" : Maui.Style.highlightColor
leftIcon.checked: footBar.visible leftIcon.checked: footBar.visible
// onSearchButtonClicked: footBar.visible = !footBar.visible // onSearchButtonClicked: footBar.visible = !footBar.visible
leftIcon.visible: true leftIcon.visible: true
rightIcon.visible: false rightIcon.visible: false
headBar.implicitHeight: toolBarHeight * 1.2 // headBar.implicitHeight: toolBarHeight * 1.2
headBar.drawBorder: false headBar.drawBorder: false
headBarBGColor: backgroundColor // headBarBGColor: backgroundColor
headBarFGColor: textColor // headBarFGColor: textColor
property bool darkTheme : Maui.FM.loadSettings("dark", "theme", false) == "true" property bool darkTheme : Maui.FM.loadSettings("dark", "theme", false) == "true"
...@@ -93,7 +93,7 @@ Maui.ApplicationWindow ...@@ -93,7 +93,7 @@ Maui.ApplicationWindow
{ {
id: _dialerButton id: _dialerButton
icon.name: "dialer-pad" icon.name: "dialer-pad"
icon.color: currentView === views.dialer ? highlightColor : textColor icon.color: currentView === views.dialer ? highlightColor : Kirigami.Theme.textColor
// text: qsTr("Dialer") // text: qsTr("Dialer")
// visible: isAndroid // visible: isAndroid
checked: currentView === views.dialer checked: currentView === views.dialer
...@@ -134,8 +134,7 @@ Maui.ApplicationWindow ...@@ -134,8 +134,7 @@ Maui.ApplicationWindow
Kirigami.Action Kirigami.Action
{ {
icon.name: "view-pim-contacts"
icon.name: "view-contacts"
// icon.color: currentView === views.contacts ? highlightColor : textColor // icon.color: currentView === views.contacts ? highlightColor : textColor
text: qsTr("Contacts") text: qsTr("Contacts")
// height: parent.height // height: parent.height
...@@ -165,7 +164,6 @@ Maui.ApplicationWindow ...@@ -165,7 +164,6 @@ Maui.ApplicationWindow
list.query : "fav=1" list.query : "fav=1"
headBar.visible: false headBar.visible: false
gridView: true gridView: true
} }
LogsView LogsView
...@@ -189,7 +187,7 @@ Maui.ApplicationWindow ...@@ -189,7 +187,7 @@ Maui.ApplicationWindow
height: toolBarHeight height: toolBarHeight
width: height width: height
color: highlightColor color: Kirigami.Theme.highlightColor
radius: Math.max(width, height) radius: Math.max(width, height)
ToolButton ToolButton
...@@ -218,9 +216,9 @@ Maui.ApplicationWindow ...@@ -218,9 +216,9 @@ Maui.ApplicationWindow
placeholderText: qsTr("Search %1 contacts... ".arg(_contacsView.view.count)) placeholderText: qsTr("Search %1 contacts... ".arg(_contacsView.view.count))
onAccepted: _contacsView.list.query = text onAccepted: _contacsView.list.query = text
onCleared: _contacsView.list.reset() onCleared: _contacsView.list.reset()
colorScheme.backgroundColor: cardColor // colorScheme.backgroundColor: cardColor
colorScheme.borderColor: "transparent" // colorScheme.borderColor: "transparent"
colorScheme.textColor: textColor // colorScheme.textColor: textColor
onTextEdited: _contacsView.list.query = text onTextEdited: _contacsView.list.query = text
onTextChanged: _contacsView.list.query = text onTextChanged: _contacsView.list.query = text
} }
......
...@@ -22,12 +22,14 @@ SwipeDelegate ...@@ -22,12 +22,14 @@ SwipeDelegate
property alias label3 : _label3 property alias label3 : _label3
property alias label4 : _label4 property alias label4 : _label4
property int radius : radiusV * 2
swipe.enabled: showMenuIcon swipe.enabled: showMenuIcon
background: Rectangle background: Rectangle
{ {
color: hovered ? Qt.lighter(cardColor) : cardColor color: hovered ? Qt.lighter(cardColor) : cardColor
// border.color: borderColor // border.color: borderColor
radius: radiusV * 2 radius: control.radius
// anchors.fill: control // anchors.fill: control
...@@ -52,7 +54,7 @@ SwipeDelegate ...@@ -52,7 +54,7 @@ SwipeDelegate
height: parent.height * 0.7 height: parent.height * 0.7
width: height width: height
anchors.centerIn: parent anchors.centerIn: parent
radius: radiusV * 2 radius: control.radius
color: color:
{ {
var c = Qt.rgba(Math.random(),Math.random(),Math.random(),1) var c = Qt.rgba(Math.random(),Math.random(),Math.random(),1)
...@@ -109,8 +111,8 @@ SwipeDelegate ...@@ -109,8 +111,8 @@ SwipeDelegate
anchors.centerIn: parent anchors.centerIn: parent
width: _img.width width: _img.width
height: _img.height height: _img.height
radius: radiusV * 2 radius: control.radius
border.color: borderColor // border.color: borderColor
} }
} }
} }
...@@ -168,7 +170,7 @@ SwipeDelegate ...@@ -168,7 +170,7 @@ SwipeDelegate
font.bold: true font.bold: true
font.weight: Font.Bold font.weight: Font.Bold
elide: Text.ElideMiddle elide: Text.ElideMiddle
color: textColor color: Kirigami.Theme.textColor
} }
Label Label
...@@ -182,7 +184,7 @@ SwipeDelegate ...@@ -182,7 +184,7 @@ SwipeDelegate
font.weight: Font.Light font.weight: Font.Light
wrapMode: Text.WrapAnywhere wrapMode: Text.WrapAnywhere
elide: Text.ElideMiddle elide: Text.ElideMiddle
color: textColor color: Kirigami.Theme.textColor
} }
} }
} }
...@@ -212,7 +214,7 @@ SwipeDelegate ...@@ -212,7 +214,7 @@ SwipeDelegate
font.weight: Font.Light font.weight: Font.Light
wrapMode: Text.WrapAnywhere wrapMode: Text.WrapAnywhere
elide: Text.ElideMiddle elide: Text.ElideMiddle
color: textColor color: Kirigami.Theme.textColor
} }
Label Label
...@@ -228,7 +230,7 @@ SwipeDelegate ...@@ -228,7 +230,7 @@ SwipeDelegate
font.weight: Font.Light font.weight: Font.Light
wrapMode: Text.WrapAnywhere wrapMode: Text.WrapAnywhere
elide: Text.ElideMiddle elide: Text.ElideMiddle
color: textColor color: Kirigami.Theme.textColor
} }
} }
} }
...@@ -257,57 +259,76 @@ SwipeDelegate ...@@ -257,57 +259,76 @@ SwipeDelegate
} }
} }
swipe.right: Row swipe.right: Rectangle
{ {
padding: space.medium
height: control.height height: control.height
width: _rowActions.implicitWidth
anchors.right: parent.right anchors.right: parent.right
spacing: space.big radius: control.radius
color: Qt.darker(cardColor, 1.5)
ToolButton anchors.rightMargin: radius
// Rectangle
// {
// anchors.left: parent.left
// color: parent.color
// height: parent.height
// width: parent.radius
// }
Row
{ {
icon.name: "draw-star" id: _rowActions
anchors.verticalCenter: parent.verticalCenter padding: space.medium
onClicked: anchors.fill: parent
{ spacing: space.big
control.favClicked(index)
swipe.close()
}
icon.color: model.fav == "1" ? "yellow" : textColor ToolButton
} {
icon.name: "draw-star"
anchors.verticalCenter: parent.verticalCenter
onClicked:
{
control.favClicked(index)
swipe.close()
}
ToolButton icon.color: model.fav == "1" ? "yellow" : Kirigami.Theme.textColor
{ }
icon.name: "document-share"
anchors.verticalCenter: parent.verticalCenter
onClicked: if(isAndroid) Maui.Android.shareContact(model.id)
}
ToolButton ToolButton
{
icon.name: "draw-text"
anchors.verticalCenter: parent.verticalCenter
onClicked:
{ {
_messageComposer.contact = list.get(index) icon.name: "document-share"
_messageComposer.open() anchors.verticalCenter: parent.verticalCenter
swipe.close() onClicked: if(isAndroid) Maui.Android.shareContact(model.id)
} }
}
ToolButton ToolButton
{ {
icon.name: "phone" icon.name: "draw-text"
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
onClicked:
{
_messageComposer.contact = list.get(index)
_messageComposer.open()
swipe.close()
}
}
onClicked: ToolButton
{ {
if(isAndroid) icon.name: "phone"
Maui.Android.call(model.tel) anchors.verticalCenter: parent.verticalCenter
onClicked:
{
if(isAndroid)
Maui.Android.call(model.tel)
swipe.close() swipe.close()
}
} }
} }
} }
} }
...@@ -18,13 +18,13 @@ Maui.Dialog ...@@ -18,13 +18,13 @@ Maui.Dialog
acceptButton.visible: false acceptButton.visible: false
footBar.implicitHeight: toolBarHeight * 1.3 // footBar.implicitHeight: toolBarHeight * 1.3
footBar.rightContent: Button footBar.rightContent: Button
{ {
visible: isMobile visible: isMobile
// Layout.fillHeight: visible // Layout.fillHeight: visible
// Layout.fillWidth: visible // Layout.fillWidth: visible
icon.name: "dialer-call" icon.name: "call-start"
text: qsTr("Call") text: qsTr("Call")
// display: ToolButton.TextUnderIcon // display: ToolButton.TextUnderIcon
Kirigami.Theme.backgroundColor: infoColor Kirigami.Theme.backgroundColor: infoColor
...@@ -38,7 +38,7 @@ Maui.Dialog ...@@ -38,7 +38,7 @@ Maui.Dialog
footBar.leftContent: Button footBar.leftContent: Button
{ {
visible: isMobile // visible: isMobile
// Layout.fillHeight: visible // Layout.fillHeight: visible
// Layout.fillWidth: visible // Layout.fillWidth: visible
text: qsTr("Close") text: qsTr("Close")
...@@ -53,11 +53,10 @@ Maui.Dialog ...@@ -53,11 +53,10 @@ Maui.Dialog
ToolButton ToolButton
{ {
Layout.fillHeight: true icon.name: "mail-message"
icon.name: "send-email"
visible: contact.email visible: contact.email
// text: qsTr("Message") // text: qsTr("Message")
display: ToolButton.TextUnderIcon // display: ToolButton.TextUnderIcon
onClicked: onClicked:
{ {
_messageComposer.contact = control.contact _messageComposer.contact = control.contact
...@@ -68,34 +67,32 @@ Maui.Dialog ...@@ -68,34 +67,32 @@ Maui.Dialog
ToolButton ToolButton
{ {
Layout.fillHeight: true icon.name: "dialog-messages"
icon.name: "send-sms"
visible: contact.tel visible: contact.tel
// text: qsTr("Message") // text: qsTr("Message")
display: ToolButton.TextUnderIcon // display: ToolButton.TextUnderIcon
onClicked: onClicked:
{ {
_messageComposer.contact = control.contact _messageComposer.contact = control.contact
_messageComposer.open() _messageComposer.open()
} }
} }
] ]
headBar.drawBorder: false headBar.drawBorder: false
headBar.rightContent:[ headBar.middleContent:[
ToolButton ToolButton
{ {
Layout.fillWidth: true // Layout.fillWidth: true
Layout.fillHeight: true // Layout.fillHeight: true
icon.name: "draw-star" icon.name: "draw-star"
text: qsTr("Fav") text: qsTr("Fav")
display: ToolButton.TextBesideIcon display: ToolButton.TextBesideIcon
icon.color: contact.fav == "1" ? "#FFD700" : textColor icon.color: contact.fav == "1" ? "#FFD700" : Kirigami.Theme.textColor
onClicked: onClicked:
{ {
contact["fav"] = contact.fav == "1" ? "0" : "1" contact["fav"] = contact.fav == "1" ? "0" : "1"
...@@ -107,8 +104,8 @@ Maui.Dialog ...@@ -107,8 +104,8 @@ Maui.Dialog
ToolButton ToolButton
{ {
Layout.fillWidth: true // Layout.fillWidth: true
Layout.fillHeight: true // Layout.fillHeight: true
icon.name: "document-share" icon.name: "document-share"
text: qsTr("Share") text: qsTr("Share")
display: ToolButton.TextBesideIcon display: ToolButton.TextBesideIcon
...@@ -117,8 +114,8 @@ Maui.Dialog ...@@ -117,8 +114,8 @@ Maui.Dialog
ToolButton ToolButton
{ {
Layout.fillWidth: true // Layout.fillWidth: true
Layout.fillHeight: true // Layout.fillHeight: true
icon.name: "document-edit" icon.name: "document-edit"
text: qsTr("Edit") text: qsTr("Edit")
...@@ -324,7 +321,7 @@ Maui.Dialog ...@@ -324,7 +321,7 @@ Maui.Dialog
text: qsTr("Account") text: qsTr("Account")
font.pointSize: fontSizes.default font.pointSize: fontSizes.default
font.weight: Font.Light font.weight: Font.Light
color: textColor color: Kirigami.Theme.textColor
} }
Label Label
...@@ -336,7 +333,7 @@ Maui.Dialog ...@@ -336,7 +333,7 @@ Maui.Dialog
text: contact.account text: contact.account
font.pointSize: fontSizes.big font.pointSize: fontSizes.big
font.weight: Font.Bold font.weight: Font.Bold
color: textColor color: Kirigami.Theme.textColor
wrapMode: Text.WrapAnywhere wrapMode: Text.WrapAnywhere
} }
} }
...@@ -353,7 +350,7 @@ Maui.Dialog ...@@ -353,7 +350,7 @@ Maui.Dialog
text: qsTr("Name") text: qsTr("Name")
font.pointSize: fontSizes.default font.pointSize: fontSizes.default
font.weight: Font.Light font.weight: Font.Light
color: textColor color: Kirigami.Theme.textColor
} }
Label Label
...@@ -365,7 +362,7 @@ Maui.Dialog ...@@ -365,7 +362,7 @@ Maui.Dialog
text: contact.n text: contact.n
font.pointSize: fontSizes.big font.pointSize: fontSizes.big
font.weight: Font.Bold font.weight: Font.Bold
color: textColor color: Kirigami.Theme.textColor
} }
} }
...@@ -382,7 +379,7 @@ Maui.Dialog ...@@ -382,7 +379,7 @@ Maui.Dialog
text: qsTr("Phone") text: qsTr("Phone")
font.pointSize: fontSizes.default font.pointSize: fontSizes.default
font.weight: Font.Light font.weight: Font.Light
color: textColor color: Kirigami.Theme.textColor
} }
Label Label
...@@ -391,7 +388,7 @@ Maui.Dialog ...@@ -391,7 +388,7 @@ Maui.Dialog
Layout.fillWidth: true Layout.fillWidth: true
font.pointSize: fontSizes.big font.pointSize: fontSizes.big
font.weight: Font.Bold font.weight: Font.Bold
color: textColor color: Kirigami.Theme.textColor
text: contact.tel text: contact.tel
} }
...@@ -410,7 +407,7 @@ Maui.Dialog ...@@ -410,7 +407,7 @@ Maui.Dialog
text: qsTr("Email") text: qsTr("Email")
font.pointSize: fontSizes.default font.pointSize: fontSizes.default
font.weight: Font.Light font.weight: Font.Light
color: textColor color: Kirigami.Theme.textColor
} }
...@@ -420,7 +417,7 @@ Maui.Dialog ...@@ -420,7 +417,7 @@ Maui.Dialog
Layout.fillWidth: true Layout.fillWidth: true
font.pointSize: fontSizes.big font.pointSize: fontSizes.big
font.weight: Font.Bold font.weight: Font.Bold
color: textColor color: Kirigami.Theme.textColor
text: contact.email text: contact.email
} }
} }
...@@ -439,7 +436,7 @@ Maui.Dialog ...@@ -439,7 +436,7 @@ Maui.Dialog
text: qsTr("Organization") text: qsTr("Organization")
font.pointSize: fontSizes.default font.pointSize: fontSizes.default
font.weight: Font.Light font.weight: Font.Light
color: textColor color: Kirigami.Theme.textColor
} }
Label Label
...@@ -450,7 +447,7 @@ Maui.Dialog ...@@ -450,7 +447,7 @@ Maui.Dialog
text: contact.org text: contact.org
font.pointSize: fontSizes.big font.pointSize: fontSizes.big
font.weight: Font.Bold font.weight: Font.Bold
color: textColor color: Kirigami.Theme.textColor
} }
} }
...@@ -467,7 +464,7 @@ Maui.Dialog ...@@ -467,7 +464,7 @@ Maui.Dialog
text: qsTr("Title") text: qsTr("Title")
font.pointSize: fontSizes.default font.pointSize: fontSizes.default
font.weight: Font.Light font.weight: Font.Light
color: textColor color: Kirigami.Theme.textColor
} }
Label Label
...@@ -478,7 +475,7 @@ Maui.Dialog ...