Commit 6e1cdc70 authored by Ronan Abhamon's avatar Ronan Abhamon

refactoring (in progress)

parent 0813eda3
...@@ -4,7 +4,6 @@ import QtQuick 2.7 ...@@ -4,7 +4,6 @@ import QtQuick 2.7
QtObject { QtObject {
property color a: 'transparent' property color a: 'transparent'
property color b: '#5E5E5F' // Pressed toolbar. property color b: '#5E5E5F' // Pressed toolbar.
property color c: '#C5C5C5' // Released toolbar.
property color d: '#5A585B' // Text color. property color d: '#5A585B' // Text color.
...@@ -12,8 +11,6 @@ QtObject { ...@@ -12,8 +11,6 @@ QtObject {
property color f: '#808080' // Popup shadow. property color f: '#808080' // Popup shadow.
property color l: '#000000' // Text color. property color l: '#000000' // Text color.
property color m: '#D1D1D1' // SmallButton Normal. property color m: '#D1D1D1' // SmallButton Normal.
...@@ -35,6 +32,8 @@ QtObject { ...@@ -35,6 +32,8 @@ QtObject {
// ----------------------------------------------------------------- // -----------------------------------------------------------------
property color g: '#6B7A86' property color g: '#6B7A86'
property color g10: '#1A6b7a86'
property color g20: '#336b7a86'
property color h: '#687680' property color h: '#687680'
property color i: '#FE5E00' property color i: '#FE5E00'
property color j: '#4B5964' property color j: '#4B5964'
......
...@@ -10,7 +10,10 @@ import Common.Styles 1.0 ...@@ -10,7 +10,10 @@ import Common.Styles 1.0
ScrollBar { ScrollBar {
id: scrollBar id: scrollBar
background: ForceScrollBarStyle.background background: Rectangle {
anchors.fill: parent
color: ForceScrollBarStyle.backgroundColor
}
contentItem: Rectangle { contentItem: Rectangle {
color: scrollBar.pressed color: scrollBar.pressed
? ForceScrollBarStyle.color.pressed ? ForceScrollBarStyle.color.pressed
......
...@@ -6,9 +6,7 @@ import Common 1.0 ...@@ -6,9 +6,7 @@ import Common 1.0
// =================================================================== // ===================================================================
QtObject { QtObject {
property Rectangle background: Rectangle { property color backgroundColor: Colors.g20
color: Colors.a
}
property Rectangle contentItem: Rectangle { property Rectangle contentItem: Rectangle {
implicitHeight: 100 implicitHeight: 100
...@@ -18,7 +16,7 @@ QtObject { ...@@ -18,7 +16,7 @@ QtObject {
property QtObject color: QtObject { property QtObject color: QtObject {
property color hovered: Colors.h property color hovered: Colors.h
property color normal: Colors.c property color normal: Colors.g20
property color pressed: Colors.b property color pressed: Colors.b
} }
} }
...@@ -7,13 +7,14 @@ import Linphone.Styles 1.0 ...@@ -7,13 +7,14 @@ import Linphone.Styles 1.0
// =================================================================== // ===================================================================
Item { Rectangle {
property alias actions: actionBar.data property alias actions: actionBar.data
property alias sipAddressColor: description.sipAddressColor property alias sipAddressColor: description.sipAddressColor
property alias usernameColor: description.usernameColor property alias usernameColor: description.usernameColor
property var contact property var contact
color: 'transparent' // No color by default.
height: ContactStyle.height height: ContactStyle.height
RowLayout { RowLayout {
......
...@@ -3,11 +3,18 @@ import QtQuick 2.7 ...@@ -3,11 +3,18 @@ import QtQuick 2.7
import Common 1.0 import Common 1.0
// ===================================================================
QtObject { QtObject {
property QtObject contact: QtObject {
property color colorA: Colors.g10
property color colorB: Colors.a
property int height: 60
}
property QtObject legend: QtObject { property QtObject legend: QtObject {
property color backgroundColor: Colors.u property color backgroundColor: Colors.u
property color color: Colors.k property color color: Colors.k
property int bottomMargin: 10
property int fontSize: 12 property int fontSize: 12
property int height: 30 property int height: 30
property int iconSize: 10 property int iconSize: 10
......
...@@ -9,8 +9,9 @@ import Linphone.Styles 1.0 ...@@ -9,8 +9,9 @@ import Linphone.Styles 1.0
ColumnLayout { ColumnLayout {
property alias model: view.model property alias model: view.model
spacing: 0
Rectangle { Rectangle {
Layout.bottomMargin: TimelineStyle.legend.bottomMargin
Layout.fillWidth: true Layout.fillWidth: true
Layout.preferredHeight: TimelineStyle.legend.height Layout.preferredHeight: TimelineStyle.legend.height
color: TimelineStyle.legend.backgroundColor color: TimelineStyle.legend.backgroundColor
...@@ -48,7 +49,11 @@ ColumnLayout { ...@@ -48,7 +49,11 @@ ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
delegate: Contact { delegate: Contact {
color: index % 2 == 0
? TimelineStyle.contact.colorA
: TimelineStyle.contact.colorB
contact: $contact contact: $contact
height: TimelineStyle.contact.height
width: parent.width width: parent.width
} }
} }
......
...@@ -100,7 +100,7 @@ ApplicationWindow { ...@@ -100,7 +100,7 @@ ApplicationWindow {
Layout.fillHeight: true Layout.fillHeight: true
Layout.maximumWidth: MainWindowStyle.menu.width Layout.maximumWidth: MainWindowStyle.menu.width
Layout.preferredWidth: MainWindowStyle.menu.width Layout.preferredWidth: MainWindowStyle.menu.width
spacing: MainWindowStyle.menu.spacing spacing: 0
Menu { Menu {
entryHeight: MainWindowStyle.menu.entryHeight entryHeight: MainWindowStyle.menu.entryHeight
......
...@@ -14,7 +14,6 @@ QtObject { ...@@ -14,7 +14,6 @@ QtObject {
property QtObject menu: QtObject { property QtObject menu: QtObject {
property int entryHeight: 50 property int entryHeight: 50
property int spacing: 0
property int width: 250 property int width: 250
} }
......
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