Merge lp:~vthompson/ubuntu-terminal-app/move-settings-to-toolbar into lp:ubuntu-terminal-app

Proposed by Victor Thompson
Status: Merged
Approved by: Nicholas Skaggs
Approved revision: 37
Merged at revision: 34
Proposed branch: lp:~vthompson/ubuntu-terminal-app/move-settings-to-toolbar
Merge into: lp:ubuntu-terminal-app
Diff against target: 123 lines (+53/-43)
2 files modified
tests/autopilot/ubuntu_terminal_app/tests/test_terminal.py (+2/-1)
ubuntu-terminal-app.qml (+51/-42)
To merge this branch: bzr merge lp:~vthompson/ubuntu-terminal-app/move-settings-to-toolbar
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Ubuntu Terminal Developers Pending
Review via email: mp+199901@code.launchpad.net

Commit message

* Move the Settings tab to an icon on the toolbar

Description of the change

* Move the Settings tab to an icon on the toolbar, per Design direction [1]

[1] http://design.canonical.com/2013/12/app-design-clinic-6/

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
35. By Victor Thompson

Fix AP test

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
36. By Victor Thompson

Move tabs to a page since there is only one tab.

37. By Victor Thompson

Move pages into pagestack

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'settings.png'
2Binary files settings.png 1970-01-01 00:00:00 +0000 and settings.png 2013-12-22 00:19:16 +0000 differ
3=== modified file 'tests/autopilot/ubuntu_terminal_app/tests/test_terminal.py'
4--- tests/autopilot/ubuntu_terminal_app/tests/test_terminal.py 2013-11-12 20:31:42 +0000
5+++ tests/autopilot/ubuntu_terminal_app/tests/test_terminal.py 2013-12-22 00:19:16 +0000
6@@ -165,7 +165,8 @@
7
8 def test_font_size_changes(self):
9 """Make sure that font size is set correctly"""
10- self.main_view.switch_to_tab("SettingsTab")
11+ toolbar = self.main_view.open_toolbar()
12+ toolbar.click_button("SettingsButton")
13
14 # change font size to max
15 self.main_view.drag_horizontal_slider("slFont",32)
16
17=== modified file 'ubuntu-terminal-app.qml'
18--- ubuntu-terminal-app.qml 2013-10-08 10:11:44 +0000
19+++ ubuntu-terminal-app.qml 2013-12-22 00:19:16 +0000
20@@ -43,52 +43,61 @@
21 }
22 }
23
24- Tabs {
25- id: tabs
26- objectName: "rootTabs"
27- anchors.fill: parent
28-
29- Tab {
30- objectName: "TerminalTab"
31+ PageStack {
32+ id: pageStack
33+
34+ Component.onCompleted: {
35+ pageStack.push(terminalPage)
36+ }
37+
38+ Page {
39+ id: terminalPage
40+ visible: false
41+
42+ objectName: "TerminalPage"
43 title: i18n.tr("Terminal")
44- page: Page {
45-
46- onWidthChanged: {
47- header.visible = width < height;
48- }
49-
50- onHeightChanged: {
51- header.visible = width < height;
52- }
53-
54- Terminal {
55- id: pgTerm
56- objectName: "pgTerm"
57- }
58-
59- tools: ToolbarItems {
60- ToolbarButton {
61- id: toolbarAction
62- objectName: "PanelsButton"
63- action: Action {
64- text: "Panels"
65- iconSource: Qt.resolvedUrl("avatar.png")
66- onTriggered: PopupUtils.open(actionSelectionPopover, toolbarAction)
67- }
68- }
69- }
70-
71- }
72-
73+
74+ onWidthChanged: {
75+ header.visible = width < height;
76+ }
77+
78+ onHeightChanged: {
79+ header.visible = width < height;
80+ }
81+
82+ Terminal {
83+ id: pgTerm
84+ objectName: "pgTerm"
85+ }
86+
87+ tools: ToolbarItems {
88+ ToolbarButton {
89+ id: toolbarAction
90+ objectName: "PanelsButton"
91+ action: Action {
92+ text: "Panels"
93+ iconSource: Qt.resolvedUrl("avatar.png")
94+ onTriggered: PopupUtils.open(actionSelectionPopover, toolbarAction)
95+ }
96+ }
97+ ToolbarButton {
98+ id: settingsButton
99+ objectName: "SettingsButton"
100+ action: Action {
101+ text: "Settings"
102+ iconSource: Qt.resolvedUrl("settings.png")
103+ onTriggered: pageStack.push(settingsPage)
104+ }
105+ }
106+ }
107 }
108
109- Tab {
110- objectName: "SettingsTab"
111+ Page {
112+ id: settingsPage
113+ visible: false
114 title: i18n.tr("Settings")
115- page: Page {
116- Configs { id: pgConf }
117- }
118+ Configs { id: pgConf }
119 }
120+ }
121
122- }
123 }

Subscribers

People subscribed via source and target branches