Commit 6e547d21 authored by camilo higuita's avatar camilo higuita

start shaping to the new changes on mauikit and leave it ready for plamo

parent 9b1538db
This diff is collapsed.
......@@ -2,7 +2,7 @@ import QtQuick 2.9
import QtQuick.Controls 2.3
import org.kde.mauikit 1.0 as Maui
import org.kde.kirigami 2.6 as Kirigami
import org.mauikit.accounts 1.0 as Accounts
//import org.mauikit.accounts 1.0 as Accounts
import QtQuick.Layouts 1.3
import "views/contacts"
......@@ -36,7 +36,6 @@ Maui.ApplicationWindow
textColor: darkTheme ? "#fafafa" : Maui.Style.textColor
viewBackgroundColor: darkTheme ? "#1e2431" : Maui.Style.viewBackgroundColor
accentColor: darkTheme ? "#3c4862" : Maui.Style.highlightColor
altToolBars: false
leftIcon.checked: footBar.visible
// onSearchButtonClicked: footBar.visible = !footBar.visible
......@@ -49,21 +48,21 @@ Maui.ApplicationWindow
property bool darkTheme : Maui.FM.loadSettings("dark", "theme", false) == "true"
Maui.Dialog
{
id: _accountsForm
defaultButtons: false
maxHeight: 300* unit
maxWidth: maxHeight
Accounts.AddAccountForm {
anchors.fill: parent
appId: "org.maui.dialer"
onAccountAdded: {
console.log("Account Secret :", secret);
}
}
}
// Maui.Dialog
// {
// id: _accountsForm
// defaultButtons: false
// maxHeight: 300* unit
// maxWidth: maxHeight
// Accounts.AddAccountForm {
// anchors.fill: parent
// appId: "org.maui.dialer"
// onAccountAdded: {
// console.log("Account Secret :", secret);
// }
// }
// }
mainMenu: [
......@@ -179,7 +178,7 @@ Maui.ApplicationWindow
id: _contacsView
list.query: ""
altToolBars: isMobile
// altToolBars: isMobile
showAccountFilter: isAndroid
Rectangle
......@@ -203,17 +202,17 @@ Maui.ApplicationWindow
}
}
headBarExit: false
// headBarExit: false
headBar.drawBorder: false
headBar.implicitHeight: toolBarHeight * 1.4
headBar.plegable: false
headBarItem: Maui.TextField
headBar.middleContent: Maui.TextField
{
id: _searchField
height: toolBarHeightAlt
anchors.centerIn: parent
// height: toolBarHeightAlt
// anchors.centerIn: parent
focusReason : Qt.PopupFocusReason
width: isWide ? _contacsView.width * 0.8 : _contacsView.width * 0.95
// height: rowHeight
......
......@@ -121,11 +121,11 @@ SwipeDelegate
{
id: _iconComponent
// Maui.ToolButton
// ToolButton
// {
// iconName: "view-media-artist"
// icon.name: "view-media-artist"
// size: iconSizes.big
// iconColor: "white"
// icon.color: "white"
// }
Label
......@@ -245,10 +245,10 @@ SwipeDelegate
{
id: _buttonsRow
anchors.centerIn: parent
Maui.ToolButton
ToolButton
{
visible: showMenuIcon
iconName: "overflow-menu"
icon.name: "overflow-menu"
onClicked: swipe.position < 0 ? swipe.close() : swipe.open(SwipeDelegate.Right)
}
......@@ -264,9 +264,9 @@ SwipeDelegate
anchors.right: parent.right
spacing: space.big
Maui.ToolButton
ToolButton
{
iconName: "draw-star"
icon.name: "draw-star"
anchors.verticalCenter: parent.verticalCenter
onClicked:
{
......@@ -274,19 +274,19 @@ SwipeDelegate
swipe.close()
}
iconColor: model.fav == "1" ? "yellow" : textColor
icon.color: model.fav == "1" ? "yellow" : textColor
}
Maui.ToolButton
ToolButton
{
iconName: "document-share"
icon.name: "document-share"
anchors.verticalCenter: parent.verticalCenter
onClicked: if(isAndroid) Maui.Android.shareContact(model.id)
}
Maui.ToolButton
ToolButton
{
iconName: "draw-text"
icon.name: "draw-text"
anchors.verticalCenter: parent.verticalCenter
onClicked:
{
......@@ -296,9 +296,9 @@ SwipeDelegate
}
}
Maui.ToolButton
ToolButton
{
iconName: "phone"
icon.name: "phone"
anchors.verticalCenter: parent.verticalCenter
onClicked:
......
......@@ -7,9 +7,9 @@ Maui.Page
{
id: control
colorScheme.accentColor: "#615f7d"
colorScheme.backgroundColor: backgroundColor
colorScheme.textColor: textColor
// colorScheme.accentColor: "#615f7d"
// colorScheme.backgroundColor: backgroundColor
// colorScheme.textColor: textColor
property alias list : _contactsList
property alias listModel : _contactsModel
......@@ -62,15 +62,15 @@ Maui.Page
visible: showAccountFilter
height: visible ? toolBarHeight * 1.5 : 0
width: visible ? parent.width : 0
Maui.ComboBox
ComboBox
{
id: _accountsCombobox
width: isWide ? control.width * 0.8 : control.width * 0.95
textRole: "account"
anchors.centerIn: parent
colorScheme.borderColor: "transparent"
colorScheme.viewBackgroundColor: cardColor
// colorScheme.borderColor: "transparent"
// colorScheme.viewBackgroundColor: cardColor
onActivated:
{
......
......@@ -178,7 +178,7 @@ Maui.Dialog
color: textColor
}
Maui.ComboBox
ComboBox
{
id: _accountsCombobox
textRole: "account"
......
......@@ -118,7 +118,7 @@ ItemDelegate
}
}
Maui.ToolButton
ToolButton
{
anchors
{
......@@ -127,9 +127,9 @@ ItemDelegate
margins: space.medium
}
iconColor: "#fff"
icon.color: "#fff"
visible: showMenuIcon
iconName: "overflow-menu"
icon.name: "overflow-menu"
onClicked: swipe.position < 0 ? swipe.close() : swipe.open(SwipeDelegate.Right)
}
......
......@@ -17,7 +17,7 @@ Maui.Page
// Qt.inputMethod.hide();
_contacsView.list.query = "tel=" + dialString
}
colorScheme.backgroundColor: backgroundColor
// colorScheme.backgroundColor: backgroundColor
headBar.visible: false
// footBar.middleContent: Maui.ToolButton
......@@ -166,9 +166,9 @@ Maui.Page
width: _layout.width
anchors.horizontalCenter: parent.horizontalCenter
quickButtons: Maui.ToolButton
quickButtons: ToolButton
{
iconName: "view-fullscreen"
icon.name: "view-fullscreen"
onClicked:
{
_suggestionListView.currentIndex = index
......
......@@ -8,12 +8,12 @@ import "../contacts"
Maui.Page
{
id: control
headBarExit: false
// headBarExit: false
headBar.visible: false
colorScheme.accentColor: "#615f7d"
colorScheme.backgroundColor: backgroundColor
colorScheme.textColor: textColor
// colorScheme.accentColor: "#615f7d"
// colorScheme.backgroundColor: backgroundColor
// colorScheme.textColor: textColor
BaseModel
{
......@@ -96,9 +96,9 @@ Maui.Page
anchors.horizontalCenter: parent.horizontalCenter
showMenuIcon: false
quickButtons: Maui.ToolButton
quickButtons: ToolButton
{
iconName: switch (model.type)
icon.name: switch (model.type)
{
case "INCOMING" : return "go-bottom";
case "OUTGOING" : return "go-top";
......@@ -106,7 +106,7 @@ Maui.Page
}
iconColor: switch (model.type)
icon.color: switch (model.type)
{
case "INCOMING" : return suggestedColor;
case "OUTGOING" : return warningColor;
......
......@@ -49,7 +49,7 @@ Maui.Dialog
{
anchors.fill: parent
Maui.ComboBox
ComboBox
{
id: _combobox
Layout.fillWidth: true
......@@ -59,9 +59,9 @@ Maui.Dialog
font.bold: true
font.weight: Font.Bold
font.pointSize: fontSizes.big
colorScheme.viewBackgroundColor: cardColor
colorScheme.borderColor: "transparent"
colorScheme.textColor: "#fff"
// colorScheme.viewBackgroundColor: cardColor
// colorScheme.borderColor: "transparent"
// colorScheme.textColor: "#fff"
model:
{
if(contact.email && contact.tel)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment