diff options
author | Andras Becsi <andras.becsi@theqtcompany.com> | 2015-08-06 11:40:54 +0200 |
---|---|---|
committer | Andras Becsi <andras.becsi@theqtcompany.com> | 2015-08-12 17:22:04 +0200 |
commit | ce76981fa1109965704bb4015523ba3665088b22 (patch) | |
tree | 25bf20a28ce3163f0493bc43dfcef9ac628a12e8 | |
parent | c50dfe465ae98df0f5a1cbe696dab1c02d665ed0 (diff) |
Update private browsing and progressbar style and add mockups
-rw-r--r-- | mockups/01_Browsing_Loading.png | bin | 0 -> 295182 bytes | |||
-rw-r--r-- | mockups/01_Browsing_Private.png | bin | 0 -> 350083 bytes | |||
-rw-r--r-- | src/qml/NavigationBar.qml | 40 | ||||
-rw-r--r-- | src/qml/assets/UIToolBar.qml | 4 |
4 files changed, 22 insertions, 22 deletions
diff --git a/mockups/01_Browsing_Loading.png b/mockups/01_Browsing_Loading.png Binary files differnew file mode 100644 index 0000000..016b7f7 --- /dev/null +++ b/mockups/01_Browsing_Loading.png diff --git a/mockups/01_Browsing_Private.png b/mockups/01_Browsing_Private.png Binary files differnew file mode 100644 index 0000000..50d1115 --- /dev/null +++ b/mockups/01_Browsing_Private.png diff --git a/src/qml/NavigationBar.qml b/src/qml/NavigationBar.qml index 42c5158..85d5de3 100644 --- a/src/qml/NavigationBar.qml +++ b/src/qml/NavigationBar.qml @@ -9,9 +9,9 @@ ToolBar { id: root property alias addressBar: urlBar - property string color: settingsView.privateBrowsingEnabled ? "#777f8c" : uiColor - property string separatorColor: settingsView.privateBrowsingEnabled ? placeholderColor : uiSeparatorColor - property string highlightColor: settingsView.privateBrowsingEnabled ? iconOverlayColor : buttonPressedColor + property string color: settingsView.privateBrowsingEnabled ? "#26282a" : uiColor + property string separatorColor: settingsView.privateBrowsingEnabled ? "#68696a" : uiSeparatorColor + property string highlightColor: settingsView.privateBrowsingEnabled ? "#3c3e40" : buttonPressedColor property Item webView: null onWebViewChanged: { @@ -38,7 +38,7 @@ ToolBar { style: ToolBarStyle { background: Rectangle { color: root.color - implicitHeight: toolBarSize + implicitHeight: toolBarSize + 3 } padding { left: 0 @@ -69,24 +69,24 @@ ToolBar { if (velocityY > velocityThreshold) { if (diff > 0) - return -toolBarSize + return -root.height else return 0 } if (!touchGesture || diff == 0) { - if (y < -toolBarSize / 2) - return -toolBarSize + if (y < -root.height / 2) + return -root.height else return 0 } - if (diff > toolBarSize) - return -toolBarSize + if (diff > root.height) + return -root.height if (diff > 0) { - if (y == -toolBarSize) - return -toolBarSize + if (y == -root.height) + return -root.height return -diff } @@ -96,10 +96,10 @@ ToolBar { return 0 diff = Math.abs(diff) - if (diff >= toolBarSize) + if (diff >= root.height) return 0 - return -toolBarSize + diff + return -root.height + diff } } }, @@ -107,13 +107,13 @@ ToolBar { name: "disabled" PropertyChanges { target: root - y: -toolBarSize + y: -root.height } } ] RowLayout { - height: toolBarSize - 2 + height: toolBarSize anchors { top: parent.top right: parent.right @@ -202,7 +202,7 @@ ToolBar { background: Rectangle { implicitWidth: 514 implicitHeight: 56 - border.color: settingsView.privateBrowsingEnabled ? iconOverlayColor : textFieldStrokeColor + border.color: settingsView.privateBrowsingEnabled ? "black" : textFieldStrokeColor border.width: 1 } padding { @@ -345,7 +345,7 @@ ToolBar { } ProgressBar { id: progressBar - height: 2 + height: 3 anchors { left: parent.left bottom: parent.bottom @@ -355,11 +355,11 @@ ToolBar { } style: ProgressBarStyle { background: Rectangle { - height: 1 - color: root.separatorColor + height: 3 + color: "#e4e4e4" } progress: Rectangle { - color: uiHighlightColor + color: settingsView.privateBrowsingEnabled ? uiColor : "#317198" } } minimumValue: 0 diff --git a/src/qml/assets/UIToolBar.qml b/src/qml/assets/UIToolBar.qml index e876a20..a645a5b 100644 --- a/src/qml/assets/UIToolBar.qml +++ b/src/qml/assets/UIToolBar.qml @@ -53,7 +53,7 @@ ToolBar { signal optionClicked() signal doneClicked() - height: toolBarSize + height: navigation.height style: ToolBarStyle { background: Rectangle { @@ -69,7 +69,7 @@ ToolBar { RowLayout { spacing: 0 - height: toolBarSize - 2 + height: toolBarSize anchors.fill: parent Rectangle { width: childrenRect.width |