Commit dcbf6916 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(timeline): use style file (in progress)

parent 653cbfaf
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
<file>ui/style/components/qmldir</file> <file>ui/style/components/qmldir</file>
<file>ui/style/components/DialogStyle.qml</file> <file>ui/style/components/DialogStyle.qml</file>
<file>ui/style/components/ScrollBarStyle.qml</file> <file>ui/style/components/ScrollBarStyle.qml</file>
<file>ui/style/components/TimelineStyle.qml</file>
<file>ui/style/components/SearchBoxStyle.qml</file> <file>ui/style/components/SearchBoxStyle.qml</file>
<file>ui/style/components/CollapseStyle.qml</file> <file>ui/style/components/CollapseStyle.qml</file>
<file>ui/style/components/PopupStyle.qml</file> <file>ui/style/components/PopupStyle.qml</file>
......
...@@ -6,11 +6,14 @@ import 'qrc:/ui/components/contact' ...@@ -6,11 +6,14 @@ import 'qrc:/ui/components/contact'
import 'qrc:/ui/components/image' import 'qrc:/ui/components/image'
import 'qrc:/ui/components/view' import 'qrc:/ui/components/view'
import 'qrc:/ui/style/components'
ColumnLayout { ColumnLayout {
id: item id: item
property var model property var model
// Legend.
Row { Row {
Layout.preferredHeight: 35 Layout.preferredHeight: 35
spacing: 30 spacing: 30
...@@ -28,12 +31,14 @@ ColumnLayout { ...@@ -28,12 +31,14 @@ ColumnLayout {
} }
} }
// Separator.
Rectangle { Rectangle {
Layout.fillWidth: true Layout.fillWidth: true
Layout.preferredHeight: 1 Layout.preferredHeight: TimelineStyle.separator.height
color: '#DEDEDE' color: TimelineStyle.separator.color
} }
// History.
ScrollableListView { ScrollableListView {
Layout.fillHeight: true Layout.fillHeight: true
Layout.fillWidth: true Layout.fillWidth: true
......
...@@ -18,7 +18,7 @@ QtObject { ...@@ -18,7 +18,7 @@ QtObject {
property QtObject description: QtObject { property QtObject description: QtObject {
property int fontSize: 12 property int fontSize: 12
property int height: 90 property int height: 90 // Height with text.
property int minHeight: 25 property int minHeight: 25 // Height without text.
} }
} }
pragma Singleton
import QtQuick 2.7
import 'qrc:/ui/style/global'
QtObject {
property QtObject separator: QtObject {
property int height: 1
property string color: '#DEDEDE'
}
}
...@@ -7,3 +7,4 @@ singleton DialogStyle 1.0 DialogStyle.qml ...@@ -7,3 +7,4 @@ singleton DialogStyle 1.0 DialogStyle.qml
singleton PopupStyle 1.0 PopupStyle.qml singleton PopupStyle 1.0 PopupStyle.qml
singleton SearchBoxStyle 1.0 SearchBoxStyle.qml singleton SearchBoxStyle 1.0 SearchBoxStyle.qml
singleton ScrollBarStyle 1.0 ScrollBarStyle.qml singleton ScrollBarStyle 1.0 ScrollBarStyle.qml
singleton TimelineStyle 1.0 TimelineStyle.qml
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