Commit 09b43034 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(app): use `Colors` instead of `Constants.colors` in qml styles

parent a7423b4b
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
<file>ui/modules/Linphone/Chat/Message.qml</file> <file>ui/modules/Linphone/Chat/Message.qml</file>
<file>ui/modules/Linphone/Chat/OutgoingMessage.qml</file> <file>ui/modules/Linphone/Chat/OutgoingMessage.qml</file>
<file>ui/modules/Linphone/Collapse.qml</file> <file>ui/modules/Linphone/Collapse.qml</file>
<file>ui/modules/Linphone/Colors.qml</file>
<file>ui/modules/Linphone/Constants.qml</file> <file>ui/modules/Linphone/Constants.qml</file>
<file>ui/modules/Linphone/Contact/Avatar.qml</file> <file>ui/modules/Linphone/Contact/Avatar.qml</file>
<file>ui/modules/Linphone/Contact/ContactDescription.qml</file> <file>ui/modules/Linphone/Contact/ContactDescription.qml</file>
......
pragma Singleton
import QtQuick 2.7
QtObject {
property string a: 'transparent'
property string b: '#5E5E5F' // Pressed toolbar.
property string c: '#C5C5C5' // Released toolbar.
property string d: '#5A585B' // Text color.
property string e: '#DEDEDE' // Timeline separator
property string f: '#808080' // Popup shadow.
property string g: '#8E8E8E' // MenuEntry Normal.
property string h: '#707070' // MenuEntry Hovered.
property string i: '#FE5E00' // MenuEntry Pressed.
property string j: '#434343' // MenuEntry Selected.
property string k: '#FFFFFF' // Text color.
property string l: '#000000' // Text color.
}
...@@ -4,24 +4,4 @@ import QtQuick 2.7 ...@@ -4,24 +4,4 @@ import QtQuick 2.7
QtObject { QtObject {
property int zPopup: 999 property int zPopup: 999
property int zMax: 999999 property int zMax: 999999
property QtObject colors: QtObject {
property string a: 'transparent'
property string b: '#5E5E5F' // Pressed toolbar.
property string c: '#C5C5C5' // Released toolbar.
property string d: '#5A585B' // Text color.
property string e: '#DEDEDE' // Timeline separator
property string f: '#808080' // Popup shadow.
property string g: '#8E8E8E' // MenuEntry Normal.
property string h: '#707070' // MenuEntry Hovered.
property string i: '#FE5E00' // MenuEntry Pressed.
property string j: '#434343' // MenuEntry Selected.
property string k: '#FFFFFF' // Text color.
property string l: '#000000' // Text color.
}
} }
...@@ -22,6 +22,6 @@ QtObject { ...@@ -22,6 +22,6 @@ QtObject {
property int fontSize: 12 property int fontSize: 12
property int verticalMargin: 25 property int verticalMargin: 25
property string color: Constants.colors.l property string color: Colors.l
} }
} }
...@@ -5,7 +5,7 @@ import Linphone 1.0 ...@@ -5,7 +5,7 @@ import Linphone 1.0
QtObject { QtObject {
property Rectangle background: Rectangle { property Rectangle background: Rectangle {
color: Constants.colors.a color: Colors.a
} }
property Rectangle contentItem: Rectangle { property Rectangle contentItem: Rectangle {
...@@ -15,8 +15,8 @@ QtObject { ...@@ -15,8 +15,8 @@ QtObject {
} }
property QtObject color: QtObject { property QtObject color: QtObject {
property string hovered: Constants.colors.h property string hovered: Colors.h
property string normal: Constants.colors.c property string normal: Colors.c
property string pressed: Constants.colors.b property string pressed: Colors.b
} }
} }
...@@ -15,13 +15,13 @@ QtObject { ...@@ -15,13 +15,13 @@ QtObject {
property int spacing: 18 property int spacing: 18
property string selectionIcon: 'right_arrow' property string selectionIcon: 'right_arrow'
property string textColor: Constants.colors.k property string textColor: Colors.k
property QtObject color: QtObject { property QtObject color: QtObject {
property string normal: Constants.colors.g property string normal: Colors.g
property string hovered: Constants.colors.h property string hovered: Colors.h
property string pressed: Constants.colors.i property string pressed: Colors.i
property string selected: Constants.colors.j property string selected: Colors.j
} }
} }
} }
...@@ -11,6 +11,6 @@ QtObject { ...@@ -11,6 +11,6 @@ QtObject {
property int samples: 15 property int samples: 15
property int verticalOffset: 2 property int verticalOffset: 2
property string color: Constants.colors.f property string color: Colors.f
} }
} }
...@@ -4,7 +4,7 @@ import QtQuick 2.7 ...@@ -4,7 +4,7 @@ import QtQuick 2.7
import Linphone 1.0 import Linphone 1.0
QtObject { QtObject {
property string shadowColor: Constants.colors.f property string shadowColor: Colors.f
property Rectangle searchFieldBackground: Rectangle { property Rectangle searchFieldBackground: Rectangle {
implicitHeight: 30 implicitHeight: 30
......
...@@ -12,13 +12,13 @@ QtObject { ...@@ -12,13 +12,13 @@ QtObject {
property int spacing: 16 property int spacing: 16
property int topMargin: 10 property int topMargin: 10
property string color: Constants.colors.d property string color: Colors.d
property string icon: 'history' property string icon: 'history'
} }
property QtObject separator: QtObject { property QtObject separator: QtObject {
property int height: 1 property int height: 1
property string color: Constants.colors.e property string color: Colors.e
} }
} }
...@@ -2,6 +2,7 @@ module Linphone ...@@ -2,6 +2,7 @@ module Linphone
# Constants ---------------------------------------------------------- # Constants ----------------------------------------------------------
singleton Colors 1.0 Colors.qml
singleton Constants 1.0 Constants.qml singleton Constants 1.0 Constants.qml
# Components --------------------------------------------------------- # Components ---------------------------------------------------------
......
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