Merge lp:~jonas-drange/ubuntu-system-settings/cellular-insertsim into lp:ubuntu-system-settings

Proposed by Jonas G. Drange
Status: Merged
Approved by: Iain Lane
Approved revision: 1293
Merged at revision: 1318
Proposed branch: lp:~jonas-drange/ubuntu-system-settings/cellular-insertsim
Merge into: lp:ubuntu-system-settings
Diff against target: 56 lines (+25/-19)
1 file modified
plugins/cellular/Components/NoSim.qml (+25/-19)
To merge this branch: bzr merge lp:~jonas-drange/ubuntu-system-settings/cellular-insertsim
Reviewer Review Type Date Requested Status
Iain Lane Approve
PS Jenkins bot continuous-integration Needs Fixing
Review via email: mp+248835@code.launchpad.net

Commit message

[cellular] better ux for no sims

Description of the change

[cellular] better ux for no sims

To post a comment you must log in.
1292. By Jonas G. Drange

update cellular panel design for no sims

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Iain Lane (laney) wrote :

Small issue

review: Needs Fixing
Revision history for this message
Jonas G. Drange (jonas-drange) wrote :

@iain, I thought so too, but the spec does not say that a full stop should
follow. The punctuation mark is a grid dot.

Revision history for this message
Iain Lane (laney) wrote :

On Sat, Feb 07, 2015 at 02:24:30AM -0000, Jonas G. Drange wrote:
> @iain, I thought so too, but the spec does not say that a full stop should
> follow. The punctuation mark is a grid dot.

I was looking at the synopsis in the bug - but you could confirm if
you're in doubt

--
Iain Lane [ <email address hidden> ]
Debian Developer [ <email address hidden> ]
Ubuntu Developer [ <email address hidden> ]

1293. By Jonas G. Drange

add fullstop

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Iain Lane (laney) wrote :

Looks good, thanks.

p.s. wouldn't it be even better to use dynamic visibility and hide the panel altogether when there's no sim? Now you say "restart the phone" on my desktop.

review: Approve
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

Iain, this is a difference between a phone and a PC. A PC (at least in 2015) seldom has a SIM, and if it does it's typically something you plug in, so an always-present top-level "Cellular" screen would be an annoying stump. On a phone, though, you may not realize (for example, you may have forgotten) that it doesn't have a SIM, so the in-place explanation is useful.

Hopefully by the time we adapt this design to the PC we'll have a way of telling whether the device has a SIM slot, not just whether it has a SIM.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/cellular/Components/NoSim.qml'
2--- plugins/cellular/Components/NoSim.qml 2014-10-29 20:04:49 +0000
3+++ plugins/cellular/Components/NoSim.qml 2015-02-13 09:50:31 +0000
4@@ -18,27 +18,33 @@
5 *
6 */
7 import QtQuick 2.0
8-import Ubuntu.Components 0.1
9-import Ubuntu.Components.ListItems 0.1 as ListItem
10+import Ubuntu.Components 1.1
11
12 Column {
13
14- objectName: "noSim"
15-
16- ListItem.Standard {
17- text: i18n.tr("Cellular data:")
18- enabled: false
19- control: Switch {
20- checked: false
21- }
22- }
23-
24- ListItem.Standard {
25- text: i18n.tr("Data roaming")
26- enabled: false
27- showDivider: false
28- control: Switch {
29- checked: false
30- }
31+ anchors {
32+ top: parent.top
33+ left: parent.left
34+ right: parent.right
35+ margins: units.gu(8)
36+ }
37+
38+ spacing: units.gu(2)
39+
40+ Label {
41+ anchors { left: parent.left; right: parent.right; }
42+ text: i18n.tr("No SIM detected")
43+ fontSize: "large"
44+ horizontalAlignment: Text.AlignHCenter
45+ color: UbuntuColors.lightGrey
46+ wrapMode: Text.WordWrap
47+ }
48+
49+ Label {
50+ anchors { left: parent.left; right: parent.right; }
51+ text: i18n.tr("Insert a SIM, then restart the phone.")
52+ horizontalAlignment: Text.AlignHCenter
53+ color: UbuntuColors.lightGrey
54+ wrapMode: Text.WordWrap
55 }
56 }

Subscribers

People subscribed via source and target branches