Merge lp:~ken-vandine/ubuntu-system-settings/slotsLayout into lp:ubuntu-system-settings

Proposed by Ken VanDine
Status: Merged
Approved by: Jonas G. Drange
Approved revision: 1586
Merged at revision: 1678
Proposed branch: lp:~ken-vandine/ubuntu-system-settings/slotsLayout
Merge into: lp:ubuntu-system-settings
Prerequisite: lp:~phablet-team/ubuntu-system-settings/settings-listitems
Diff against target: 4642 lines (+1262/-994)
70 files modified
plugins/about/EntryComponent.qml (+15/-7)
plugins/about/PageComponent.qml (+40/-43)
plugins/about/settings-about.svg (+136/-35)
plugins/battery/PageComponent.qml (+28/-16)
plugins/bluetooth/DevicePage.qml (+26/-50)
plugins/bluetooth/PageComponent.qml (+34/-61)
plugins/cellular/Components/MultiSim.qml (+9/-13)
plugins/cellular/Components/Sim.qml (+6/-2)
plugins/cellular/Components/SingleSim.qml (+20/-25)
plugins/cellular/PageCarrierAndApn.qml (+7/-7)
plugins/cellular/PageCarriersAndApns.qml (+36/-53)
plugins/cellular/PageChooseApn.qml (+17/-50)
plugins/cellular/PageComponent.qml (+1/-2)
plugins/flight-mode/EntryComponent.qml (+26/-16)
plugins/flight-mode/flight-mode.settings (+1/-1)
plugins/hotspot/HotspotSetup.qml (+19/-44)
plugins/hotspot/PageComponent.qml (+8/-5)
plugins/language/settings-language.svg (+112/-75)
plugins/mouse/PrimaryButtonSelector.qml (+1/-2)
plugins/orientation-lock/EntryComponent.qml (+29/-20)
plugins/orientation-lock/orientation-lock.settings (+1/-1)
plugins/phone/CallForwarding.qml (+1/-2)
plugins/reset/EntryComponent.qml (+15/-7)
plugins/reset/PageComponent.qml (+55/-20)
plugins/security-privacy/AppAccess.qml (+11/-10)
plugins/security-privacy/AppAccessControl.qml (+7/-6)
plugins/security-privacy/Location.qml (+9/-9)
plugins/security-privacy/LockSecurity.qml (+6/-5)
plugins/security-privacy/PageComponent.qml (+28/-23)
plugins/security-privacy/PhoneLocking.qml (+12/-13)
plugins/security-privacy/SimPin.qml (+15/-14)
plugins/security-privacy/diagnostics/DiagnosticsCheckEntry.qml (+3/-3)
plugins/security-privacy/diagnostics/PageComponent.qml (+10/-11)
plugins/sound/PageComponent.qml (+58/-50)
plugins/system-update/EntryComponent.qml (+18/-9)
plugins/time-date/ChooseTimeZone.qml (+4/-3)
plugins/time-date/PageComponent.qml (+8/-8)
plugins/time-date/Scroller.qml (+6/-7)
plugins/time-date/TimePicker.qml (+1/-2)
plugins/time-date/settings-time-date.svg (+139/-55)
plugins/wifi/AccessPoint.qml (+11/-22)
plugins/wifi/DivMenuItem.qml (+3/-3)
plugins/wifi/FramedMenuItem.qml (+7/-3)
plugins/wifi/MenuItemFactory.qml (+4/-4)
plugins/wifi/NetworkDetails.qml (+26/-29)
plugins/wifi/NetworkDetailsBrief.qml (+18/-17)
plugins/wifi/OtherNetwork.qml (+11/-11)
plugins/wifi/PageComponent.qml (+9/-13)
plugins/wifi/PreviousNetworks.qml (+3/-4)
plugins/wifi/SectionMenuItem.qml (+15/-30)
plugins/wifi/StandardMenuItem.qml (+6/-28)
plugins/wifi/SwitchMenuItem.qml (+2/-2)
src/CMakeLists.txt (+1/-0)
src/SystemSettings/ListItems/Icon.qml (+1/-1)
src/SystemSettings/ListItems/IconProgression.qml (+1/-1)
src/SystemSettings/ListItems/SingleControl.qml (+1/-1)
src/SystemSettings/ListItems/SingleValue.qml (+1/-1)
src/SystemSettings/ListItems/SingleValueProgression.qml (+1/-1)
src/SystemSettings/ListItems/Standard.qml (+1/-1)
src/SystemSettings/ListItems/StandardProgression.qml (+1/-1)
src/SystemSettings/SettingsItemTitle.qml (+1/-1)
src/SystemSettings/qmldir (+1/-0)
src/qml/CategoryGrid.qml (+90/-0)
src/qml/CategorySection.qml (+33/-24)
src/qml/MainWindow.qml (+18/-4)
src/ui.qrc (+1/-0)
tests/autopilot/ubuntu_system_settings/__init__.py (+9/-2)
tests/autopilot/ubuntu_system_settings/tests/test_cellular.py (+3/-1)
tests/autopilot/ubuntu_system_settings/tests/test_search.py (+2/-1)
tests/autopilot/ubuntu_system_settings/tests/test_security.py (+3/-3)
To merge this branch: bzr merge lp:~ken-vandine/ubuntu-system-settings/slotsLayout
Reviewer Review Type Date Requested Status
system-apps-ci-bot continuous-integration Needs Fixing
Jonas G. Drange (community) Approve
PS Jenkins bot continuous-integration Pending
Review via email: mp+298654@code.launchpad.net

Commit message

Ported to use Slots layout and updated visuals

Description of the change

Ported to use Slots layout and updated visuals

To post a comment you must log in.
Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1563
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/26/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/785/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/785
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/729
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/729
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/729
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/721/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/721/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/721/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/721/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/721/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/721/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/721/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/721/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/721/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/26/rebuild

review: Needs Fixing (continuous-integration)
1564. By Ken VanDine

Better alignment of the searching text

1565. By Ken VanDine

fixed horizonal alignment of buttons

Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1564
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/27/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/798/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/798
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/733
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/733
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/733
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/725/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/725/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/725/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/725/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/725/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/725/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/725/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/725/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/725/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/27/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1565
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/28/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/801/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/801
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/735
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/735
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/735
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/727/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/727/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/727/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/727/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/727/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/727/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/727/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/727/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/727/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/28/rebuild

review: Needs Fixing (continuous-integration)
1566. By Ken VanDine

Fixed test

1567. By Ken VanDine

Fixed some layout issues

Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1567
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/29/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/811/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/811
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/746
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/746
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/746
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/741/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/741/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/741/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/741/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/741/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/741/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/741/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/741/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/741/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/29/rebuild

review: Needs Fixing (continuous-integration)
1568. By Ken VanDine

SettingsItemTitle no longer has showDivider property

Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1568
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/30/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/822/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/822
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/757
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/757
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/757
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/759/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/759/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/759/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/759/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/759/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/759/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/759/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/759/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/759/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/30/rebuild

review: Needs Fixing (continuous-integration)
1569. By Ken VanDine

Fixed imports for brightness plugin

1570. By Ken VanDine

Make the hotspot switch enabled property follow the item enabled property

1571. By Ken VanDine

Reintroduce the grid mainview leaving the search in the header

Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1571
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/32/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/860/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/860
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/780
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/780
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/780
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/782/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/782/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/782/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/782/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/782/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/782/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/782/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/782/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/782/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/32/rebuild

review: Needs Fixing (continuous-integration)
1572. By Ken VanDine

Put the checkboxes on the leading edge to match the visuals

Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1572
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/34/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/866/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/866
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/786
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/786
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/786
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/788/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/788/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/788/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/788/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/788/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/788/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/788/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/788/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/788/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/34/rebuild

review: Needs Fixing (continuous-integration)
1573. By Ken VanDine

Fixed _select_network

Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1573
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/37/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/909/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/909
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/819
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/819
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/819
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/825/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/825/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/825/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/825/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/825/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/825/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/825/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/825/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/825/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/37/rebuild

review: Needs Fixing (continuous-integration)
1574. By Ken VanDine

Import old ListItem as ListItems

Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1574
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/38/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/921/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/921
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/831
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/831
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/831
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/831/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/831/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/831/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/831/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/831/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/831/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/831/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/831/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/831/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/38/rebuild

review: Needs Fixing (continuous-integration)
1575. By Ken VanDine

Reverted slotslayout port of the keyboard panel

1576. By Ken VanDine

Reverted slotslayout port of the phone panel

Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1576
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/41/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/947/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/947
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/852
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/852
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/852
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/849/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/849/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/849/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/849/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/849/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/849/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/849/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/849/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/849/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/41/rebuild

review: Needs Fixing (continuous-integration)
1577. By Ken VanDine

Dropped showDivider

Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1577
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/42/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/951/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/951
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/856
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/856
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/856
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/853/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/853/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/853/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/853/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/853/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/853/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/853/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/853/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/853/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/42/rebuild

review: Needs Fixing (continuous-integration)
1578. By Ken VanDine

Ported the search tests to work with the search action in the header

1579. By Ken VanDine

Skip test_remove_apn until we can get the CPO for ListItem trigger actions

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

There's one crash, some wrong copy right dates and other minor issues. Other than that, it looks great!

review: Needs Fixing
Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1578
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/43/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/961/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/961
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/865
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/865
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/865
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/862/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/862/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/862/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/862/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/862/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/862/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/862/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/862/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/862/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/43/rebuild

review: Needs Fixing (continuous-integration)
1580. By Ken VanDine

Merged in fixes for bug 1596529 from mardy

1581. By Ken VanDine

Merged mardy's fixes

Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1579
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/44/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/962/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/962
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/866
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/866
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/866
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/863/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/863/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/863/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/863/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/863/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/863/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/863/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/863/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/863/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/44/rebuild

review: Needs Fixing (continuous-integration)
1582. By Ken VanDine

Use the SettingsListItems.Icon for app permissions

1583. By Ken VanDine

bring back the multivalue

1584. By Ken VanDine

Added spacing

1585. By Ken VanDine

Removed testing code

Revision history for this message
Ken VanDine (ken-vandine) wrote :

> There's one crash, some wrong copy right dates and other minor issues. Other
> than that, it looks great!

What's the crash? I think I corrected all the other issues.

1586. By Ken VanDine

Last Updated doesn't need progression

Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1581
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/45/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/963/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/963
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/867
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/867
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/867
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/864/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/864/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/864/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/864/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/864/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/864/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/864/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/864/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/864/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/45/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1586
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/46/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/964/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/964
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/868
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/868
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/868
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/865/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/865/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/865/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/865/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/865/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/865/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/865/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/865/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/865/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/46/rebuild

review: Needs Fixing (continuous-integration)
1587. By Ken VanDine

Updated copyright

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

LGTM!

review: Approve
Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1587
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/48/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/974/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/974
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/876
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/876
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/876
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/873/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/873/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/873/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/873/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/873/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/873/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/873/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/873/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/873/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/48/rebuild

review: Needs Fixing (continuous-integration)
1588. By Ken VanDine

merged trunk

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/about/EntryComponent.qml'
2--- plugins/about/EntryComponent.qml 2016-03-22 17:19:41 +0000
3+++ plugins/about/EntryComponent.qml 2016-07-22 14:36:34 +0000
4@@ -1,7 +1,7 @@
5 /*
6 * This file is part of system-settings
7 *
8- * Copyright (C) 2013 Canonical Ltd.
9+ * Copyright (C) 2013-2016 Canonical Ltd.
10 *
11 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
12 *
13@@ -20,14 +20,22 @@
14
15 import QtQuick 2.4
16 import Ubuntu.Components 1.3
17-import Ubuntu.Components.ListItems 1.3 as ListItem
18
19-ListItem.Standard {
20+ListItem {
21 id: root
22
23 objectName: "entryComponent-about"
24- iconSource: Qt.resolvedUrl(model.icon)
25- iconFrame: false
26- text: i18n.tr(model.displayName)
27- progression: true
28+ height: layout.height
29+
30+ ListItemLayout {
31+ id: layout
32+ title.text: i18n.tr(model.displayName)
33+ Icon {
34+ SlotsLayout.position: SlotsLayout.Leading;
35+ SlotsLayout.padding { top: 0; bottom: 0 }
36+ source: Qt.resolvedUrl(model.icon)
37+ height: units.gu(5)
38+ }
39+ ProgressionSlot {}
40+ }
41 }
42
43=== modified file 'plugins/about/PageComponent.qml'
44--- plugins/about/PageComponent.qml 2016-02-05 22:05:19 +0000
45+++ plugins/about/PageComponent.qml 2016-07-22 14:36:34 +0000
46@@ -1,7 +1,7 @@
47 /*
48 * This file is part of system-settings
49 *
50- * Copyright (C) 2013 Canonical Ltd.
51+ * Copyright (C) 2013-2016 Canonical Ltd.
52 *
53 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
54 *
55@@ -21,8 +21,9 @@
56 import QtQuick 2.4
57 import QtSystemInfo 5.0
58 import SystemSettings 1.0
59+import SystemSettings.ListItems 1.0 as SettingsListItems
60 import Ubuntu.Components 1.3
61-import Ubuntu.Components.ListItems 1.3 as ListItem
62+import Ubuntu.Components.ListItems 1.3 as ListItems
63 import Ubuntu.SystemSettings.StorageAbout 1.0
64 import Ubuntu.SystemSettings.Update 1.0
65 import Ubuntu.SystemSettings.Bluetooth 1.0
66@@ -70,31 +71,30 @@
67 anchors.left: parent.left
68 anchors.right: parent.right
69
70- ListItem.Empty {
71- height: ubuntuLabel.height + deviceLabel.height + units.gu(6)
72-
73- Column {
74- anchors.left: parent.left
75- anchors.right: parent.right
76- anchors.centerIn: parent
77- spacing: units.gu(2)
78- Label {
79- id: ubuntuLabel
80- anchors.horizontalCenter: parent.horizontalCenter
81- text: ""
82- fontSize: "x-large"
83- }
84- Label {
85- id: deviceLabel
86- objectName: "deviceLabel"
87- anchors.horizontalCenter: parent.horizontalCenter
88- text: deviceInfos.manufacturer() ? deviceInfos.manufacturer() + " " + deviceInfos.model() : backendInfos.vendorString
89- }
90- }
91- highlightWhenPressed: false
92+ Column {
93+ anchors.left: parent.left
94+ anchors.right: parent.right
95+ Label {
96+ id: ubuntuLabel
97+ anchors {
98+ left: parent.left
99+ right: parent.right
100+ }
101+ height: contentHeight + units.gu(2)
102+ horizontalAlignment: Text.AlignHCenter
103+ verticalAlignment: Text.AlignVCenter
104+ text: ""
105+ fontSize: "x-large"
106+ }
107+ Label {
108+ id: deviceLabel
109+ objectName: "deviceLabel"
110+ anchors.horizontalCenter: parent.horizontalCenter
111+ text: deviceInfos.manufacturer() ? deviceInfos.manufacturer() + " " + deviceInfos.model() : backendInfos.vendorString
112+ }
113 }
114
115- ListItem.SingleValue {
116+ SettingsListItems.SingleValue {
117 id: serialItem
118 objectName: "serialItem"
119 text: i18n.tr("Serial")
120@@ -102,7 +102,7 @@
121 visible: backendInfos.serialNumber
122 }
123
124- ListItem.SingleValue {
125+ SettingsListItems.SingleValue {
126 objectName: "imeiItem"
127 property string imeiNumber
128 imeiNumber: deviceInfos.imei(0)
129@@ -112,7 +112,8 @@
130 visible: modemsSorted.length == 1
131 }
132
133- ListItem.MultiValue {
134+ /* We still need a new ListItem for MultiValue */
135+ ListItems.MultiValue {
136 text: "IMEI"
137 objectName: "imeiItems"
138 values: {
139@@ -126,7 +127,7 @@
140 visible: modemsSorted.length > 1
141 }
142
143- ListItem.SingleValue {
144+ SettingsListItems.SingleValue {
145 property string address: wlinfo.macAddress(NetworkInfo.WlanMode, 0)
146 text: i18n.tr("Wi-Fi address")
147 value: address ? address.toUpperCase() : ""
148@@ -134,7 +135,7 @@
149 showDivider: bthwaddr.visible
150 }
151
152- ListItem.SingleValue {
153+ SettingsListItems.SingleValue {
154 id: bthwaddr
155 text: i18n.tr("Bluetooth address")
156 value: bluetooth.adapterAddress
157@@ -142,15 +143,14 @@
158 showDivider: false
159 }
160
161- ListItem.Divider {}
162+ ListItems.Divider {}
163
164- ListItem.SingleValue {
165+ SettingsListItems.SingleValueProgression {
166 id: storageItem
167 objectName: "storageItem"
168 text: i18n.tr("Storage")
169 /* TRANSLATORS: that's the free disk space, indicated in the most appropriate storage unit */
170 value: i18n.tr("%1 free").arg(Utilities.formatSize(backendInfos.getFreeSpace("/home")))
171- progression: true
172 onClicked: pageStack.push(Qt.resolvedUrl("Storage.qml"))
173 }
174
175@@ -159,7 +159,7 @@
176 text: i18n.tr("Software:")
177 }
178
179- ListItem.SingleValue {
180+ SettingsListItems.SingleValueProgression {
181 property string versionIdentifier: {
182 var num = UpdateManager.currentBuildNumber;
183 var ota = UpdateManager.detailedVersionDetails['tag'];
184@@ -171,21 +171,21 @@
185 value: "Ubuntu %1%2"
186 .arg(deviceInfos.version(DeviceInfo.Os))
187 .arg(versionIdentifier ? " (%1)".arg(versionIdentifier) : "")
188- progression: true
189 onClicked: pageStack.push(Qt.resolvedUrl("Version.qml"), {
190 version: versionIdentifier
191 })
192 }
193
194- ListItem.SingleValue {
195+ SettingsListItems.SingleValue {
196 objectName: "lastUpdatedItem"
197 text: i18n.tr("Last updated")
198 value: UpdateManager.lastUpdateDate && !isNaN(UpdateManager.lastUpdateDate) ?
199 Qt.formatDate(UpdateManager.lastUpdateDate) : i18n.tr("Never")
200 }
201
202- ListItem.SingleControl {
203- control: Button {
204+ SettingsListItems.SingleControl {
205+
206+ Button {
207 objectName: "updateButton"
208 text: i18n.tr("Check for updates")
209 width: parent.width - units.gu(4)
210@@ -210,26 +210,23 @@
211 text: i18n.tr("Legal:")
212 }
213
214- ListItem.Standard {
215+ SettingsListItems.StandardProgression {
216 objectName: "licenseItem"
217 text: i18n.tr("Software licenses")
218- progression: true
219 onClicked: pageStack.push(Qt.resolvedUrl("Software.qml"))
220 }
221
222- ListItem.Standard {
223+ SettingsListItems.StandardProgression {
224 property var regulatoryInfo:
225 pluginManager.getByName("regulatory-information")
226 text: i18n.tr("Regulatory info")
227- progression: true
228 visible: regulatoryInfo
229 onClicked: pageStack.push(regulatoryInfo.pageComponent)
230 }
231
232- ListItem.SingleValue {
233+ SettingsListItems.SingleValueProgression {
234 objectName: "devmodeItem"
235 text: i18n.tr("Developer mode")
236- progression: true
237 onClicked: pageStack.push(Qt.resolvedUrl("DevMode.qml"))
238 }
239 }
240
241=== modified file 'plugins/about/settings-about.svg'
242--- plugins/about/settings-about.svg 2013-06-18 19:17:18 +0000
243+++ plugins/about/settings-about.svg 2016-07-22 14:36:34 +0000
244@@ -9,14 +9,15 @@
245 xmlns="http://www.w3.org/2000/svg"
246 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
247 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
248- width="90"
249- height="90"
250- id="svg3180"
251+ width="96"
252+ height="96"
253+ id="svg4874"
254 version="1.1"
255- inkscape:version="0.48+devel r12322"
256- sodipodi:docname="setting-about.svg">
257+ inkscape:version="0.91+devel r"
258+ viewBox="0 0 96 96.000001"
259+ sodipodi:docname="info.svg">
260 <defs
261- id="defs3182" />
262+ id="defs4876" />
263 <sodipodi:namedview
264 id="base"
265 pagecolor="#ffffff"
266@@ -24,18 +25,94 @@
267 borderopacity="1.0"
268 inkscape:pageopacity="0.0"
269 inkscape:pageshadow="2"
270- inkscape:zoom="7.9580786"
271- inkscape:cx="25.634328"
272- inkscape:cy="36.849347"
273+ inkscape:zoom="8.7812488"
274+ inkscape:cx="5.3352279"
275+ inkscape:cy="44.122411"
276 inkscape:document-units="px"
277- inkscape:current-layer="layer1"
278- showgrid="false"
279+ inkscape:current-layer="g4780"
280+ showgrid="true"
281+ showborder="true"
282 fit-margin-top="0"
283 fit-margin-left="0"
284 fit-margin-right="0"
285- fit-margin-bottom="0" />
286+ fit-margin-bottom="0"
287+ inkscape:snap-bbox="true"
288+ inkscape:bbox-paths="true"
289+ inkscape:bbox-nodes="true"
290+ inkscape:snap-bbox-edge-midpoints="true"
291+ inkscape:snap-bbox-midpoints="true"
292+ inkscape:object-paths="true"
293+ inkscape:snap-intersection-paths="true"
294+ inkscape:object-nodes="true"
295+ inkscape:snap-smooth-nodes="true"
296+ inkscape:snap-midpoints="true"
297+ inkscape:snap-object-midpoints="true"
298+ inkscape:snap-center="true"
299+ showguides="true"
300+ inkscape:guide-bbox="true">
301+ <inkscape:grid
302+ type="xygrid"
303+ id="grid5451"
304+ empspacing="8" />
305+ <sodipodi:guide
306+ orientation="1,0"
307+ position="8,-8.0000001"
308+ id="guide4063" />
309+ <sodipodi:guide
310+ orientation="1,0"
311+ position="4,-8.0000001"
312+ id="guide4065" />
313+ <sodipodi:guide
314+ orientation="0,1"
315+ position="-8,88.000001"
316+ id="guide4067" />
317+ <sodipodi:guide
318+ orientation="0,1"
319+ position="-8,92.000001"
320+ id="guide4069" />
321+ <sodipodi:guide
322+ orientation="0,1"
323+ position="104,4"
324+ id="guide4071" />
325+ <sodipodi:guide
326+ orientation="0,1"
327+ position="-5,8.0000001"
328+ id="guide4073" />
329+ <sodipodi:guide
330+ orientation="1,0"
331+ position="92,-8.0000001"
332+ id="guide4075" />
333+ <sodipodi:guide
334+ orientation="1,0"
335+ position="88,-8.0000001"
336+ id="guide4077" />
337+ <sodipodi:guide
338+ orientation="0,1"
339+ position="-8,84.000001"
340+ id="guide4074" />
341+ <sodipodi:guide
342+ orientation="1,0"
343+ position="12,-8.0000001"
344+ id="guide4076" />
345+ <sodipodi:guide
346+ orientation="0,1"
347+ position="-5,12"
348+ id="guide4078" />
349+ <sodipodi:guide
350+ orientation="1,0"
351+ position="84,-9.0000001"
352+ id="guide4080" />
353+ <sodipodi:guide
354+ position="48,-8.0000001"
355+ orientation="1,0"
356+ id="guide4170" />
357+ <sodipodi:guide
358+ position="-8,48"
359+ orientation="0,1"
360+ id="guide4172" />
361+ </sodipodi:namedview>
362 <metadata
363- id="metadata3185">
364+ id="metadata4879">
365 <rdf:RDF>
366 <cc:Work
367 rdf:about="">
368@@ -50,29 +127,53 @@
369 inkscape:label="Layer 1"
370 inkscape:groupmode="layer"
371 id="layer1"
372- transform="translate(456.42857,-738.79075)">
373+ transform="translate(67.857146,-78.50504)">
374 <g
375- transform="translate(-2219.4286,118.57139)"
376- id="g3270">
377- <rect
378- style="color:#000000;fill:none;stroke:none;stroke-width:7.5;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
379- id="rect3272"
380- width="90"
381- height="90"
382- x="1763"
383- y="620.21936" />
384- <rect
385- style="color:#000000;fill:none;stroke:none;stroke-width:6;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
386- id="rect3274"
387- width="90"
388- height="90"
389- x="1763"
390- y="620.21936" />
391- <path
392- inkscape:connector-curvature="0"
393- style="fill:#808080;fill-opacity:1"
394- d="m 1808,635.21936 c -16.5688,0 -30,13.4314 -30,30 0,16.5675 13.4311,30 30,30 16.5686,0 30,-13.4325 30,-30 C 1838,648.65076 1824.5688,635.21936 1808,635.21936 z m 9.9375,8.3438 c 0.7694,-0.055 1.5628,0.1167 2.2813,0.5312 1.9159,1.1067 2.5752,3.553 1.4687,5.4688 -1.1053,1.9157 -3.553,2.575 -5.4687,1.4687 -1.9146,-1.1053 -2.5739,-3.554 -1.4688,-5.4687 C 1815.4418,644.36576 1816.6552,643.65406 1817.9375,643.56316 z m -9.9375,4.25 c 1.6106,0 3.176,0.2477 4.6562,0.6562 0.2611,1.6096 1.2269,3.0898 2.75,3.9688 1.5205,0.8764 3.2896,0.9503 4.8126,0.375 2.9615,2.9125 4.8754,6.8692 5.1562,11.2812 l -5.7188,0.094 c -0.5263,-5.9763 -5.5443,-10.6563 -11.6562,-10.6563 -1.7607,0 -3.4091,0.397 -4.9062,1.0937 l -2.7813,-5 C 1802.6368,648.47516 1805.2312,647.81316 1808,647.81316 z m -9.625,2.9374 2.9062,4.9063 c -3.0083,2.1176 -4.9687,5.6043 -4.9687,9.5625 0,3.9583 1.9604,7.4462 4.9687,9.5625 l -2.9062,4.9063 c -3.5057,-2.3425 -6.1366,-5.9003 -7.2188,-10.0938 1.2644,-1.0317 2.0938,-2.6155 2.0938,-4.375 0,-1.7605 -0.8294,-3.312 -2.0938,-4.3438 C 1792.2398,656.68336 1794.8707,653.09306 1798.375,650.75056 z m -10.75,10.4688 c 2.2119,0 4,1.787 4,4 0,2.2119 -1.7881,4 -4,4 -2.2132,0 -4,-1.7881 -4,-4 C 1783.625,663.00636 1785.4118,661.21936 1787.625,661.21936 z m 32.0312,5.0312 5.7188,0.094 c -0.2808,4.412 -2.1947,8.3687 -5.1562,11.2812 -1.523,-0.5753 -3.291,-0.4716 -4.8126,0.4063 -1.5227,0.8805 -2.4889,2.3592 -2.75,3.9687 -1.48,0.4098 -3.0456,0.625 -4.6562,0.625 -2.769,0 -5.3632,-0.6606 -7.6875,-1.8124 l 2.7813,-4.9688 c 1.497,0.6966 3.1455,1.0938 4.9062,1.0938 C 1814.1121,676.93806 1819.1311,672.22846 1819.6562,666.25056 z m -1.9374,12.6563 c 1.5484,-0.1918 3.1398,0.5329 3.9687,1.9687 1.1065,1.916 0.4468,4.3635 -1.4687,5.4688 -1.9158,1.1065 -4.3635,0.447 -5.4688,-1.4688 -1.1067,-1.9147 -0.447,-4.3622 1.4688,-5.4687 C 1816.6973,679.13056 1817.2026,678.97076 1817.7188,678.90686 Z"
395- id="path3" />
396+ transform="matrix(0,-1,-1,0,373.50506,516.50504)"
397+ id="g4845"
398+ style="display:inline">
399+ <g
400+ inkscape:export-ydpi="90"
401+ inkscape:export-xdpi="90"
402+ inkscape:export-filename="next01.png"
403+ transform="matrix(-0.9996045,0,0,1,575.94296,-611.00001)"
404+ id="g4778"
405+ inkscape:label="Layer 1">
406+ <g
407+ transform="matrix(-1,0,0,1,575.99999,611)"
408+ id="g4780"
409+ style="display:inline">
410+ <rect
411+ style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:none;stroke:none;stroke-width:4;marker:none;enable-background:accumulate"
412+ id="rect4782"
413+ width="96.037987"
414+ height="96"
415+ x="-438.00244"
416+ y="345.36221"
417+ transform="scale(-1,1)" />
418+ <path
419+ style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:none;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:4.00079107;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
420+ d="m 432,393.36133 c 0,23.17268 -18.83506,42 -42.01562,42 -23.18057,0 -42.01758,-18.82732 -42.01758,-42 0,-23.17268 18.83701,-42 42.01758,-42 23.18056,0 42.01562,18.82732 42.01562,42 z m -4.00195,0 c 0,-21.00964 -16.99444,-37.99805 -38.01367,-37.99805 -21.01924,0 -38.01563,16.98841 -38.01563,37.99805 0,21.00963 16.99639,38 38.01563,38 21.01923,0 38.01367,-16.99037 38.01367,-38 z"
421+ id="path4116"
422+ inkscape:connector-curvature="0" />
423+ <rect
424+ style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:6.00118685;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate"
425+ id="rect4173"
426+ width="5.9999971"
427+ height="32.012661"
428+ x="-396.36221"
429+ y="-397.98663"
430+ transform="matrix(0,-1,-1,0,0,0)" />
431+ <ellipse
432+ style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:6;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate"
433+ id="path4175"
434+ cx="-393.36221"
435+ cy="-408.99097"
436+ transform="matrix(0,-1,-1,0,0,0)"
437+ rx="5.0000143"
438+ ry="5.0019927" />
439+ </g>
440+ </g>
441 </g>
442 </g>
443 </svg>
444
445=== modified file 'plugins/battery/PageComponent.qml'
446--- plugins/battery/PageComponent.qml 2016-05-16 15:03:57 +0000
447+++ plugins/battery/PageComponent.qml 2016-07-22 14:36:34 +0000
448@@ -1,7 +1,7 @@
449 /*
450 * This file is part of system-settings
451 *
452- * Copyright (C) 2013 Canonical Ltd.
453+ * Copyright (C) 2013-2016 Canonical Ltd.
454 *
455 * Contact: Sebastien Bacher <sebastien.bacher@canonical.com>
456 *
457@@ -23,8 +23,8 @@
458 import QtQuick 2.4
459 import QtSystemInfo 5.0
460 import SystemSettings 1.0
461+import SystemSettings.ListItems 1.0 as SettingsListItems
462 import Ubuntu.Components 1.3
463-import Ubuntu.Components.ListItems 1.3 as ListItem
464 import Ubuntu.SystemSettings.Battery 1.0
465 import Ubuntu.SystemSettings.SecurityPrivacy 1.0
466 import Ubuntu.Settings.Components 0.1 as USC
467@@ -99,7 +99,7 @@
468 anchors.left: parent.left
469 anchors.right: parent.right
470
471- ListItem.SingleValue {
472+ SettingsListItems.SingleValue {
473 id: chargingLevel
474 text: i18n.tr("Charge level")
475 value: {
476@@ -262,7 +262,7 @@
477 }
478 }
479
480- ListItem.SingleValue {
481+ SettingsListItems.SingleValue {
482 id: chargingEntry
483 text: {
484 if (indicatorPower.deviceState === "charging")
485@@ -271,6 +271,8 @@
486 return i18n.tr("Last full charge")
487 else if (indicatorPower.deviceState === "fully-charged")
488 return i18n.tr("Fully charged")
489+ else
490+ return ""
491 }
492
493 value: {
494@@ -290,14 +292,13 @@
495 text: i18n.tr("Ways to reduce battery use:")
496 }
497
498- ListItem.Standard {
499+ SettingsListItems.StandardProgression {
500 text: i18n.tr("Display brightness")
501- progression: true
502 onClicked: pageStack.push(
503 pluginManager.getByName("brightness").pageComponent)
504 }
505
506- ListItem.SingleValue {
507+ SettingsListItems.SingleValueProgression {
508 property bool lockOnSuspend:
509 securityPrivacy.securityType !==
510 UbuntuSecurityPrivacyPanel.Swipe
511@@ -307,10 +308,10 @@
512 var timeout = powerSettings.activityTimeout
513 return timeout == 0 ?
514 i18n.tr("Never") :
515- (timeout < 60) ?
516- // TRANSLATORS: %1 is the number of seconds
517- i18n.tr("After %1 second",
518- "After %1 seconds",
519+ (timeout < 60) ?
520+ // TRANSLATORS: %1 is the number of seconds
521+ i18n.tr("After %1 second",
522+ "After %1 seconds",
523 timeout).arg(timeout) :
524 // TRANSLATORS: %1 is the number of minutes
525 i18n.tr("After %1 minute",
526@@ -327,7 +328,14 @@
527 i18n.tr("Never")
528 }
529 }
530- progression: true
531+
532+ Icon {
533+ width: units.gu(2.5)
534+ height: width
535+ name: "network-secure"
536+ SlotsLayout.position: SlotsLayout.First
537+ }
538+
539 onClicked: pageStack.push(
540 Qt.resolvedUrl("SleepValues.qml"),
541 { title: text, lockOnSuspend: lockOnSuspend })
542@@ -342,10 +350,12 @@
543 Component.onCompleted: start()
544 }
545
546- ListItem.Standard {
547+ SettingsListItems.Icon {
548 // TRANSLATORS: “Wi-Fi used for hotspot” is hidden.
549 text: showAllUI ? i18n.tr("Wi-Fi used for hotspot") : i18n.tr("Wi-Fi")
550- control: Loader {
551+ iconName: "wifi-high"
552+
553+ Loader {
554 active: networkActionGroup.enabled.state != null
555 sourceComponent: Switch {
556 id: wifiSwitch
557@@ -376,10 +386,12 @@
558 Component.onCompleted: start()
559 }
560
561- ListItem.Standard {
562+ SettingsListItems.Icon {
563 id: btListItem
564 text: i18n.tr("Bluetooth")
565- control: Loader {
566+ iconName: "bluetooth-active"
567+
568+ Loader {
569 active: bluetoothActionGroup.enabled.state != null
570 sourceComponent: Switch {
571 id: btSwitch
572
573=== modified file 'plugins/bluetooth/DevicePage.qml'
574--- plugins/bluetooth/DevicePage.qml 2016-03-09 16:06:14 +0000
575+++ plugins/bluetooth/DevicePage.qml 2016-07-22 14:36:34 +0000
576@@ -1,7 +1,7 @@
577 /*
578 * This file is part of ubuntu-system-settings
579 *
580- * Copyright (C) 2013-2015 Canonical Ltd.
581+ * Copyright (C) 2013-2016 Canonical Ltd.
582 *
583 * Contact: Charles Kerr <charles.kerr@canonical.com>
584 *
585@@ -21,9 +21,9 @@
586 import QMenuModel 0.1
587 import QtQuick 2.0
588 import SystemSettings 1.0
589+import SystemSettings.ListItems 1.0 as SettingsListItems
590 import Ubuntu.Components 1.3
591 import Ubuntu.Components.Popups 1.3
592-import Ubuntu.Components.ListItems 1.3 as ListItem
593 import Ubuntu.SystemSettings.Bluetooth 1.0
594
595 Page {
596@@ -97,64 +97,36 @@
597 right: parent.right
598 }
599
600- ListItem.SingleValue {
601+ SettingsListItems.SingleValue {
602 text: i18n.tr("Name")
603 value: backend.selectedDevice &&
604 backend.selectedDevice.name.length > 0 ?
605 backend.selectedDevice.name :
606 i18n.tr("None")
607 }
608- ListItem.Standard {
609- Rectangle {
610- color: "transparent"
611- anchors.fill: parent
612- anchors.topMargin: units.gu(1)
613- anchors.leftMargin: units.gu(2)
614- anchors.rightMargin: units.gu(2)
615-
616- Label {
617- anchors {
618- top: parent.top
619- left: parent.left
620- topMargin: units.gu(1)
621- }
622- height: units.gu(3)
623- text: i18n.tr("Type")
624- }
625- Image {
626- anchors {
627- right: deviceType.left
628- rightMargin: units.gu(1)
629- }
630- height: units.gu(4)
631- width: units.gu(4)
632- source: backend.selectedDevice ? backend.selectedDevice.iconName : ""
633- }
634- Label {
635- id: deviceType
636- anchors {
637- top: parent.top
638- right: parent.right
639- topMargin: units.gu(1)
640- }
641- height: units.gu(3)
642- text: getTypeString(backend.selectedDevice ? backend.selectedDevice.type : Device.OTHER)
643- }
644+ SettingsListItems.SingleValue {
645+ text: i18n.tr("Type")
646+ value: getTypeString(backend.selectedDevice ? backend.selectedDevice.type : Device.OTHER)
647+ Image {
648+ height: units.gu(4)
649+ width: units.gu(4)
650+ source: backend.selectedDevice ? backend.selectedDevice.iconName : ""
651+ visible: source
652+ SlotsLayout.position: SlotsLayout.Trailing-1
653 }
654 }
655- ListItem.SingleValue {
656+ SettingsListItems.SingleValue {
657 text: i18n.tr("Status")
658 value: getStatusString(backend.selectedDevice ? backend.selectedDevice.connection : Device.Disconnected)
659 }
660- ListItem.SingleValue {
661+ SettingsListItems.SingleValue {
662 text: i18n.tr("Signal Strength")
663 value: getSignalString(backend.selectedDevice ? backend.selectedDevice.strength : Device.None)
664 }
665- ListItem.Standard {
666+ SettingsListItems.Standard {
667 id: trustedCheck
668 text: i18n.tr("Connect automatically when detected:")
669- visible: backend.selectedDevice.paired
670- control: CheckBox {
671+ CheckBox {
672 property bool serverChecked: backend.selectedDevice ? backend.selectedDevice.trusted : false
673 onServerCheckedChanged: checked = serverChecked
674 Component.onCompleted: checked = serverChecked
675@@ -165,10 +137,12 @@
676 }
677 }
678 }
679- ListItem.SingleControl {
680- control: Button {
681+
682+ SettingsListItems.SingleControl {
683+ Button {
684+ anchors.centerIn: parent
685+ width: parent.width - units.gu(8)
686 text: backend.selectedDevice && (backend.selectedDevice.connection == Device.Connected || backend.selectedDevice.connection == Device.Connecting) ? i18n.tr("Disconnect") : i18n.tr("Connect")
687- width: parent.width - units.gu(8)
688 onClicked: {
689 if (backend.selectedDevice
690 && (backend.selectedDevice.connection == Device.Connected
691@@ -185,10 +159,12 @@
692 enabled: backend.selectedDevice && backend.powered ? true : false
693 }
694 }
695- ListItem.SingleControl {
696- control: Button {
697+
698+ SettingsListItems.SingleControl {
699+ Button {
700+ anchors.centerIn: parent
701+ width: parent.width - units.gu(8)
702 text: i18n.tr("Forget this device")
703- width: parent.width - units.gu(8)
704 onClicked: {
705 backend.removeDevice();
706 backend.resetSelectedDevice();
707
708=== modified file 'plugins/bluetooth/PageComponent.qml'
709--- plugins/bluetooth/PageComponent.qml 2016-03-10 07:28:42 +0000
710+++ plugins/bluetooth/PageComponent.qml 2016-07-22 14:36:34 +0000
711@@ -1,7 +1,7 @@
712 /*
713 * This file is part of ubuntu-system-settings
714 *
715- * Copyright (C) 2013-2015 Canonical Ltd.
716+ * Copyright (C) 2013-2016 Canonical Ltd.
717 *
718 * Contact: Charles Kerr <charles.kerr@canonical.com>
719 *
720@@ -21,9 +21,9 @@
721 import QMenuModel 0.1
722 import QtQuick 2.4
723 import SystemSettings 1.0
724+import SystemSettings.ListItems 1.0 as SettingsListItems
725 import Ubuntu.Components 1.3
726 import Ubuntu.Components.Popups 1.3
727-import Ubuntu.Components.ListItems 1.3 as ListItem
728 import Ubuntu.SystemSettings.Bluetooth 1.0
729 import Ubuntu.Settings.Components 0.1 as USC
730
731@@ -229,9 +229,9 @@
732 Component.onCompleted: start()
733 }
734
735- ListItem.Standard {
736+ SettingsListItems.Standard {
737 text: i18n.tr("Bluetooth")
738- control: Switch {
739+ Switch {
740 id: btSwitch
741 property bool serverChecked: bluetoothActionGroup.enabled.state != undefined ? bluetoothActionGroup.enabled.state : false
742 USC.ServerPropertySynchroniser {
743@@ -246,54 +246,28 @@
744 }
745
746 // Discoverability
747- ListItem.Standard {
748+ SettingsListItems.SingleValue {
749+ text: backend.discoverable ? i18n.tr("Discoverable") : i18n.tr("Not discoverable")
750+ value: backend.discoverable ? backend.adapterName() : ""
751 enabled: bluetoothActionGroup.enabled
752 showDivider: false
753
754- Rectangle {
755- color: "transparent"
756- anchors.fill: parent
757- anchors.topMargin: units.gu(1)
758- anchors.leftMargin: units.gu(2)
759- anchors.rightMargin: units.gu(2)
760-
761- Label {
762- anchors {
763- top: parent.top
764- left: parent.left
765- topMargin: units.gu(1)
766- }
767- height: units.gu(3)
768- text: backend.discoverable ? i18n.tr("Discoverable") : i18n.tr("Not discoverable")
769- }
770-
771- Label {
772- anchors {
773- top: parent.top
774- right: parent.right
775- topMargin: units.gu(1)
776- }
777- height: units.gu(3)
778- text: backend.discoverable ? backend.adapterName : ""
779- color: "darkgrey"
780- visible: backend.discoverable
781- enabled: false
782- }
783-
784- Label {
785- anchors {
786- top: parent.top
787- right: parent.right
788- topMargin: units.gu(1)
789- }
790- color: "darkgrey"
791- visible: backend.powered && !backend.discoverable
792- text: i18n.tr("Searching…")
793- }
794+ Label {
795+ anchors {
796+ verticalCenter: parent.verticalCenter
797+ right: parent.right
798+ rightMargin: units.gu(2)
799+ }
800+ color: "darkgrey"
801+ visible: backend.powered && !backend.discoverable
802+ text: i18n.tr("Searching…")
803+ fontSize: "x-small"
804+ SlotsLayout.position: SlotsLayout.Trailing
805+ SlotsLayout.overrideVerticalPositioning: true
806 }
807 }
808
809- ListItem.Standard {
810+ SettingsItemTitle {
811 id: connectedHeader
812 text: i18n.tr("Connected devices:")
813
814@@ -313,11 +287,13 @@
815 Repeater {
816 id: connectedRepeater
817 model: backend.connectedDevices
818- delegate: ListItem.Standard {
819+ delegate: SettingsListItems.IconProgression {
820 iconSource: iconPath
821- iconFrame: false
822 text: getDisplayName(type, displayName)
823- control: ActivityIndicator {
824+ layout.subtitle.text: connection == Device.Connecting ? i18n.tr("Connecting…") : i18n.tr("Connected")
825+ layout.subtitle.color: UbuntuColors.green
826+
827+ ActivityIndicator {
828 visible: connection == Device.Connecting
829 running: visible
830 }
831@@ -325,7 +301,6 @@
832 backend.setSelectedDevice(addressName);
833 pageStack.push(Qt.resolvedUrl("DevicePage.qml"), {backend: backend, root: root});
834 }
835- progression: true
836 }
837 }
838 }
839@@ -334,15 +309,18 @@
840 id: disconnectedHeader
841 text: connectedList.visible ? i18n.tr("Connect another device:") : i18n.tr("Connect a device:")
842 enabled: bluetoothActionGroup.enabled.state != undefined ? bluetoothActionGroup.enabled.state : false
843- control: Label {
844+ Label {
845 anchors {
846- top: parent.top
847+ verticalCenter: parent.verticalCenter
848 right: parent.right
849- topMargin: units.gu(1)
850+ rightMargin: units.gu(2)
851 }
852 color: "darkgrey"
853 visible: backend.powered && backend.discovering
854 text: i18n.tr("Searching…")
855+ fontSize: "x-small"
856+ SlotsLayout.position: SlotsLayout.Trailing
857+ SlotsLayout.overrideVerticalPositioning: true
858 }
859 }
860
861@@ -358,23 +336,20 @@
862 Repeater {
863 id: disconnectedRepeater
864 model: backend.disconnectedDevices
865- delegate: ListItem.Standard {
866+ delegate: SettingsListItems.IconProgression {
867 iconSource: iconPath
868- iconFrame: false
869 text: getDisplayName(type, displayName)
870 onClicked: {
871 backend.setSelectedDevice(addressName);
872 pageStack.push(Qt.resolvedUrl("DevicePage.qml"), {backend: backend, root: root});
873 }
874- progression: true
875 }
876 }
877 }
878- ListItem.Standard {
879+ SettingsListItems.Standard {
880 id: disconnectedNone
881 text: i18n.tr("None detected")
882 visible: !disconnectedList.visible && disconnectedHeader.visible
883- enabled: false
884 }
885
886 SettingsItemTitle {
887@@ -395,15 +370,13 @@
888 Repeater {
889 id: autoconnectRepeater
890 model: backend.autoconnectDevices
891- delegate: ListItem.Standard {
892+ delegate: SettingsListItems.IconProgression {
893 iconSource: iconPath
894- iconFrame: false
895 text: getDisplayName(type, displayName)
896 onClicked: {
897 backend.setSelectedDevice(addressName);
898 pageStack.push(Qt.resolvedUrl("DevicePage.qml"), {backend: backend, root: root});
899 }
900- progression: true
901 }
902 }
903 }
904
905=== modified file 'plugins/cellular/Components/MultiSim.qml'
906--- plugins/cellular/Components/MultiSim.qml 2016-03-16 13:44:42 +0000
907+++ plugins/cellular/Components/MultiSim.qml 2016-07-22 14:36:34 +0000
908@@ -1,5 +1,5 @@
909 /*
910- * Copyright (C) 2014 Canonical Ltd
911+ * Copyright (C) 2014-2016 Canonical Ltd
912 *
913 * This program is free software: you can redistribute it and/or modify
914 * it under the terms of the GNU General Public License version 3 as
915@@ -20,9 +20,10 @@
916 import QtQuick 2.4
917 import GSettings 1.0
918 import SystemSettings 1.0
919+import SystemSettings.ListItems 1.0 as SettingsListItems
920 import Ubuntu.Components 1.3
921-import Ubuntu.Components.ListItems 1.3 as ListItem
922 import Ubuntu.SystemSettings.Cellular 1.0
923+import Ubuntu.Components.ListItems 1.3 as ListItems
924
925 /* This is a temporary solution to the issue of Hotspots failing on mako. If
926 the device is mako, we hide the hotspot entry. Will be removed once lp:1434591
927@@ -54,20 +55,17 @@
928 anchors { left: parent.left; right: parent.right }
929 }
930
931- ListItem.Standard {
932+ SettingsListItems.StandardProgression {
933 id: dataUsage
934 text: i18n.tr("Data usage statistics")
935- progression: true
936 visible: showAllUI
937 }
938
939- ListItem.Divider {}
940-
941- ListItem.SingleValue {
942+ SettingsListItems.SingleValueProgression {
943 text: i18n.tr("Carriers")
944 id: chooseCarrier
945 objectName: "carrierApnEntry"
946- progression: enabled
947+ progressionVisible: enabled
948 showDivider: false
949 onClicked: {
950 pageStack.push(Qt.resolvedUrl("../PageCarriersAndApns.qml"), {
951@@ -76,26 +74,24 @@
952 }
953 }
954
955- ListItem.Divider {}
956-
957 SimEditor {
958 anchors { left: parent.left; right: parent.right }
959 }
960
961- ListItem.Divider {}
962+ ListItems.Divider {}
963
964 DefaultSim {
965 anchors { left: parent.left; right: parent.right }
966 }
967
968- ListItem.Divider {}
969+ ListItems.Divider {}
970
971 SettingsItemTitle { text: i18n.tr("Connection type:") }
972
973 Repeater {
974 model: sims
975
976- ListItem.ItemSelector {
977+ ListItems.ItemSelector {
978 id: radio
979 property var sim: modelData
980
981
982=== modified file 'plugins/cellular/Components/Sim.qml'
983--- plugins/cellular/Components/Sim.qml 2015-08-10 13:31:45 +0000
984+++ plugins/cellular/Components/Sim.qml 2016-07-22 14:36:34 +0000
985@@ -1,5 +1,5 @@
986 /*
987- * Copyright (C) 2014 Canonical Ltd
988+ * Copyright (C) 2014-2016 Canonical Ltd
989 *
990 * This program is free software: you can redistribute it and/or modify
991 * it under the terms of the GNU General Public License version 3 as
992@@ -37,6 +37,10 @@
993 return name + (number ? " (" + number + ")" : "");
994 }
995
996+ function getTechString () {
997+ return techToString(radioSettings.technologyPreference);
998+ }
999+
1000 function techToString (tech) {
1001 var strings = {
1002 'gsm': i18n.tr("2G only (saves battery)"),
1003@@ -44,7 +48,7 @@
1004 'lte': i18n.tr("2G/3G/4G (faster)")
1005 };
1006 strings['umts_enable'] = strings['umts'];
1007- return strings[tech];
1008+ return strings[tech] || "";
1009 }
1010
1011 // adds umts_enable to an copy of model
1012
1013=== modified file 'plugins/cellular/Components/SingleSim.qml'
1014--- plugins/cellular/Components/SingleSim.qml 2016-06-22 16:40:40 +0000
1015+++ plugins/cellular/Components/SingleSim.qml 2016-07-22 14:36:34 +0000
1016@@ -1,5 +1,5 @@
1017 /*
1018- * Copyright (C) 2014 Canonical Ltd
1019+ * Copyright (C) 2014-2016 Canonical Ltd
1020 *
1021 * This program is free software: you can redistribute it and/or modify
1022 * it under the terms of the GNU General Public License version 3 as
1023@@ -20,8 +20,8 @@
1024 import QtQuick 2.4
1025 import SystemSettings 1.0
1026 import Ubuntu.Connectivity 1.0
1027+import SystemSettings.ListItems 1.0 as SettingsListItems
1028 import Ubuntu.Components 1.3
1029-import Ubuntu.Components.ListItems 1.3 as ListItem
1030
1031 Column {
1032
1033@@ -64,10 +64,10 @@
1034 sort.property: "Index"
1035 sort.order: Qt.AscendingOrder
1036 }
1037-
1038- ListItem.Standard {
1039- text: i18n.tr("Cellular data")
1040- control: Switch {
1041+ SettingsListItems.Standard {
1042+ id: selector
1043+ text: i18n.tr("Cellular data:")
1044+ Switch {
1045 id: dataSwitch
1046 objectName: "data"
1047 checked: Connectivity.mobileDataEnabled
1048@@ -86,9 +86,11 @@
1049 }
1050 }
1051 }
1052- ListItem.Standard {
1053+
1054+ SettingsListItems.Standard {
1055+ id: dataRoamingItem
1056 text: i18n.tr("Data roaming")
1057- control: Switch {
1058+ Switch {
1059 id: roaming
1060 objectName: "roaming"
1061 enabled: singlesim.currentSim !== null && dataSwitch.checked
1062@@ -99,31 +101,24 @@
1063 }
1064 }
1065
1066- ListItem.Standard {
1067+ SettingsListItems.StandardProgression{
1068 text: i18n.tr("Data usage statistics")
1069- progression: true
1070 visible: showAllUI
1071 }
1072
1073- ListItem.Divider {
1074- visible: radio.visible
1075- }
1076-
1077- RadioSingleSim {
1078- id: radio
1079- anchors { left: parent.left; right: parent.right }
1080- visible: radio.enabled
1081- }
1082-
1083- ListItem.Divider {}
1084-
1085- ListItem.SingleValue {
1086- text: i18n.tr("Carrier");
1087+ SettingsListItems.SingleValueProgression {
1088+ text: i18n.tr("Carrier & APN");
1089 id: chooseCarrier
1090 objectName: "carrierApnEntry"
1091- progression: enabled
1092+ value: sim.netReg.name || ""
1093 onClicked: pageStack.push(Qt.resolvedUrl("../PageCarrierAndApn.qml"), {
1094 sim: sim
1095 })
1096 }
1097+
1098+ RadioSingleSim {
1099+ id: radio
1100+ anchors { left: parent.left; right: parent.right }
1101+ visible: radio.enabled
1102+ }
1103 }
1104
1105=== modified file 'plugins/cellular/PageCarrierAndApn.qml'
1106--- plugins/cellular/PageCarrierAndApn.qml 2015-08-10 13:31:45 +0000
1107+++ plugins/cellular/PageCarrierAndApn.qml 2016-07-22 14:36:34 +0000
1108@@ -1,5 +1,5 @@
1109 /*
1110- * Copyright (C) 2014 Canonical Ltd
1111+ * Copyright (C) 2014-2016 Canonical Ltd
1112 *
1113 * This program is free software: you can redistribute it and/or modify
1114 * it under the terms of the GNU General Public License version 3 as
1115@@ -19,12 +19,12 @@
1116 */
1117 import QtQuick 2.4
1118 import SystemSettings 1.0
1119+import SystemSettings.ListItems 1.0 as SettingsListItems
1120 import Ubuntu.Components 1.3
1121-import Ubuntu.Components.ListItems 1.3 as ListItem
1122
1123 ItemPage {
1124 id: root
1125- title: i18n.tr("Carrier")
1126+ title: i18n.tr("Carrier & APN")
1127 objectName: "carrierApnPage"
1128 flickable: null
1129
1130@@ -40,23 +40,23 @@
1131 anchors.left: parent.left
1132 anchors.right: parent.right
1133
1134- ListItem.SingleValue {
1135+ SettingsListItems.SingleValueProgression {
1136 text: i18n.tr("Carrier")
1137 objectName: "carrier"
1138 value: sim.netReg.name ? sim.netReg.name : i18n.tr("None")
1139 enabled: (sim.netReg.status !== "") &&
1140 (sim.netReg.mode !== "auto-only")
1141- progression: enabled
1142+ progressionVisible: enabled
1143 onClicked: pageStack.push(Qt.resolvedUrl("PageChooseCarrier.qml"), {
1144 sim: sim,
1145 title: i18n.tr("Carrier")
1146 })
1147 }
1148
1149- ListItem.Standard {
1150+ SettingsListItems.SingleValueProgression {
1151 text: i18n.tr("APN")
1152 objectName: "apn"
1153- progression: enabled
1154+ progressionVisible: enabled
1155 onClicked: pageStack.push(Qt.resolvedUrl("PageChooseApn.qml"), {
1156 sim: sim
1157 })
1158
1159=== modified file 'plugins/cellular/PageCarriersAndApns.qml'
1160--- plugins/cellular/PageCarriersAndApns.qml 2015-08-10 13:31:45 +0000
1161+++ plugins/cellular/PageCarriersAndApns.qml 2016-07-22 14:36:34 +0000
1162@@ -1,5 +1,5 @@
1163 /*
1164- * Copyright (C) 2014 Canonical Ltd
1165+ * Copyright (C) 2014-2016 Canonical Ltd
1166 *
1167 * This program is free software: you can redistribute it and/or modify
1168 * it under the terms of the GNU General Public License version 3 as
1169@@ -19,12 +19,12 @@
1170 */
1171 import QtQuick 2.4
1172 import SystemSettings 1.0
1173+import SystemSettings.ListItems 1.0 as SettingsListItems
1174 import Ubuntu.Components 1.3
1175-import Ubuntu.Components.ListItems 1.3 as ListItem
1176
1177 ItemPage {
1178 id: root
1179- title: i18n.tr("Carriers")
1180+ title: i18n.tr("Carriers & APNs")
1181 objectName: "carrierApnPage"
1182 flickable: null
1183
1184@@ -40,56 +40,39 @@
1185 anchors.left: parent.left
1186 anchors.right: parent.right
1187
1188- SettingsItemTitle {
1189- text: sims[0].title
1190- }
1191-
1192- ListItem.SingleValue {
1193- text: i18n.tr("Carrier")
1194- objectName: sims[0].path + "_carriers"
1195- value: sims[0].netReg.name ? sims[0].netReg.name :
1196- i18n.tr("None")
1197- enabled: (sims[0].netReg.status !== "") &&
1198- (sims[0].netReg.mode !== "auto-only")
1199- progression: enabled
1200- onClicked: pageStack.push(Qt.resolvedUrl("PageChooseCarrier.qml"), {
1201- sim: sims[0],
1202- title: sims[0].title
1203- })
1204- }
1205-
1206- ListItem.Standard {
1207- text: i18n.tr("APN")
1208- progression: enabled
1209- onClicked: pageStack.push(Qt.resolvedUrl("PageChooseApn.qml"), {
1210- sim: sims[0]
1211- })
1212- }
1213-
1214- SettingsItemTitle {
1215- text: sims[1].title
1216- }
1217-
1218- ListItem.SingleValue {
1219- text: i18n.tr("Carrier")
1220- objectName: sims[1].path + "_carriers"
1221- value: sims[1].netReg.name ? sims[1].netReg.name :
1222- i18n.tr("None")
1223- enabled: (sims[1].netReg.status !== "") &&
1224- (sims[1].netReg.mode !== "auto-only")
1225- progression: enabled
1226- onClicked: pageStack.push(Qt.resolvedUrl("PageChooseCarrier.qml"), {
1227- sim: sims[1],
1228- title: sims[1].title
1229- })
1230- }
1231-
1232- ListItem.Standard {
1233- text: i18n.tr("APN")
1234- progression: enabled
1235- onClicked: pageStack.push(Qt.resolvedUrl("PageChooseApn.qml"), {
1236- sim: sims[1]
1237- })
1238+ Repeater {
1239+ model: sims
1240+
1241+ Column {
1242+ anchors.left: parent.left
1243+ anchors.right: parent.right
1244+
1245+ SettingsItemTitle {
1246+ text: sims[index].title
1247+ }
1248+
1249+ SettingsListItems.SingleValueProgression {
1250+ text: i18n.tr("Carrier")
1251+ objectName: sims[index].path + "_carriers"
1252+ value: sims[index].netReg.name ? sims[index].netReg.name :
1253+ i18n.tr("None")
1254+ enabled: (sims[index].netReg.status !== "") &&
1255+ (sims[index].netReg.mode !== "auto-only")
1256+ progressionVisible: enabled
1257+ onClicked: pageStack.push(Qt.resolvedUrl("PageChooseCarrier.qml"), {
1258+ sim: sims[index],
1259+ title: sims[index].title
1260+ })
1261+ }
1262+
1263+ SettingsListItems.StandardProgression {
1264+ text: i18n.tr("APN")
1265+ progressionVisible: enabled
1266+ onClicked: pageStack.push(Qt.resolvedUrl("PageChooseApn.qml"), {
1267+ sim: sims[index]
1268+ })
1269+ }
1270+ }
1271 }
1272 }
1273 }
1274
1275=== modified file 'plugins/cellular/PageChooseApn.qml'
1276--- plugins/cellular/PageChooseApn.qml 2016-05-17 23:28:16 +0000
1277+++ plugins/cellular/PageChooseApn.qml 2016-07-22 14:36:34 +0000
1278@@ -1,7 +1,7 @@
1279 /*
1280 * This file is part of system-settings
1281 *
1282- * Copyright (C) 2014 Canonical Ltd.
1283+ * Copyright (C) 2014-2016 Canonical Ltd.
1284 *
1285 * Contact: Pat McGowan <pat.mcgowan@canonical.com>,
1286 * Jonas G. Drange <jonas.drange@canonical.com>
1287@@ -25,9 +25,9 @@
1288
1289 import QtQuick 2.4
1290 import SystemSettings 1.0
1291+import SystemSettings.ListItems 1.0 as SettingsListItems
1292 import Ubuntu.Components 1.3
1293 import Ubuntu.Components.Popups 1.3
1294-import Ubuntu.Components.ListItems 1.3 as ListItem
1295 import MeeGo.QOfono 0.2
1296 import Ubuntu.SystemSettings.Cellular 1.0
1297 import "apn_manager.js" as Manager
1298@@ -289,16 +289,22 @@
1299 Component {
1300 id: apnDelegate
1301
1302- ListItem.Standard {
1303+ SettingsListItems.StandardProgression {
1304 id: apnListItem
1305- property alias text: apnItemName.text
1306+ text: qml.name
1307+ layout.subtitle.text: qml.typeString
1308 objectName: "edit_" + qml.name
1309- height: units.gu(6)
1310- removable: true
1311- confirmRemoval: true
1312- progression: true
1313-
1314- onItemRemoved: Manager.removeContext(path);
1315+
1316+ leadingActions: ListItemActions {
1317+ actions: [
1318+ Action {
1319+ iconName: "delete"
1320+ name: i18n.tr("Delete")
1321+ onTriggered: Manager.removeContext(path)
1322+ }
1323+ ]
1324+ }
1325+
1326 onClicked: {
1327 editor = pageStack.push(pageApnEditor, {
1328 contextQML: qml,
1329@@ -308,7 +314,7 @@
1330 });
1331 }
1332
1333- control: CheckBox {
1334+ CheckBox {
1335 id: check
1336 objectName: qml.name + "_preferred"
1337 property bool serverChecked: qml && qml.preferred
1338@@ -316,45 +322,6 @@
1339 Component.onCompleted: checked = serverChecked
1340 onTriggered: Manager.setPreferred.call(this, qml, checked)
1341 }
1342-
1343- Item {
1344- anchors {
1345- top: parent.top
1346- bottom: parent.bottom
1347- left: parent.left
1348- leftMargin: units.gu(2)
1349- right: parent.right
1350- }
1351-
1352- Label {
1353- id: apnItemName
1354- anchors {
1355- topMargin: units.gu(1)
1356- top: parent.top
1357- left: parent.left
1358- right: parent.right
1359- }
1360-
1361- text: qml.name
1362- elide: Text.ElideRight
1363- opacity: apnListItem.enabled ? 1.0 : 0.5
1364- }
1365-
1366- Label {
1367- id: apnItemType
1368- anchors {
1369- left: parent.left
1370- right: parent.right
1371- top: apnItemName.bottom
1372- }
1373-
1374- text: qml.typeString
1375- color: Theme.palette.normal.backgroundText
1376- fontSize: "small"
1377- wrapMode: Text.Wrap
1378- maximumLineCount: 5
1379- }
1380- }
1381 }
1382 }
1383
1384
1385=== modified file 'plugins/cellular/PageComponent.qml'
1386--- plugins/cellular/PageComponent.qml 2015-08-13 13:13:57 +0000
1387+++ plugins/cellular/PageComponent.qml 2016-07-22 14:36:34 +0000
1388@@ -1,7 +1,7 @@
1389 /*
1390 * This file is part of system-settings
1391 *
1392- * Copyright (C) 2013 Canonical Ltd.
1393+ * Copyright (C) 2013-2016 Canonical Ltd.
1394 *
1395 * Contact: Iain Lane <iain.lane@canonical.com>
1396 *
1397@@ -22,7 +22,6 @@
1398 import SystemSettings 1.0
1399 import Ubuntu.SystemSettings.Cellular 1.0
1400 import Ubuntu.Components 1.3
1401-import Ubuntu.Components.ListItems 1.3 as ListItem
1402 import MeeGo.QOfono 0.2
1403 import QMenuModel 0.1
1404 import "Components" as LocalComponents
1405
1406=== modified file 'plugins/flight-mode/EntryComponent.qml'
1407--- plugins/flight-mode/EntryComponent.qml 2015-08-10 13:31:45 +0000
1408+++ plugins/flight-mode/EntryComponent.qml 2016-07-22 14:36:34 +0000
1409@@ -1,7 +1,7 @@
1410 /*
1411 * This file is part of system-settings
1412 *
1413- * Copyright (C) 2013 Canonical Ltd.
1414+ * Copyright (C) 2013-2016 Canonical Ltd.
1415 *
1416 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
1417 *
1418@@ -20,25 +20,35 @@
1419
1420 import QtQuick 2.4
1421 import Ubuntu.Components 1.3
1422-import Ubuntu.Components.ListItems 1.3 as ListItem
1423 import Ubuntu.SystemSettings.FlightMode 1.0 as FlightMode
1424 import Ubuntu.Settings.Components 0.1 as USC
1425
1426-ListItem.Standard {
1427+ListItem {
1428 id: root
1429- iconSource: model.icon
1430- iconFrame: false
1431- text: i18n.tr(model.displayName)
1432- control: Switch {
1433- id: switchItem
1434-
1435- USC.ServerPropertySynchroniser {
1436- userTarget: switchItem
1437- userProperty: "checked"
1438- serverTarget: helper
1439- serverProperty: "inFlightMode"
1440-
1441- onSyncTriggered: helper.setFlightMode(value)
1442+ height: layout.height
1443+
1444+ ListItemLayout {
1445+ id: layout
1446+ title.text: i18n.tr(model.displayName)
1447+
1448+ Switch {
1449+ id: switchItem
1450+
1451+ SlotsLayout.position: SlotsLayout.Trailing
1452+ USC.ServerPropertySynchroniser {
1453+ userTarget: switchItem
1454+ userProperty: "checked"
1455+ serverTarget: helper
1456+ serverProperty: "inFlightMode"
1457+
1458+ onSyncTriggered: helper.setFlightMode(value)
1459+ }
1460+ }
1461+ Icon {
1462+ SlotsLayout.position: SlotsLayout.Leading;
1463+ SlotsLayout.padding { top: 0; bottom: 0 }
1464+ source: model.icon
1465+ height: units.gu(5)
1466 }
1467 }
1468
1469
1470=== modified file 'plugins/flight-mode/flight-mode.settings'
1471--- plugins/flight-mode/flight-mode.settings 2014-09-24 17:10:03 +0000
1472+++ plugins/flight-mode/flight-mode.settings 2016-07-22 14:36:34 +0000
1473@@ -3,7 +3,7 @@
1474 "icon": "airplane-mode",
1475 "translations": "ubuntu-system-settings",
1476 "category": "uncategorized-top",
1477- "priority": 1,
1478+ "priority": 0,
1479 "keywords": [
1480 "flight",
1481 "plane",
1482
1483=== modified file 'plugins/hotspot/HotspotSetup.qml'
1484--- plugins/hotspot/HotspotSetup.qml 2016-03-11 15:07:14 +0000
1485+++ plugins/hotspot/HotspotSetup.qml 2016-07-22 14:36:34 +0000
1486@@ -1,7 +1,7 @@
1487 /*
1488 * This file is part of system-settings
1489 *
1490- * Copyright (C) 2014 Canonical Ltd.
1491+ * Copyright (C) 2014-2016 Canonical Ltd.
1492 *
1493 * This program is free software: you can redistribute it and/or modify it
1494 * under the terms of the GNU General Public License version 3, as published
1495@@ -19,8 +19,9 @@
1496 import QtQuick 2.4
1497 import QtQuick.Layouts 1.1
1498 import SystemSettings 1.0
1499+import SystemSettings.ListItems 1.0 as SettingsListItems
1500 import Ubuntu.Components 1.3
1501-import Ubuntu.Components.ListItems 1.3 as ListItem
1502+import Ubuntu.Components.ListItems 1.3 as ListItems
1503 import Ubuntu.Components.Popups 1.3
1504 import Ubuntu.Connectivity 1.0
1505 import Ubuntu.SystemSettings.Cellular 1.0
1506@@ -187,35 +188,23 @@
1507 width: parent.width
1508 }
1509
1510- ListItem.Empty {
1511+ SettingsListItems.Standard {
1512 id: passwordRequired
1513- onClicked: passwordRequiredToggle.trigger()
1514+ text: i18n.tr("Require a password (recommended):")
1515+ showDivider: false
1516+ layout.padding.leading: 0
1517+ SlotsLayout.padding.leading: 0
1518
1519 CheckBox {
1520 id: passwordRequiredToggle
1521 objectName: "passwordRequiredToggle"
1522 checked: Connectivity.hotspotAuth === "wpa-psk"
1523- anchors {
1524- left: parent.left
1525- verticalCenter: parent.verticalCenter
1526- }
1527+ SlotsLayout.position: SlotsLayout.First
1528+ SlotsLayout.padding.leading: 0
1529 // FIXME: Workaround for lp:1415023
1530 activeFocusOnPress: false
1531 }
1532-
1533- Label {
1534- id: passwordRequiredLabel
1535- anchors {
1536- left: passwordRequiredToggle.right
1537- leftMargin: units.gu(1)
1538- right: parent.right
1539- verticalCenter: parent.verticalCenter
1540- }
1541-
1542- // FIXME: Workaround for label not wrapping (lp:1442851)
1543- wrapMode: Text.Wrap
1544- text: i18n.tr("Require a password (recommended):")
1545- }
1546+ onClicked: passwordRequiredToggle.trigger()
1547 }
1548
1549 TextField {
1550@@ -229,39 +218,25 @@
1551 width: parent.width
1552 }
1553
1554- ListItem.Empty {
1555+ SettingsListItems.Standard {
1556 id: passwordVisible
1557 enabled: passwordRequiredToggle.checked
1558- onClicked: passwordVisibleToggle.trigger()
1559+ text: i18n.tr("Show password")
1560+ layout.padding.leading: 0
1561+ SlotsLayout.padding.leading: 0
1562
1563 CheckBox {
1564 id: passwordVisibleToggle
1565 enabled: parent.enabled
1566- anchors {
1567- left: parent.left
1568- verticalCenter: parent.verticalCenter
1569- }
1570-
1571+ SlotsLayout.position: SlotsLayout.First
1572+ SlotsLayout.padding.leading: 0
1573 // FIXME: Workaround for lp:1415023
1574 activeFocusOnPress: false
1575 }
1576-
1577- Label {
1578- id: passwordVisibleLabel
1579-
1580- /* FIXME: use enabled when lp:1491802 is fixed, or use
1581- CheckBox.text once lp:1323238 is fixed. */
1582- opacity: passwordRequiredToggle.checked ? 1 : 0.5
1583- anchors {
1584- left: passwordVisibleToggle.right
1585- leftMargin: units.gu(1)
1586- verticalCenter: parent.verticalCenter
1587- }
1588- text: i18n.tr("Show password")
1589- }
1590+ onClicked: passwordVisibleToggle.trigger()
1591 }
1592
1593- ListItem.Caption {
1594+ ListItems.Caption {
1595 id: enableWifiCaption
1596 anchors {
1597 left: parent.left
1598
1599=== modified file 'plugins/hotspot/PageComponent.qml'
1600--- plugins/hotspot/PageComponent.qml 2015-09-18 14:18:11 +0000
1601+++ plugins/hotspot/PageComponent.qml 2016-07-22 14:36:34 +0000
1602@@ -1,7 +1,7 @@
1603 /*
1604 * This file is part of system-settings
1605 *
1606- * Copyright (C) 2014-2015 Canonical Ltd.
1607+ * Copyright (C) 2014-2016 Canonical Ltd.
1608 *
1609 * Contact: Jonas G. Drange <jonas.drange@canonical.com>
1610 *
1611@@ -20,8 +20,9 @@
1612
1613 import QtQuick 2.4
1614 import SystemSettings 1.0
1615+import SystemSettings.ListItems 1.0 as SettingsListItems
1616+import Ubuntu.Components.ListItems 1.3 as ListItems
1617 import Ubuntu.Components 1.3
1618-import Ubuntu.Components.ListItems 1.3 as ListItem
1619 import Ubuntu.Components.Popups 1.3
1620 import Ubuntu.Connectivity 1.0
1621
1622@@ -77,12 +78,14 @@
1623 }
1624 spacing: units.gu(1)
1625
1626- ListItem.Standard {
1627+ SettingsListItems.Standard {
1628 id: hotspotItem
1629+ objectName: "hotspotItem"
1630 text: i18n.tr("Hotspot")
1631 enabled: Connectivity.hotspotStored
1632 onClicked: hotspotSwitch.trigger()
1633- control: Switch {
1634+
1635+ Switch {
1636 id: hotspotSwitch
1637 objectName: "hotspotSwitch"
1638 enabled: parent.enabled
1639@@ -101,7 +104,7 @@
1640 }
1641 }
1642
1643- ListItem.Caption {
1644+ ListItems.Caption {
1645 anchors {
1646 left: parent.left
1647 right: parent.right
1648
1649=== modified file 'plugins/language/settings-language.svg'
1650--- plugins/language/settings-language.svg 2013-06-28 14:53:07 +0000
1651+++ plugins/language/settings-language.svg 2016-07-22 14:36:34 +0000
1652@@ -9,14 +9,15 @@
1653 xmlns="http://www.w3.org/2000/svg"
1654 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
1655 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
1656- width="90"
1657- height="90"
1658- id="svg4230"
1659+ width="96"
1660+ height="96"
1661+ id="svg4874"
1662 version="1.1"
1663- inkscape:version="0.48+devel r12277"
1664- sodipodi:docname="setting-language-text.svg">
1665+ inkscape:version="0.91+devel r"
1666+ viewBox="0 0 96 96.000001"
1667+ sodipodi:docname="language-chooser.svg">
1668 <defs
1669- id="defs4232" />
1670+ id="defs4876" />
1671 <sodipodi:namedview
1672 id="base"
1673 pagecolor="#ffffff"
1674@@ -24,18 +25,91 @@
1675 borderopacity="1.0"
1676 inkscape:pageopacity="0.0"
1677 inkscape:pageshadow="2"
1678- inkscape:zoom="5.0931703"
1679- inkscape:cx="21.204866"
1680- inkscape:cy="6.4792647"
1681+ inkscape:zoom="3.5967995"
1682+ inkscape:cx="-41.870567"
1683+ inkscape:cy="69.839831"
1684 inkscape:document-units="px"
1685- inkscape:current-layer="layer1-57"
1686- showgrid="false"
1687+ inkscape:current-layer="g4780"
1688+ showgrid="true"
1689+ showborder="true"
1690 fit-margin-top="0"
1691 fit-margin-left="0"
1692 fit-margin-right="0"
1693- fit-margin-bottom="0" />
1694+ fit-margin-bottom="0"
1695+ inkscape:snap-bbox="true"
1696+ inkscape:bbox-paths="true"
1697+ inkscape:bbox-nodes="true"
1698+ inkscape:snap-bbox-edge-midpoints="true"
1699+ inkscape:snap-bbox-midpoints="true"
1700+ inkscape:object-paths="true"
1701+ inkscape:snap-intersection-paths="true"
1702+ inkscape:object-nodes="true"
1703+ inkscape:snap-smooth-nodes="true"
1704+ inkscape:snap-midpoints="true"
1705+ inkscape:snap-object-midpoints="true"
1706+ inkscape:snap-center="true"
1707+ showguides="true"
1708+ inkscape:guide-bbox="true"
1709+ inkscape:snap-global="true">
1710+ <inkscape:grid
1711+ type="xygrid"
1712+ id="grid5451"
1713+ empspacing="8" />
1714+ <sodipodi:guide
1715+ orientation="1,0"
1716+ position="8,-8.0000001"
1717+ id="guide4063" />
1718+ <sodipodi:guide
1719+ orientation="1,0"
1720+ position="4,-8.0000001"
1721+ id="guide4065" />
1722+ <sodipodi:guide
1723+ orientation="0,1"
1724+ position="-8,88.000001"
1725+ id="guide4067" />
1726+ <sodipodi:guide
1727+ orientation="0,1"
1728+ position="-8,92.000001"
1729+ id="guide4069" />
1730+ <sodipodi:guide
1731+ orientation="0,1"
1732+ position="104,4"
1733+ id="guide4071" />
1734+ <sodipodi:guide
1735+ orientation="0,1"
1736+ position="-5,8.0000001"
1737+ id="guide4073" />
1738+ <sodipodi:guide
1739+ orientation="1,0"
1740+ position="88,-8.0000001"
1741+ id="guide4077" />
1742+ <sodipodi:guide
1743+ orientation="0,1"
1744+ position="-8,84.000001"
1745+ id="guide4074" />
1746+ <sodipodi:guide
1747+ orientation="1,0"
1748+ position="12,-8.0000001"
1749+ id="guide4076" />
1750+ <sodipodi:guide
1751+ orientation="1,0"
1752+ position="84,-8.0000001"
1753+ id="guide4080" />
1754+ <sodipodi:guide
1755+ position="48,-8.0000001"
1756+ orientation="1,0"
1757+ id="guide4170" />
1758+ <sodipodi:guide
1759+ position="-8,48"
1760+ orientation="0,1"
1761+ id="guide4172" />
1762+ <sodipodi:guide
1763+ position="92,-8.0000001"
1764+ orientation="1,0"
1765+ id="guide4760" />
1766+ </sodipodi:namedview>
1767 <metadata
1768- id="metadata4235">
1769+ id="metadata4879">
1770 <rdf:RDF>
1771 <cc:Work
1772 rdf:about="">
1773@@ -50,72 +124,35 @@
1774 inkscape:label="Layer 1"
1775 inkscape:groupmode="layer"
1776 id="layer1"
1777- transform="translate(-0.7143,-261.64789)">
1778+ transform="translate(67.857146,-78.50504)">
1779 <g
1780- transform="translate(0.7143,-700.42863)"
1781- id="g4081"
1782- inkscape:label="Layer 1">
1783+ transform="matrix(0,-1,-1,0,373.50506,516.50504)"
1784+ id="g4845"
1785+ style="display:inline">
1786 <g
1787- transform="translate(0,-1.1427923)"
1788- id="layer1-57"
1789+ inkscape:export-ydpi="90"
1790+ inkscape:export-xdpi="90"
1791+ inkscape:export-filename="next01.png"
1792+ transform="matrix(-0.9996045,0,0,1,575.94296,-611.00001)"
1793+ id="g4778"
1794 inkscape:label="Layer 1">
1795 <g
1796- id="g4136"
1797- transform="matrix(1.875,0,0,1.875,-990,-829.95977)">
1798- <rect
1799- style="color:#000000;fill:none;stroke:none;stroke-width:7.5;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
1800- id="rect4134"
1801- width="48"
1802- height="48"
1803- x="528"
1804- y="544"
1805- transform="translate(0,412.36217)" />
1806- </g>
1807- <g
1808- transform="translate(-528,48.000013)"
1809- id="g3466">
1810- <rect
1811- y="915.2193"
1812- x="528"
1813- height="90"
1814- width="90"
1815- id="rect3474"
1816- style="color:#000000;fill:none;stroke:none;stroke-width:7.5;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" />
1817- <path
1818- style="fill:#808080;fill-opacity:1;display:inline"
1819- d="M 28.96875 16 C 16.52725 16.1641 15 17.5 15 28 L 15 46 C 15 55.9093 16.3891 57.60545 27 57.90625 L 27 70 L 39 58 L 55 58 C 73 58 75 58 75 46 L 75 28 C 75 16 73 16 55 16 L 35 16 C 32.75 16 30.74605 15.9766 28.96875 16 z M 42.78125 24.21875 L 47.1875 24.21875 C 48.04962 26.041523 48.87464 27.877967 49.6875 29.75 C 50.50036 31.622033 51.312147 33.587157 52.125 35.65625 C 52.962493 37.725343 53.82538 39.934587 54.6875 42.25 C 55.574253 44.565407 56.476853 47.07834 57.4375 49.8125 L 52.4375 49.8125 C 52.092647 48.802587 51.71323 47.79778 51.34375 46.8125 C 50.97427 45.827213 50.626097 44.815797 50.28125 43.78125 L 39.5 43.78125 C 39.155153 44.815797 38.80698 45.833837 38.4375 46.84375 L 37.375 49.8125 L 32.5625 49.8125 C 33.523147 47.07834 34.419123 44.565407 35.28125 42.25 C 36.14337 39.934587 36.968397 37.725343 37.78125 35.65625 C 38.618743 33.587157 39.468397 31.622033 40.28125 29.75 C 41.09411 27.877967 41.91913 26.041523 42.78125 24.21875 z M 44.875 29.15625 C 44.308467 30.46175 43.676467 32.065467 42.9375 33.9375 C 42.223173 35.80954 41.475727 37.839003 40.6875 40.03125 L 49.09375 40.03125 C 48.305523 37.839003 47.55146 35.771673 46.8125 33.875 C 46.07354 31.978333 45.416907 30.412483 44.875 29.15625 z "
1820- transform="translate(528,915.2193)"
1821- id="path3962" />
1822- <path
1823- sodipodi:type="arc"
1824- style="color:#000000;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:6;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
1825- id="path3965"
1826- sodipodi:cx="1731"
1827- sodipodi:cy="1545"
1828- sodipodi:rx="3"
1829- sodipodi:ry="3"
1830- d="m 1734,1545 c 0,1.6569 -1.3431,3 -3,3 -1.6569,0 -3,-1.3431 -3,-3 0,-1.6569 1.3431,-3 3,-3 C 1732.6569,1542 1734,1543.3431 1734,1545 Z"
1831- transform="matrix(1.3333333,0,0,1.3333333,-1708.9999,-1072.7807)" />
1832- <path
1833- transform="matrix(1.3333333,0,0,1.3333333,-1720.9999,-1072.7807)"
1834- d="m 1734,1545 c 0,1.6569 -1.3431,3 -3,3 -1.6569,0 -3,-1.3431 -3,-3 0,-1.6569 1.3431,-3 3,-3 C 1732.6569,1542 1734,1543.3431 1734,1545 Z"
1835- sodipodi:ry="3"
1836- sodipodi:rx="3"
1837- sodipodi:cy="1545"
1838- sodipodi:cx="1731"
1839- id="path3976"
1840- style="color:#000000;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:6;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
1841- sodipodi:type="arc" />
1842- <path
1843- sodipodi:type="arc"
1844- style="color:#000000;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:6;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
1845- id="path3978"
1846- sodipodi:cx="1731"
1847- sodipodi:cy="1545"
1848- sodipodi:rx="3"
1849- sodipodi:ry="3"
1850- d="m 1734,1545 c 0,1.6569 -1.3431,3 -3,3 -1.6569,0 -3,-1.3431 -3,-3 0,-1.6569 1.3431,-3 3,-3 C 1732.6569,1542 1734,1543.3431 1734,1545 Z"
1851- transform="matrix(1.3333333,0,0,1.3333333,-1732.9999,-1072.7807)" />
1852+ transform="matrix(-1,0,0,1,575.99999,611)"
1853+ id="g4780"
1854+ style="display:inline">
1855+ <rect
1856+ style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:none;stroke:none;stroke-width:4;marker:none;enable-background:accumulate"
1857+ id="rect4782"
1858+ width="96.037987"
1859+ height="96"
1860+ x="-438.00244"
1861+ y="345.36221"
1862+ transform="scale(-1,1)" />
1863+ <path
1864+ style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.99960446;marker:none;enable-background:accumulate"
1865+ d="M 48 6.0019531 C 24.82764 6.0019531 6 24.828928 6 48 C 6 71.171082 24.82764 89.998047 48 89.998047 C 71.17237 89.998047 90 71.171082 90 48 C 90 24.828928 71.17237 6.0019531 48 6.0019531 z M 42.53125 10.396484 C 33.296711 20.093908 28.462948 32.967067 28.013672 46 L 10.056641 46 C 10.99887 27.755915 24.765744 12.950862 42.53125 10.396484 z M 53.46875 10.396484 C 71.235181 12.950074 85.003049 27.75526 85.945312 46 L 67.986328 46 C 67.537031 32.967051 62.70334 20.093716 53.46875 10.396484 z M 48 10.671875 C 58.121521 19.777207 63.428064 32.787817 63.914062 46 L 32.085938 46 C 32.571943 32.787634 37.878206 19.777225 48 10.671875 z M 10.056641 50 L 28.013672 50 C 28.462948 63.032933 33.296711 75.906092 42.53125 85.603516 C 24.766398 83.048936 10.999752 68.243289 10.056641 50 z M 32.085938 50 L 63.914062 50 C 63.428064 63.212183 58.121521 76.222793 48 85.328125 C 37.878206 76.222775 32.571943 63.212366 32.085938 50 z M 67.986328 50 L 85.945312 50 C 85.002167 68.243944 71.234526 83.049724 53.46875 85.603516 C 62.703024 75.906274 67.536746 63.032634 67.986328 50 z "
1866+ transform="matrix(0,-1,-1.0003957,0,438.00245,441.36222)"
1867+ id="rect3011" />
1868 </g>
1869 </g>
1870 </g>
1871
1872=== modified file 'plugins/mouse/PrimaryButtonSelector.qml'
1873--- plugins/mouse/PrimaryButtonSelector.qml 2016-01-25 17:59:57 +0000
1874+++ plugins/mouse/PrimaryButtonSelector.qml 2016-07-22 14:36:34 +0000
1875@@ -1,7 +1,7 @@
1876 /*
1877 * This file is part of system-settings
1878 *
1879- * Copyright (C) 2015 Canonical Ltd.
1880+ * Copyright (C) 2015-2016 Canonical Ltd.
1881 *
1882 * Contact: Ken VanDine <ken.vandine@canonical.com>
1883 *
1884@@ -40,7 +40,6 @@
1885
1886 SettingsItemTitle {
1887 text: i18n.tr("Primary button:")
1888- showDivider: false
1889 }
1890
1891 ListItem.Empty {
1892
1893=== modified file 'plugins/orientation-lock/EntryComponent.qml'
1894--- plugins/orientation-lock/EntryComponent.qml 2015-08-10 13:31:45 +0000
1895+++ plugins/orientation-lock/EntryComponent.qml 2016-07-22 14:36:34 +0000
1896@@ -1,7 +1,7 @@
1897 /*
1898 * This file is part of system-settings
1899 *
1900- * Copyright (C) 2013 Canonical Ltd.
1901+ * Copyright (C) 2013-2016 Canonical Ltd.
1902 *
1903 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
1904 *
1905@@ -22,26 +22,35 @@
1906 import QtQuick 2.4
1907 import QtQuick.Window 2.1
1908 import Ubuntu.Components 1.3
1909-import Ubuntu.Components.ListItems 1.3 as ListItem
1910-
1911-
1912-ListItem.Standard {
1913+
1914+
1915+ListItem {
1916 id: root
1917- iconSource: model.icon
1918- iconFrame: false
1919- text: i18n.tr(model.displayName)
1920- control: Switch {
1921- id: control
1922- objectName: "orientationLockSwitch"
1923-
1924- property bool serverChecked: systemSettings.rotationLock
1925- onServerCheckedChanged: checked = serverChecked
1926- Component.onCompleted: checked = serverChecked
1927- onTriggered: systemSettings.rotationLock = checked
1928-
1929- GSettings {
1930- id: systemSettings
1931- schema.id: "com.ubuntu.touch.system"
1932+ height: layout.height
1933+
1934+ ListItemLayout {
1935+ id: layout
1936+ title.text: i18n.tr(model.displayName)
1937+ Switch {
1938+ id: control
1939+ objectName: "orientationLockSwitch"
1940+
1941+ SlotsLayout.position: SlotsLayout.Trailing
1942+ property bool serverChecked: systemSettings.rotationLock
1943+ onServerCheckedChanged: checked = serverChecked
1944+ Component.onCompleted: checked = serverChecked
1945+ onTriggered: systemSettings.rotationLock = checked
1946+
1947+ GSettings {
1948+ id: systemSettings
1949+ schema.id: "com.ubuntu.touch.system"
1950+ }
1951+ }
1952+ Icon {
1953+ SlotsLayout.position: SlotsLayout.Leading;
1954+ SlotsLayout.padding { top: 0; bottom: 0 }
1955+ source: model.icon
1956+ height: units.gu(5)
1957 }
1958 }
1959 }
1960
1961=== modified file 'plugins/orientation-lock/orientation-lock.settings'
1962--- plugins/orientation-lock/orientation-lock.settings 2014-11-03 22:01:37 +0000
1963+++ plugins/orientation-lock/orientation-lock.settings 2016-07-22 14:36:34 +0000
1964@@ -3,7 +3,7 @@
1965 "name": "Rotation Lock",
1966 "translations": "ubuntu-system-settings",
1967 "category": "uncategorized-top",
1968- "priority": 0,
1969+ "priority": 1,
1970 "form-factors": [
1971 "phone",
1972 "tablet"
1973
1974=== modified file 'plugins/phone/CallForwarding.qml'
1975--- plugins/phone/CallForwarding.qml 2016-05-17 23:28:16 +0000
1976+++ plugins/phone/CallForwarding.qml 2016-07-22 14:36:34 +0000
1977@@ -1,7 +1,7 @@
1978 /*
1979 * This file is part of system-settings
1980 *
1981- * Copyright (C) 2013 Canonical Ltd.
1982+ * Copyright (C) 2013-2016 Canonical Ltd.
1983 *
1984 * Contact:
1985 * Sebastien Bacher <sebastien.bacher@canonical.com>
1986@@ -164,7 +164,6 @@
1987 SettingsItemTitle {
1988 id: fwdSomeTitle
1989 text: i18n.tr("Forward incoming calls when:")
1990- showDivider: false
1991 }
1992
1993 CallForwardItem {
1994
1995=== modified file 'plugins/reset/EntryComponent.qml'
1996--- plugins/reset/EntryComponent.qml 2016-03-22 17:19:41 +0000
1997+++ plugins/reset/EntryComponent.qml 2016-07-22 14:36:34 +0000
1998@@ -1,7 +1,7 @@
1999 /*
2000 * This file is part of system-settings
2001 *
2002- * Copyright (C) 2013 Canonical Ltd.
2003+ * Copyright (C) 2013-2016 Canonical Ltd.
2004 *
2005 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
2006 *
2007@@ -20,13 +20,21 @@
2008
2009 import QtQuick 2.4
2010 import Ubuntu.Components 1.3
2011-import Ubuntu.Components.ListItems 1.3 as ListItem
2012
2013-ListItem.Standard {
2014+ListItem {
2015 id: root
2016 objectName: "entryComponent-reset"
2017- iconSource: model.icon
2018- iconFrame: false
2019- text: i18n.tr(model.displayName)
2020- progression: true
2021+ height: layout.height
2022+
2023+ ListItemLayout {
2024+ id: layout
2025+ title.text: i18n.tr(model.displayName)
2026+ Icon {
2027+ SlotsLayout.position: SlotsLayout.Leading;
2028+ SlotsLayout.padding { top: 0; bottom: 0 }
2029+ source: model.icon
2030+ height: units.gu(5)
2031+ }
2032+ ProgressionSlot {}
2033+ }
2034 }
2035
2036=== modified file 'plugins/reset/PageComponent.qml'
2037--- plugins/reset/PageComponent.qml 2016-02-04 15:28:51 +0000
2038+++ plugins/reset/PageComponent.qml 2016-07-22 14:36:34 +0000
2039@@ -1,7 +1,7 @@
2040 /*
2041 * This file is part of system-settings
2042 *
2043- * Copyright (C) 2013 Canonical Ltd.
2044+ * Copyright (C) 2013-2016 Canonical Ltd.
2045 *
2046 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
2047 *
2048@@ -21,8 +21,8 @@
2049 import GSettings 1.0
2050 import QtQuick 2.4
2051 import SystemSettings 1.0
2052+import SystemSettings.ListItems 1.0 as SettingsListItems
2053 import Ubuntu.Components 1.3
2054-import Ubuntu.Components.ListItems 1.3 as ListItem
2055 import Ubuntu.Components.Popups 1.3
2056 import Ubuntu.SystemSettings.Reset 1.0
2057
2058@@ -66,46 +66,81 @@
2059 anchors.left: parent.left
2060 anchors.right: parent.right
2061
2062- ListItem.SingleControl {
2063- control: Button {
2064+ Label {
2065+ anchors {
2066+ left: parent.left
2067+ right: parent.right
2068+ margins: units.gu(2)
2069+ }
2070+ text: i18n.tr("Reset Launcher")
2071+ color: UbuntuColors.orange
2072+ height: units.gu(6)
2073+ verticalAlignment: Text.AlignVCenter
2074+ }
2075+
2076+ SettingsListItems.Standard {
2077+
2078+ Button {
2079 id: resetLauncherHomeButton
2080 objectName: "resetLauncher"
2081 text: i18n.tr("Reset Launcher")
2082- width: parent.width - units.gu(4)
2083 onClicked: {
2084 buttonActions.source = "ResetLauncherHome.qml";
2085 root.popup = PopupUtils.open(buttonActions.item);
2086 }
2087 }
2088- showDivider: false
2089- }
2090-
2091- ListItem.SingleControl {
2092- visible: false // enabled when backend is ready/useful
2093- control: Button {
2094+ }
2095+
2096+ Label {
2097+ anchors {
2098+ left: parent.left
2099+ right: parent.right
2100+ margins: units.gu(2)
2101+ }
2102+ visible: showAllUI
2103+ text: i18n.tr("Reset all system settings…")
2104+ color: UbuntuColors.orange
2105+ height: units.gu(6)
2106+ verticalAlignment: Text.AlignVCenter
2107+ }
2108+
2109+ SettingsListItems.Standard {
2110+ visible: showAllUI
2111+
2112+ Button {
2113 id: resetAllSettingsButton
2114 text: i18n.tr("Reset all system settings…")
2115- width: parent.width - units.gu(4)
2116 onClicked: {
2117 buttonActions.source = "ResetAllSettings.qml";
2118 root.popup = PopupUtils.open(buttonActions.item);
2119 }
2120 }
2121- showDivider: false
2122- }
2123-
2124- ListItem.SingleControl {
2125- control: Button {
2126+ }
2127+
2128+ Label {
2129+ anchors {
2130+ left: parent.left
2131+ right: parent.right
2132+ margins: units.gu(2)
2133+ }
2134+ text: i18n.tr("Erase & Reset All")
2135+ color: UbuntuColors.orange
2136+ height: units.gu(6)
2137+ verticalAlignment: Text.AlignVCenter
2138+ }
2139+
2140+ SettingsListItems.Standard {
2141+
2142+ Button {
2143 id: eraseEverythingButton
2144 objectName: "factoryReset"
2145- text: i18n.tr("Erase & Reset Everything…")
2146- width: parent.width - units.gu(4)
2147+
2148+ text: i18n.tr("Erase & Reset All")
2149 onClicked: {
2150 buttonActions.source = "EraseEverything.qml";
2151 root.popup = PopupUtils.open(buttonActions.item);
2152 }
2153 }
2154- showDivider: false
2155 }
2156 }
2157 }
2158
2159=== modified file 'plugins/security-privacy/AppAccess.qml'
2160--- plugins/security-privacy/AppAccess.qml 2016-02-26 19:07:21 +0000
2161+++ plugins/security-privacy/AppAccess.qml 2016-07-22 14:36:34 +0000
2162@@ -1,5 +1,5 @@
2163 /*
2164- * Copyright (C) 2013 Canonical Ltd
2165+ * Copyright (C) 2013-2016 Canonical Ltd
2166 *
2167 * This program is free software: you can redistribute it and/or modify
2168 * it under the terms of the GNU General Public License version 3 as
2169@@ -18,10 +18,11 @@
2170 */
2171
2172 import QtQuick 2.4
2173+import SystemSettings 1.0
2174+import SystemSettings.ListItems 1.0 as SettingsListItems
2175 import Ubuntu.Components 1.3
2176-import Ubuntu.Components.ListItems 1.3 as ListItem
2177+import Ubuntu.Components.ListItems 1.3 as ListItems
2178 import Ubuntu.SystemSettings.SecurityPrivacy 1.0
2179-import SystemSettings 1.0
2180
2181 ItemPage {
2182 id: root
2183@@ -57,7 +58,7 @@
2184 anchors.left: parent.left
2185 anchors.right: parent.right
2186
2187- ListItem.Caption {
2188+ ListItems.Caption {
2189 text: i18n.tr("Apps that you have granted access to:")
2190 }
2191
2192@@ -91,10 +92,10 @@
2193 Repeater {
2194 model: appsModel
2195
2196- ListItem.SingleValue {
2197+ SettingsListItems.SingleValueProgression {
2198 text: i18n.tr(model.name)
2199 enabled: trustStoreModel.count > 0
2200- progression: enabled ? true : false
2201+ progressionVisible: enabled ? true : false
2202 value: trustStoreModel.count > 0 ?
2203 i18n.tr("%1/%2").arg(trustStoreModel.grantedCount).arg(trustStoreModel.count) :
2204 i18n.tr("0")
2205@@ -104,19 +105,19 @@
2206 "model": trustStoreModel,
2207 })
2208
2209- TrustStoreModel {
2210+ resources: TrustStoreModel {
2211 id: trustStoreModel
2212 serviceName: model.trustStoreService
2213 }
2214 }
2215 }
2216
2217- ListItem.Caption {
2218+ ListItems.Caption {
2219 text: i18n.tr("Apps may also request access to online accounts.")
2220 }
2221
2222- ListItem.SingleControl {
2223- control: Button {
2224+ SettingsListItems.SingleControl {
2225+ Button {
2226 text: i18n.tr("Online Accounts…")
2227 width: parent.width - units.gu(4)
2228 onClicked: {
2229
2230=== modified file 'plugins/security-privacy/AppAccessControl.qml'
2231--- plugins/security-privacy/AppAccessControl.qml 2015-08-10 13:31:45 +0000
2232+++ plugins/security-privacy/AppAccessControl.qml 2016-07-22 14:36:34 +0000
2233@@ -1,5 +1,5 @@
2234 /*
2235- * Copyright (C) 2013 Canonical Ltd
2236+ * Copyright (C) 2013-2016 Canonical Ltd
2237 *
2238 * This program is free software: you can redistribute it and/or modify
2239 * it under the terms of the GNU General Public License version 3 as
2240@@ -18,9 +18,10 @@
2241 */
2242
2243 import QtQuick 2.4
2244+import SystemSettings 1.0
2245+import SystemSettings.ListItems 1.0 as SettingsListItems
2246 import Ubuntu.Components 1.3
2247-import Ubuntu.Components.ListItems 1.3 as ListItem
2248-import SystemSettings 1.0
2249+import Ubuntu.Components.ListItems 1.3 as ListItems
2250
2251 ItemPage {
2252 id: root
2253@@ -43,17 +44,17 @@
2254 anchors.left: parent.left
2255 anchors.right: parent.right
2256
2257- ListItem.Caption {
2258+ ListItems.Caption {
2259 id: captionLabel
2260 }
2261
2262 Repeater {
2263 id: repeater
2264
2265- ListItem.Standard {
2266+ SettingsListItems.Icon {
2267 text: model.applicationName
2268 iconSource: model.iconName
2269- control: Switch {
2270+ Switch {
2271 id: welcomeStatsSwitch
2272 checked: model.granted
2273 onClicked: root.model.setEnabled(index, !model.granted)
2274
2275=== modified file 'plugins/security-privacy/Location.qml'
2276--- plugins/security-privacy/Location.qml 2016-02-12 21:15:56 +0000
2277+++ plugins/security-privacy/Location.qml 2016-07-22 14:36:34 +0000
2278@@ -1,5 +1,5 @@
2279 /*
2280- * Copyright (C) 2013 Canonical Ltd
2281+ * Copyright (C) 2013-2016 Canonical Ltd
2282 *
2283 * This program is free software: you can redistribute it and/or modify
2284 * it under the terms of the GNU General Public License version 3 as
2285@@ -22,11 +22,12 @@
2286 import QMenuModel 0.1
2287 import Qt.labs.folderlistmodel 2.1
2288 import QtQuick 2.4
2289+import SystemSettings 1.0
2290+import SystemSettings.ListItems 1.0 as SettingsListItems
2291 import Ubuntu.Components 1.3
2292-import Ubuntu.Components.ListItems 1.3 as ListItem
2293 import Ubuntu.Connectivity 1.0
2294+import Ubuntu.Components.ListItems 1.3 as ListItems
2295 import Ubuntu.SystemSettings.SecurityPrivacy 1.0
2296-import SystemSettings 1.0
2297
2298 ItemPage {
2299 id: locationPage
2300@@ -95,7 +96,7 @@
2301 text: i18n.tr("Let the device detect your location:")
2302 }
2303
2304- ListItem.ItemSelector {
2305+ ListItems.ItemSelector {
2306 id: detection
2307
2308 /* Helper that toggles location detection and HERE based on
2309@@ -202,7 +203,7 @@
2310 }
2311 }
2312
2313- ListItem.Caption {
2314+ ListItems.Caption {
2315 /* TODO: replace by real info from the location service */
2316 property int locationInfo: 0
2317
2318@@ -238,10 +239,10 @@
2319
2320 Repeater {
2321 model: trustStoreModel
2322- ListItem.Standard {
2323+ SettingsListItems.Icon {
2324 text: model.applicationName
2325 iconSource: model.iconName
2326- control: Switch {
2327+ Switch {
2328 checked: model.granted
2329 onClicked: trustStoreModel.setEnabled(index, !model.granted)
2330 }
2331@@ -249,12 +250,11 @@
2332 }
2333 }
2334
2335- ListItem.Standard {
2336+ SettingsListItems.Standard {
2337 text: i18n.tr("None requested")
2338 visible: trustStoreModel.count === 0
2339 enabled: false
2340 }
2341 }
2342-
2343 }
2344 }
2345
2346=== modified file 'plugins/security-privacy/LockSecurity.qml'
2347--- plugins/security-privacy/LockSecurity.qml 2016-06-15 12:15:08 +0000
2348+++ plugins/security-privacy/LockSecurity.qml 2016-07-22 14:36:34 +0000
2349@@ -22,12 +22,13 @@
2350 import GSettings 1.0
2351 import QtQuick 2.4
2352 import QtQuick.Layouts 1.1
2353+import SystemSettings 1.0
2354+import SystemSettings.ListItems 1.0 as SettingsListItems
2355 import Ubuntu.Components 1.3
2356-import Ubuntu.Components.ListItems 1.3 as ListItem
2357+import Ubuntu.Components.ListItems 1.3 as ListItems
2358 import Ubuntu.Components.Popups 1.3
2359 import Ubuntu.Settings.Fingerprint 0.1
2360 import Ubuntu.SystemSettings.SecurityPrivacy 1.0
2361-import SystemSettings 1.0
2362
2363 ItemPage {
2364 id: page
2365@@ -460,7 +461,7 @@
2366 text: i18n.tr("Unlock the device using:")
2367 }
2368
2369- ListItem.ItemSelector {
2370+ ListItems.ItemSelector {
2371 property string swipe: i18n.tr("Swipe (no security)")
2372 property string passcode: i18n.tr("4-digit passcode")
2373 property string passphrase: i18n.tr("Passphrase")
2374@@ -548,7 +549,7 @@
2375 }
2376 }
2377
2378- ListItem.SingleControl {
2379+ SettingsListItems.SingleControl {
2380
2381 id: changeControl
2382 visible: securityPrivacy.securityType ===
2383@@ -556,7 +557,7 @@
2384 securityPrivacy.securityType ===
2385 UbuntuSecurityPrivacyPanel.Passphrase
2386
2387- control: Button {
2388+ Button {
2389 property string changePasscode: i18n.tr("Change passcode…")
2390 property string changePassphrase: i18n.tr("Change passphrase…")
2391
2392
2393=== modified file 'plugins/security-privacy/PageComponent.qml'
2394--- plugins/security-privacy/PageComponent.qml 2016-06-15 12:12:40 +0000
2395+++ plugins/security-privacy/PageComponent.qml 2016-07-22 14:36:34 +0000
2396@@ -1,7 +1,7 @@
2397 /*
2398 * This file is part of system-settings
2399 *
2400- * Copyright (C) 2013 Canonical Ltd.
2401+ * Copyright (C) 2013-2016 Canonical Ltd.
2402 *
2403 * Contact: Evan Dandrea <evan.dandrea@canonical.com>
2404 *
2405@@ -22,8 +22,9 @@
2406 import GSettings 1.0
2407 import QMenuModel 0.1
2408 import QtQuick 2.4
2409+import SystemSettings.ListItems 1.0 as SettingsListItems
2410 import Ubuntu.Components 1.3
2411-import Ubuntu.Components.ListItems 1.3 as ListItem
2412+import Ubuntu.Components.ListItems 1.3 as ListItems
2413 import SystemSettings 1.0
2414 import Ubuntu.Settings.Fingerprint 0.1
2415 import Ubuntu.SystemSettings.Battery 1.0
2416@@ -148,15 +149,15 @@
2417 anchors.left: parent.left
2418 anchors.right: parent.right
2419
2420- ListItem.Header {
2421+ SettingsItemTitle {
2422 id: securityTitle
2423 text: i18n.tr("Security")
2424 }
2425- ListItem.SingleValue {
2426+
2427+ SettingsListItems.SingleValueProgression {
2428 id: fingerprintControl
2429 objectName: "fingerprintControl"
2430 text: i18n.tr("Fingerprint ID")
2431- progression: true
2432 onClicked: pageStack.push(fingeprintPage, {
2433 passcodeSet: securityPrivacy.securityType !== UbuntuSecurityPrivacyPanel.Swipe
2434 })
2435@@ -173,17 +174,17 @@
2436 }
2437 }
2438
2439- ListItem.SingleValue {
2440+ SettingsListItems.SingleValueProgression {
2441 id: lockingControl
2442 objectName: "lockingControl"
2443 text: i18n.tr("Locking and unlocking")
2444- progression: true
2445 onClicked: pageStack.push(Qt.resolvedUrl("PhoneLocking.qml"), {
2446 usePowerd: usePowerd,
2447 powerSettings: powerSettings
2448 })
2449 }
2450- ListItem.SingleValue {
2451+
2452+ SettingsListItems.SingleValueProgression {
2453 id: simControl
2454 objectName: "simControl"
2455 text: i18n.tr("SIM PIN")
2456@@ -196,28 +197,31 @@
2457 return i18n.tr("Off");
2458 }
2459 visible: simsPresent > 0
2460- progression: true
2461 onClicked: pageStack.push(Qt.resolvedUrl("SimPin.qml"), { sims: sims })
2462 }
2463- ListItem.Standard {
2464+
2465+ SettingsListItems.Standard {
2466 text: i18n.tr("Encryption")
2467- control: Switch {
2468+ Switch {
2469 id: encryptionSwitch
2470 checked: false
2471 }
2472 visible: showAllUI
2473 }
2474- ListItem.Caption {
2475+
2476+ ListItems.Caption {
2477 text: i18n.tr(
2478 "Encryption protects against access to phone data when the phone is connected to a PC or other device.")
2479 visible: showAllUI
2480 }
2481- ListItem.Header {
2482+
2483+ SettingsItemTitle {
2484 text: i18n.tr("Privacy")
2485 }
2486- ListItem.Standard {
2487+
2488+ SettingsListItems.Standard {
2489 text: i18n.tr("Stats on welcome screen")
2490- control: Switch {
2491+ Switch {
2492 property bool serverChecked: securityPrivacy.statsWelcomeScreen
2493 onServerCheckedChanged: checked = serverChecked
2494 Component.onCompleted: checked = serverChecked
2495@@ -225,9 +229,9 @@
2496 }
2497 }
2498
2499- ListItem.Standard {
2500+ SettingsListItems.Standard {
2501 text: i18n.tr("Messages on welcome screen")
2502- control: Switch {
2503+ Switch {
2504 property bool serverChecked: securityPrivacy.messagesWelcomeScreen
2505 onServerCheckedChanged: checked = serverChecked
2506 Component.onCompleted: checked = serverChecked
2507@@ -246,12 +250,12 @@
2508
2509 Component.onCompleted: start()
2510 }
2511- ListItem.SingleValue {
2512+
2513+ SettingsListItems.SingleValueProgression {
2514 id: locationItem
2515 objectName: "locationItem"
2516 text: i18n.tr("Location")
2517 value: ""
2518- progression: true
2519 onClicked: pageStack.push(Qt.resolvedUrl("Location.qml"))
2520 visible: true
2521 enabled: true
2522@@ -261,19 +265,20 @@
2523 i18n.tr("On") : i18n.tr("Off")
2524 }
2525 }
2526+
2527 Binding {
2528 target: locationItem
2529 property: "locationEnabled"
2530 value: locationActionGroup.enabled.state
2531 }
2532- ListItem.SingleValue {
2533+
2534+ SettingsListItems.SingleValueProgression {
2535 text: i18n.tr("App permissions")
2536- progression: true
2537 onClicked: pageStack.push(Qt.resolvedUrl("AppAccess.qml"), {pluginManager: pluginManager})
2538 }
2539- ListItem.SingleValue {
2540+
2541+ SettingsListItems.SingleValueProgression {
2542 text: i18n.tr("Diagnostics")
2543- progression: true
2544 value: diagnosticsWidget.reportCrashes ?
2545 /* TRANSLATORS: This string is shown when crash
2546 reports are to be sent by the system. */
2547
2548=== modified file 'plugins/security-privacy/PhoneLocking.qml'
2549--- plugins/security-privacy/PhoneLocking.qml 2016-06-15 11:02:05 +0000
2550+++ plugins/security-privacy/PhoneLocking.qml 2016-07-22 14:36:34 +0000
2551@@ -1,7 +1,7 @@
2552 /*
2553 * This file is part of system-settings
2554 *
2555- * Copyright (C) 2013 Canonical Ltd.
2556+ * Copyright (C) 2013-2016 Canonical Ltd.
2557 *
2558 * Contact: Iain Lane <iain.lane@canonical.com>
2559 *
2560@@ -21,8 +21,9 @@
2561 import GSettings 1.0
2562 import QtQuick 2.4
2563 import SystemSettings 1.0
2564+import SystemSettings.ListItems 1.0 as SettingsListItems
2565 import Ubuntu.Components 1.3
2566-import Ubuntu.Components.ListItems 1.3 as ListItem
2567+import Ubuntu.Components.ListItems 1.3 as ListItems
2568 import Ubuntu.SystemSettings.SecurityPrivacy 1.0
2569
2570 ItemPage {
2571@@ -52,7 +53,7 @@
2572 anchors.left: parent.left
2573 anchors.right: parent.right
2574
2575- ListItem.SingleValue {
2576+ SettingsListItems.SingleValueProgression {
2577 property string swipe: i18n.ctr("Unlock with swipe", "None")
2578 property string passcode: i18n.tr("Passcode")
2579 property string passphrase: i18n.tr("Passphrase")
2580@@ -74,11 +75,10 @@
2581 return fingerprint
2582 }
2583 }
2584- progression: true
2585 onClicked: pageStack.push(Qt.resolvedUrl("LockSecurity.qml"))
2586 }
2587
2588- ListItem.SingleValue {
2589+ SettingsListItems.SingleValueProgression {
2590 objectName: "lockTimeout"
2591 property bool lockOnSuspend: securityPrivacy.securityType !==
2592 UbuntuSecurityPrivacyPanel.Swipe
2593@@ -109,15 +109,14 @@
2594 i18n.tr("Never")
2595 }
2596 }
2597- progression: true
2598 onClicked:
2599 pageStack.push(
2600 Qt.resolvedUrl("../battery/SleepValues.qml"),
2601 { title: text, lockOnSuspend: lockOnSuspend } )
2602 }
2603
2604- ListItem.Standard {
2605- control: CheckBox {
2606+ SettingsListItems.Standard {
2607+ CheckBox {
2608 checked: true
2609 }
2610 text: i18n.tr("Sleep locks immediately")
2611@@ -128,9 +127,9 @@
2612 text: i18n.tr("When locked, allow:")
2613 }
2614
2615- ListItem.Standard {
2616+ SettingsListItems.Standard {
2617 text: i18n.tr("Launcher")
2618- control: CheckBox {
2619+ CheckBox {
2620 id: launcherCheck
2621 enabled: securityPrivacy.securityType !== UbuntuSecurityPrivacyPanel.Swipe
2622
2623@@ -141,9 +140,9 @@
2624 }
2625 }
2626
2627- ListItem.Standard {
2628+ SettingsListItems.Standard {
2629 text: i18n.tr("Notifications and quick settings")
2630- control: CheckBox {
2631+ CheckBox {
2632 id: indicatorsCheck
2633 enabled: securityPrivacy.securityType !== UbuntuSecurityPrivacyPanel.Swipe
2634
2635@@ -154,7 +153,7 @@
2636 }
2637 }
2638
2639- ListItem.Caption {
2640+ ListItems.Caption {
2641 text: securityPrivacy.securityType === UbuntuSecurityPrivacyPanel.Swipe ?
2642 i18n.tr("Turn on lock security to restrict access when the device is locked.") :
2643 i18n.tr("Other apps and functions will prompt you to unlock.")
2644
2645=== modified file 'plugins/security-privacy/SimPin.qml'
2646--- plugins/security-privacy/SimPin.qml 2016-05-17 23:28:16 +0000
2647+++ plugins/security-privacy/SimPin.qml 2016-07-22 14:36:34 +0000
2648@@ -1,5 +1,5 @@
2649 /*
2650- * Copyright (C) 2014 Canonical Ltd.
2651+ * Copyright (C) 2014-2016 Canonical Ltd.
2652 *
2653 * This program is free software: you can redistribute it and/or modify it
2654 * under the terms of the GNU General Public License version 3, as published
2655@@ -19,14 +19,15 @@
2656 */
2657
2658 import GSettings 1.0
2659+import MeeGo.QOfono 0.2
2660 import QtQuick 2.4
2661 import QtQuick.Layouts 1.1
2662+import SystemSettings 1.0
2663+import SystemSettings.ListItems 1.0 as SettingsListItems
2664 import Ubuntu.Components 1.3
2665-import Ubuntu.Components.ListItems 1.3 as ListItem
2666+import Ubuntu.Components.ListItems 1.3 as ListItems
2667 import Ubuntu.Components.Popups 1.3
2668-import SystemSettings 1.0
2669 import Ubuntu.SystemSettings.SecurityPrivacy 1.0
2670-import MeeGo.QOfono 0.2
2671 import "sims.js" as Sims
2672
2673
2674@@ -386,14 +387,14 @@
2675 }
2676 }
2677
2678- ListItem.Standard {
2679+ SettingsListItems.Standard {
2680 text: sims[index].title
2681 visible: sims.length > 1
2682 }
2683
2684- ListItem.Standard {
2685+ SettingsListItems.Standard {
2686 text: i18n.tr("SIM PIN")
2687- control: Switch {
2688+ Switch {
2689 id: simPinSwitch
2690 objectName: "simPinSwitch"
2691 checked: sims[index].simMng.lockedPins.length > 0
2692@@ -404,11 +405,11 @@
2693 }
2694 }
2695
2696- ListItem.Standard {
2697+ SettingsListItems.Standard {
2698 id: changeControl
2699 visible: sim.state === "unlocked"
2700 text: i18n.tr("Unlocked")
2701- control: Button {
2702+ Button {
2703 enabled: parent.visible
2704 text: i18n.tr("Change PIN…")
2705 onClicked: {
2706@@ -418,11 +419,11 @@
2707 }
2708 }
2709
2710- ListItem.Standard {
2711+ SettingsListItems.Standard {
2712 id: lockControl
2713 visible: sim.state === "locked"
2714 text: i18n.tr("Locked")
2715- control: Button {
2716+ Button {
2717 objectName: "unlock"
2718 enabled: sims[index].simMng.pinRequired !== 'none'
2719 text: i18n.tr("Unlock…")
2720@@ -431,18 +432,18 @@
2721 }
2722 }
2723
2724- ListItem.Divider {
2725+ ListItems.Divider {
2726 visible: index < (sims.length - 1)
2727 }
2728
2729 }
2730 }
2731
2732- ListItem.Caption {
2733+ ListItems.Caption {
2734 text: i18n.tr("When a SIM PIN is set, it must be entered to access cellular services after restarting the device or swapping the SIM.")
2735 }
2736
2737- ListItem.Caption {
2738+ ListItems.Caption {
2739 text: i18n.tr("Entering an incorrect PIN repeatedly may lock the SIM permanently.")
2740 }
2741 }
2742
2743=== modified file 'plugins/security-privacy/diagnostics/DiagnosticsCheckEntry.qml'
2744--- plugins/security-privacy/diagnostics/DiagnosticsCheckEntry.qml 2015-08-10 13:31:45 +0000
2745+++ plugins/security-privacy/diagnostics/DiagnosticsCheckEntry.qml 2016-07-22 14:36:34 +0000
2746@@ -1,7 +1,7 @@
2747 /*
2748 * This file is part of system-settings
2749 *
2750- * Copyright (C) 2013 Canonical Ltd.
2751+ * Copyright (C) 2013-2016 Canonical Ltd.
2752 *
2753 * Contact: Evan Dandrea <evan.dandrea@canonical.com>
2754 *
2755@@ -20,9 +20,9 @@
2756
2757 import QtQuick 2.4
2758 import Ubuntu.Components 1.3
2759-import Ubuntu.Components.ListItems 1.3 as ListItem
2760+import Ubuntu.Components.ListItems 1.3 as ListItems
2761
2762-ListItem.Base {
2763+ListItems.Base {
2764 property string textEntry: "";
2765 property alias checked: checkBox.checked;
2766 onClicked: checked = !checked;
2767
2768=== modified file 'plugins/security-privacy/diagnostics/PageComponent.qml'
2769--- plugins/security-privacy/diagnostics/PageComponent.qml 2015-10-16 13:42:50 +0000
2770+++ plugins/security-privacy/diagnostics/PageComponent.qml 2016-07-22 14:36:34 +0000
2771@@ -1,7 +1,7 @@
2772 /*
2773 * This file is part of system-settings
2774 *
2775- * Copyright (C) 2013 Canonical Ltd.
2776+ * Copyright (C) 2013-2016 Canonical Ltd.
2777 *
2778 * Contact: Evan Dandrea <evan.dandrea@canonical.com>
2779 *
2780@@ -20,8 +20,9 @@
2781
2782 import QtQuick 2.4
2783 import SystemSettings 1.0
2784+import SystemSettings.ListItems 1.0 as SettingsListItems
2785 import Ubuntu.Components 1.3
2786-import Ubuntu.Components.ListItems 1.3 as ListItem
2787+import Ubuntu.Components.ListItems 1.3 as ListItems
2788 import Ubuntu.SystemSettings.Diagnostics 1.0
2789
2790 ItemPage {
2791@@ -54,15 +55,14 @@
2792 anchors.left: parent.left
2793 anchors.right: parent.right
2794
2795- ListItem.SingleValue {
2796+ SettingsListItems.SingleValueProgression {
2797 text: i18n.tr("Privacy policy")
2798- progression: true
2799 onClicked: {
2800 Qt.openUrlExternally("http://www.ubuntu.com/aboutus/privacypolicy?crashdb")
2801 }
2802 }
2803
2804- ListItem.Standard {
2805+ SettingsListItems.Standard {
2806 text: i18n.tr("Report to Canonical:")
2807 }
2808
2809@@ -80,20 +80,19 @@
2810 textEntry: i18n.tr("App crashes and errors")
2811 }
2812
2813- ListItem.SingleValue {
2814+ SettingsListItems.SingleValueProgression {
2815 id: previousReports
2816 property string ident: diagnosticsWidget.systemIdentifier()
2817 text: i18n.tr("Previous error reports")
2818- progression: previousReports.ident != ""
2819+ enabled: previousReports.ident != ""
2820+ progressionVisible: enabled
2821 onClicked: {
2822 var base = "https://errors.ubuntu.com/user/"
2823- if (previousReports.progression) {
2824- Qt.openUrlExternally(base + ident)
2825- }
2826+ Qt.openUrlExternally(base + ident)
2827 }
2828 }
2829
2830- ListItem.Caption {
2831+ ListItems.Caption {
2832 text: i18n.tr("Includes info about what an app was doing when it failed.")
2833 }
2834 }
2835
2836=== modified file 'plugins/sound/PageComponent.qml'
2837--- plugins/sound/PageComponent.qml 2016-05-03 13:46:55 +0000
2838+++ plugins/sound/PageComponent.qml 2016-07-22 14:36:34 +0000
2839@@ -1,7 +1,7 @@
2840 /*
2841 * This file is part of system-settings
2842 *
2843- * Copyright (C) 2013 Canonical Ltd.
2844+ * Copyright (C) 2013-2016 Canonical Ltd.
2845 *
2846 * Contact: Sebastien Bacher <sebastien.bacher@canonical.com>
2847 *
2848@@ -21,9 +21,8 @@
2849 import GSettings 1.0
2850 import QtQuick 2.4
2851 import Ubuntu.Components 1.3
2852-import Ubuntu.Components.ListItems 1.3 as ListItem
2853-import Ubuntu.Connectivity 1.0
2854 import SystemSettings 1.0
2855+import SystemSettings.ListItems 1.0 as SettingsListItems
2856 import Ubuntu.SystemSettings.Sound 1.0
2857 import Ubuntu.Settings.Menus 0.1 as Menus
2858 import Ubuntu.Settings.Components 0.1 as USC
2859@@ -67,8 +66,10 @@
2860 anchors.left: parent.left
2861 anchors.right: parent.right
2862
2863- ListItem.Standard {
2864- control: Switch {
2865+ SettingsListItems.Standard {
2866+ text: i18n.tr("Silent Mode")
2867+
2868+ Switch {
2869 id: silentModeSwitch
2870 objectName: "silentMode"
2871 property bool serverChecked: soundActionGroup.silentMode.state
2872@@ -82,20 +83,6 @@
2873 onSyncTriggered: soundActionGroup.silentMode.activate()
2874 }
2875 }
2876- text: i18n.tr("Silent Mode")
2877- }
2878-
2879- QDBusActionGroup {
2880- id: soundActionGroup
2881- busType: DBus.SessionBus
2882- busName: "com.canonical.indicator.sound"
2883- objectPath: "/com/canonical/indicator/sound"
2884-
2885- property variant volume: action("volume")
2886- property variant silentMode: action("silent-mode")
2887- property variant highVolume: action("high-volume")
2888-
2889- Component.onCompleted: start()
2890 }
2891
2892 Column {
2893@@ -107,6 +94,19 @@
2894 text: i18n.tr("Ringer:")
2895 }
2896
2897+ QDBusActionGroup {
2898+ id: soundActionGroup
2899+ busType: DBus.SessionBus
2900+ busName: "com.canonical.indicator.sound"
2901+ objectPath: "/com/canonical/indicator/sound"
2902+
2903+ property variant volume: action("volume")
2904+ property variant silentMode: action("silent-mode")
2905+ property variant highVolume: action("high-volume")
2906+
2907+ Component.onCompleted: start()
2908+ }
2909+
2910 Menus.SliderMenu {
2911 id: volumeSlider
2912 objectName: "sliderMenu"
2913@@ -129,33 +129,34 @@
2914 }
2915 }
2916
2917- ListItem.Standard {
2918+ SettingsListItems.Standard {
2919 id: highVolumeWarning
2920 visible: soundActionGroup.highVolume.state == true
2921 text: i18n.tr("High volume can damage your hearing.")
2922 }
2923-
2924+
2925 SettingsItemTitle {
2926 text: i18n.tr("Phone calls:")
2927 }
2928
2929- ListItem.SingleValue {
2930+ SettingsListItems.SingleValueProgression {
2931 text: i18n.tr("Ringtone")
2932- value: Utilities.buildDisplayName(
2933- backendInfo.incomingCallSound)
2934- progression: true
2935+ value: Utilities.buildDisplayName(backendInfo.incomingCallSound)
2936+
2937 onClicked: pageStack.push(
2938- Qt.resolvedUrl("SoundsList.qml"),
2939- { title: i18n.tr("Ringtone"),
2940- showStopButton: true,
2941- soundType: 0,
2942- soundsDir:
2943- "/usr/share/sounds/ubuntu/ringtones/" })
2944+ Qt.resolvedUrl("SoundsList.qml"), {
2945+ title: i18n.tr("Ringtone"),
2946+ showStopButton: true,
2947+ soundType: 0,
2948+ soundsDir: "/usr/share/sounds/ubuntu/ringtones/"
2949+ }
2950+ )
2951 }
2952
2953- ListItem.Standard {
2954- control: CheckBox {
2955+ SettingsListItems.Standard {
2956+ CheckBox {
2957 objectName: "callVibrate"
2958+ SlotsLayout.position: SlotsLayout.First
2959 property bool serverChecked: backendInfo.incomingCallVibrate
2960 onServerCheckedChanged: checked = serverChecked
2961 Component.onCompleted: checked = serverChecked
2962@@ -164,9 +165,10 @@
2963 text: i18n.tr("Vibrate on ring")
2964 }
2965
2966- ListItem.Standard {
2967- control: CheckBox {
2968+ SettingsListItems.Standard {
2969+ CheckBox {
2970 objectName: "callVibrateSilentMode"
2971+ SlotsLayout.position: SlotsLayout.First
2972 property bool serverChecked: backendInfo.incomingCallVibrateSilentMode
2973 onServerCheckedChanged: checked = serverChecked
2974 Component.onCompleted: checked = serverChecked
2975@@ -175,8 +177,8 @@
2976 text: i18n.tr("Vibrate in Silent Mode")
2977 }
2978
2979- ListItem.Standard {
2980- control: Switch {
2981+ SettingsListItems.Standard {
2982+ Switch {
2983 objectName: "dialpadSounds"
2984 property bool serverChecked: backendInfo.dialpadSoundsEnabled
2985 onServerCheckedChanged: checked = serverChecked
2986@@ -195,11 +197,10 @@
2987 text: i18n.tr("Messages:")
2988 }
2989
2990- ListItem.SingleValue {
2991+ SettingsListItems.SingleValueProgression {
2992 text: i18n.tr("Message received")
2993 value:Utilities.buildDisplayName(
2994 backendInfo.incomingMessageSound)
2995- progression: true
2996 onClicked: pageStack.push(
2997 Qt.resolvedUrl("SoundsList.qml"),
2998 { title: i18n.tr("Message received"),
2999@@ -208,9 +209,10 @@
3000 "/usr/share/sounds/ubuntu/notifications/" })
3001 }
3002
3003- ListItem.Standard {
3004- control: CheckBox {
3005+ SettingsListItems.Standard {
3006+ CheckBox {
3007 objectName: "messageVibrate"
3008+ SlotsLayout.position: SlotsLayout.First
3009 property bool serverChecked: backendInfo.incomingMessageVibrate
3010 onServerCheckedChanged: checked = serverChecked
3011 Component.onCompleted: checked = serverChecked
3012@@ -219,9 +221,10 @@
3013 text: i18n.tr("Vibrate with message sound")
3014 }
3015
3016- ListItem.Standard {
3017- control: CheckBox {
3018+ SettingsListItems.Standard {
3019+ CheckBox {
3020 objectName: "messageVibrateSilentMode"
3021+ SlotsLayout.position: SlotsLayout.First
3022 property bool serverChecked: backendInfo.incomingMessageVibrateSilentMode
3023 onServerCheckedChanged: checked = serverChecked
3024 Component.onCompleted: checked = serverChecked
3025@@ -235,10 +238,10 @@
3026 text: i18n.tr("Other sounds:")
3027 }
3028
3029- ListItem.Standard {
3030+ SettingsListItems.Standard {
3031 text: i18n.tr("Keyboard sound")
3032
3033- control: Switch {
3034+ Switch {
3035 objectName: "keyboardSoundSwitch"
3036 property bool serverChecked: keyboardSettings.keyPressFeedback
3037 onServerCheckedChanged: checked = serverChecked
3038@@ -247,20 +250,25 @@
3039 }
3040 }
3041
3042- ListItem.Standard {
3043+ SettingsListItems.Standard {
3044 id: lockSound
3045- control: Switch {
3046+
3047+ Switch {
3048 checked: false
3049 }
3050 text: i18n.tr("Lock sound")
3051 visible: showAllUI
3052 }
3053
3054- ListItem.Divider {}
3055+ /* Add some artificial spacing here, once we update the QtQuick.Layouts plugin
3056+ * to 1.3 we can replace this with Layout.bottomMargin(units.gu(2))
3057+ */
3058+ Item { height: 1; width: 1 }
3059
3060- ListItem.Standard {
3061+ SettingsListItems.Standard {
3062 text: i18n.tr("Other vibrations")
3063- control: Switch {
3064+
3065+ Switch {
3066 objectName: "otherVibrateSwitch"
3067 property bool serverChecked: backendInfo.otherVibrate
3068 onServerCheckedChanged: checked = serverChecked
3069
3070=== modified file 'plugins/system-update/EntryComponent.qml'
3071--- plugins/system-update/EntryComponent.qml 2015-08-10 13:31:45 +0000
3072+++ plugins/system-update/EntryComponent.qml 2016-07-22 14:36:34 +0000
3073@@ -1,7 +1,7 @@
3074 /*
3075 * This file is part of system-settings
3076 *
3077- * Copyright (C) 2014 Canonical Ltd.
3078+ * Copyright (C) 2014-2016 Canonical Ltd.
3079 *
3080 * Contact: Diego Sarmentero <diego.sarmentero@canonical.com>
3081 *
3082@@ -20,19 +20,28 @@
3083
3084 import QtQuick 2.4
3085 import Ubuntu.Components 1.3
3086-import Ubuntu.Components.ListItems 1.3 as ListItem
3087 import Ubuntu.SystemSettings.Update 1.0
3088
3089-ListItem.SingleValue {
3090+ListItem {
3091 id: root
3092- text: i18n.tr(model.displayName)
3093 objectName: "entryComponent-updates"
3094- iconSource: Qt.resolvedUrl(model.icon)
3095- iconFrame: false
3096- progression: true
3097- value: updatesAvailable > 0 ? updatesAvailable : ""
3098-
3099 property int updatesAvailable: 0
3100+ height: layout.height
3101+
3102+ ListItemLayout {
3103+ id: layout
3104+ title.text: i18n.tr(model.displayName)
3105+ Icon {
3106+ SlotsLayout.position: SlotsLayout.Leading;
3107+ SlotsLayout.padding { top: 0; bottom: 0 }
3108+ source: model.icon
3109+ height: units.gu(5)
3110+ }
3111+ Label {
3112+ text: updatesAvailable > 0 ? updatesAvailable : ""
3113+ }
3114+ ProgressionSlot {}
3115+ }
3116
3117 function _updatesRefresh() {
3118 var _updatesAvailable = 0;
3119
3120=== modified file 'plugins/time-date/ChooseTimeZone.qml'
3121--- plugins/time-date/ChooseTimeZone.qml 2016-04-05 19:07:33 +0000
3122+++ plugins/time-date/ChooseTimeZone.qml 2016-07-22 14:36:34 +0000
3123@@ -1,7 +1,7 @@
3124 /*
3125 * This file is part of system-settings
3126 *
3127- * Copyright (C) 2013-2014 Canonical Ltd.
3128+ * Copyright (C) 2013-2016 Canonical Ltd.
3129 *
3130 * Contact: Iain Lane <iain.lane@canonical.com>
3131 *
3132@@ -20,6 +20,7 @@
3133
3134 import QtQuick 2.4
3135 import SystemSettings 1.0
3136+import SystemSettings.ListItems 1.0 as SettingsListItems
3137 import Ubuntu.Components 1.3
3138 import Ubuntu.Components.ListItems 1.3 as ListItem
3139 import Ubuntu.SystemSettings.TimeDate 1.1
3140@@ -52,7 +53,7 @@
3141 visible: showAllUI
3142 }
3143
3144- ListItem.Standard {
3145+ SettingsListItems.Standard {
3146 anchors.top: setTimeZoneSelector.bottom
3147 text: timeDatePanel.timeZoneName
3148 enabled: false
3149@@ -96,7 +97,7 @@
3150
3151 model: timeDatePanel.timeZoneModel
3152 visible: setTimeZoneSelector.selectedIndex == 1 && count > 0
3153- delegate: ListItem.Standard {
3154+ delegate: SettingsListItems.Standard {
3155 text: displayName
3156 // If a timezone is manually selected, record which one so that
3157 // we highlight that one only. Usually all cities in that timezone
3158
3159=== modified file 'plugins/time-date/PageComponent.qml'
3160--- plugins/time-date/PageComponent.qml 2016-04-05 19:07:33 +0000
3161+++ plugins/time-date/PageComponent.qml 2016-07-22 14:36:34 +0000
3162@@ -1,7 +1,7 @@
3163 /*
3164 * This file is part of system-settings
3165 *
3166- * Copyright (C) 2013 Canonical Ltd.
3167+ * Copyright (C) 2013-2016 Canonical Ltd.
3168 *
3169 * Contact: Iain Lane <iain.lane@canonical.com>
3170 *
3171@@ -20,8 +20,9 @@
3172
3173 import QtQuick 2.4
3174 import SystemSettings 1.0
3175+import SystemSettings.ListItems 1.0 as SettingsListItems
3176 import Ubuntu.Components 1.3
3177-import Ubuntu.Components.ListItems 1.3 as ListItem
3178+import Ubuntu.Components.ListItems 1.3 as ListItems
3179 import Ubuntu.Components.Popups 1.3
3180 import Ubuntu.SystemSettings.TimeDate 1.1
3181
3182@@ -62,12 +63,11 @@
3183
3184 SettingsItemTitle { text: i18n.tr ("Time zone:") }
3185
3186- ListItem.SingleValue {
3187+ SettingsListItems.SingleValueProgression {
3188 objectName: "timeZone"
3189 id: timeZone
3190 text: timeDatePanel.timeZoneName
3191 value: getUTCOffset()
3192- progression: true
3193 onClicked: pageStack.push(Qt.resolvedUrl("ChooseTimeZone.qml"), {
3194 timeDatePanel: timeDatePanel
3195 })
3196@@ -77,7 +77,7 @@
3197 text: i18n.tr ("Set the time and date:")
3198 }
3199
3200- ListItem.ItemSelector {
3201+ ListItems.ItemSelector {
3202 id: setTimeAutomatically
3203 objectName: "timeItemSelector"
3204 model: [ i18n.tr("Automatically") , i18n.tr("Manually")]
3205@@ -108,11 +108,11 @@
3206 TimePicker {}
3207 }
3208
3209- ListItem.Standard {
3210+ SettingsListItems.StandardProgression {
3211 id: currentTime
3212 objectName: "currentTime"
3213- progression: setTimeAutomatically.selectedIndex === 1 // Manually
3214- enabled: progression
3215+ progressionVisible: setTimeAutomatically.selectedIndex === 1 // Manually
3216+ enabled: progressionVisible
3217 onClicked: {
3218 Qt.inputMethod.hide()
3219 var popupObj = PopupUtils.open(timePicker);
3220
3221=== modified file 'plugins/time-date/Scroller.qml'
3222--- plugins/time-date/Scroller.qml 2015-08-10 13:31:45 +0000
3223+++ plugins/time-date/Scroller.qml 2016-07-22 14:36:34 +0000
3224@@ -1,7 +1,8 @@
3225 /*
3226 * Copyright (C) 2013 Michael Zanetti <michael_zanetti@gmx.net>
3227- * (C) 2013 Canonical Ltd
3228- * Canonical modifications by Iain Lane <iain.lane@canonical.com>
3229+ * (C) 2013-2016 Canonical Ltd
3230+ * Canonical modifications by Iain Lane <iain.lane@canonical.com>,
3231+ * Jonas G. Drange <jonas.drange@canonical.com>
3232 *
3233 * This program is free software; you can redistribute it and/or modify
3234 * it under the terms of the GNU General Public License as published by
3235@@ -17,6 +18,7 @@
3236 */
3237
3238 import QtQuick 2.4
3239+import SystemSettings.ListItems 1.0 as SettingsListItems
3240 import Ubuntu.Components 1.3
3241 import Ubuntu.Components.ListItems 1.3 as ListItems
3242
3243@@ -106,13 +108,10 @@
3244 preferredHighlightEnd: 0.5
3245 clip: true
3246
3247- delegate: ListItems.Standard {
3248+ delegate: SettingsListItems.Standard {
3249 width: parent.width
3250 highlightWhenPressed: false
3251- Label {
3252- anchors.centerIn: parent
3253- text: modelData
3254- }
3255+ text: modelData
3256 showDivider: false
3257 onClicked: listView.currentIndex = index
3258 }
3259
3260=== modified file 'plugins/time-date/TimePicker.qml'
3261--- plugins/time-date/TimePicker.qml 2015-08-10 13:31:45 +0000
3262+++ plugins/time-date/TimePicker.qml 2016-07-22 14:36:34 +0000
3263@@ -1,6 +1,6 @@
3264 /*
3265 * Copyright (C) 2013 Michael Zanetti <michael_zanetti@gmx.net>
3266- * 2013 Canonical Ltd
3267+ * 2013-2016 Canonical Ltd
3268 * Canonical modifications by Iain Lane <iain.lane@canonical.com>
3269 *
3270 * This program is free software; you can redistribute it and/or modify
3271@@ -18,7 +18,6 @@
3272
3273 import QtQuick 2.4
3274 import Ubuntu.Components 1.3
3275-import Ubuntu.Components.ListItems 1.3 as ListItem
3276 import Ubuntu.Components.Popups 1.3
3277
3278 Dialog {
3279
3280=== modified file 'plugins/time-date/settings-time-date.svg'
3281--- plugins/time-date/settings-time-date.svg 2013-06-28 15:20:36 +0000
3282+++ plugins/time-date/settings-time-date.svg 2016-07-22 14:36:34 +0000
3283@@ -9,14 +9,15 @@
3284 xmlns="http://www.w3.org/2000/svg"
3285 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
3286 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
3287- width="90"
3288- height="90"
3289- id="svg3180"
3290+ width="96"
3291+ height="96"
3292+ id="svg4874"
3293 version="1.1"
3294- inkscape:version="0.48+devel r12322"
3295- sodipodi:docname="setting-time-date.svg">
3296+ inkscape:version="0.91+devel r"
3297+ viewBox="0 0 96 96.000001"
3298+ sodipodi:docname="calendar.svg">
3299 <defs
3300- id="defs3182" />
3301+ id="defs4876" />
3302 <sodipodi:namedview
3303 id="base"
3304 pagecolor="#ffffff"
3305@@ -24,18 +25,95 @@
3306 borderopacity="1.0"
3307 inkscape:pageopacity="0.0"
3308 inkscape:pageshadow="2"
3309- inkscape:zoom="5.0931703"
3310- inkscape:cx="45.796623"
3311- inkscape:cy="25.966145"
3312+ inkscape:zoom="7.0249991"
3313+ inkscape:cx="-11.409258"
3314+ inkscape:cy="72.576504"
3315 inkscape:document-units="px"
3316- inkscape:current-layer="g3855"
3317- showgrid="false"
3318+ inkscape:current-layer="g4780"
3319+ showgrid="true"
3320+ showborder="true"
3321 fit-margin-top="0"
3322 fit-margin-left="0"
3323 fit-margin-right="0"
3324- fit-margin-bottom="0" />
3325+ fit-margin-bottom="0"
3326+ inkscape:snap-bbox="true"
3327+ inkscape:bbox-paths="true"
3328+ inkscape:bbox-nodes="true"
3329+ inkscape:snap-bbox-edge-midpoints="true"
3330+ inkscape:snap-bbox-midpoints="true"
3331+ inkscape:object-paths="true"
3332+ inkscape:snap-intersection-paths="true"
3333+ inkscape:object-nodes="true"
3334+ inkscape:snap-smooth-nodes="true"
3335+ inkscape:snap-midpoints="true"
3336+ inkscape:snap-object-midpoints="true"
3337+ inkscape:snap-center="true"
3338+ showguides="true"
3339+ inkscape:guide-bbox="true"
3340+ inkscape:snap-global="true">
3341+ <inkscape:grid
3342+ type="xygrid"
3343+ id="grid5451"
3344+ empspacing="8" />
3345+ <sodipodi:guide
3346+ orientation="1,0"
3347+ position="8,-8.0000001"
3348+ id="guide4063" />
3349+ <sodipodi:guide
3350+ orientation="1,0"
3351+ position="4,-8.0000001"
3352+ id="guide4065" />
3353+ <sodipodi:guide
3354+ orientation="0,1"
3355+ position="-8,88.000001"
3356+ id="guide4067" />
3357+ <sodipodi:guide
3358+ orientation="0,1"
3359+ position="-8,92.000001"
3360+ id="guide4069" />
3361+ <sodipodi:guide
3362+ orientation="0,1"
3363+ position="104,4"
3364+ id="guide4071" />
3365+ <sodipodi:guide
3366+ orientation="0,1"
3367+ position="-5,8.0000001"
3368+ id="guide4073" />
3369+ <sodipodi:guide
3370+ orientation="1,0"
3371+ position="92,-8.0000001"
3372+ id="guide4075" />
3373+ <sodipodi:guide
3374+ orientation="1,0"
3375+ position="88,-8.0000001"
3376+ id="guide4077" />
3377+ <sodipodi:guide
3378+ orientation="0,1"
3379+ position="-8,84.000001"
3380+ id="guide4074" />
3381+ <sodipodi:guide
3382+ orientation="1,0"
3383+ position="12,-8.0000001"
3384+ id="guide4076" />
3385+ <sodipodi:guide
3386+ orientation="0,1"
3387+ position="-5,12"
3388+ id="guide4078" />
3389+ <sodipodi:guide
3390+ orientation="1,0"
3391+ position="84,-9.0000001"
3392+ id="guide4080" />
3393+ <sodipodi:guide
3394+ position="48,-8.0000001"
3395+ orientation="1,0"
3396+ id="guide4170" />
3397+ <sodipodi:guide
3398+ position="-8,48"
3399+ orientation="0,1"
3400+ id="guide4172" />
3401+ </sodipodi:namedview>
3402 <metadata
3403- id="metadata3185">
3404+ id="metadata4879">
3405 <rdf:RDF>
3406 <cc:Work
3407 rdf:about="">
3408@@ -50,49 +128,55 @@
3409 inkscape:label="Layer 1"
3410 inkscape:groupmode="layer"
3411 id="layer1"
3412- transform="translate(456.42857,-738.79075)">
3413+ transform="translate(67.857146,-78.50504)">
3414 <g
3415- transform="translate(-2258.4286,438.42854)"
3416- id="g3855">
3417- <rect
3418- style="opacity:0.00100002;color:#000000;fill:#000000;stroke:none;stroke-width:4;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
3419- id="rect3508"
3420- width="90"
3421- height="90"
3422- x="1802"
3423- y="300.36221" />
3424- <path
3425- style="opacity:0.25;color:#000000;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
3426- d="M 42.03125 17.90625 C 28.696483 17.90625 17.90625 28.696483 17.90625 42.03125 C 17.90625 55.366017 28.696483 66.1875 42.03125 66.1875 C 42.375083 66.1875 42.722167 66.170482 43.0625 66.15625 L 43.0625 57.03125 C 43.0623 57.01015 43.0623 56.9587 43.0625 56.9375 C 43.0754 55.34598 43.14325 53.93091 43.59375 52.4375 C 44.10005 50.75898 45.19045 49.17944 46.90625 48.28125 C 48.739875 47.321381 50.599515 47.104599 52.875 47.0625 C 54.240291 47.037241 55.760413 47.0625 57.5 47.0625 L 64.5 47.0625 C 64.920635 47.0625 65.261076 47.066095 65.65625 47.0625 C 65.999321 45.441705 66.1875 43.75422 66.1875 42.03125 C 66.1875 28.696483 55.366017 17.90625 42.03125 17.90625 z "
3427- transform="translate(1802,300.36221)"
3428- id="path3510" />
3429- <path
3430- style="font-size:xx-small;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;color-interpolation:sRGB;color-interpolation-filters:linearRGB;fill:#808080;fill-opacity:1;stroke:none;stroke-width:3.3547709;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;clip-rule:nonzero;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;font-family:sans-serif;-inkscape-font-specification:sans-serif"
3431- d="M 42.03125 15 C 27.12175 15 15 27.12173 15 42.03125 C 15 56.94077 27.12175 69.09375 42.03125 69.09375 C 42.372987 69.09375 42.723784 69.075144 43.0625 69.0625 C 43.062407 69.05177 43.062588 69.041996 43.0625 69.03125 C 43.0624 69.01715 43.0625 68.98285 43.0625 68.96875 L 43.0625 65.03125 C 42.720305 65.046238 42.377238 65.0625 42.03125 65.0625 C 29.28355 65.0625 19 54.779 19 42.03125 C 19 29.28349 29.28355 19 42.03125 19 C 54.77905 19 65.0625 29.28349 65.0625 42.03125 C 65.0625 43.758289 64.857909 45.445501 64.5 47.0625 C 66.037863 47.0625 67.386959 47.021872 68.625 47.03125 C 68.929484 45.410259 69.09375 43.738953 69.09375 42.03125 C 69.09375 27.12173 56.94075 15 42.03125 15 z "
3432- transform="translate(1802,300.36221)"
3433- id="path3512" />
3434- <path
3435- style="font-size:xx-small;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;color-interpolation:sRGB;color-interpolation-filters:linearRGB;fill:#808080;fill-opacity:1;stroke:none;stroke-width:3.99999976;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;clip-rule:nonzero;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;font-family:sans-serif;-inkscape-font-specification:sans-serif"
3436- d="m 1846,323.34375 -4,0.0312 0,2 0.031,16.0625 0,2 4,-0.0312 0,-2 L 1846,325.34375 1846,323.34375 Z"
3437- id="path3516"
3438- inkscape:connector-curvature="0" />
3439- <path
3440- style="font-size:xx-small;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;color-interpolation:sRGB;color-interpolation-filters:linearRGB;fill:#808080;fill-opacity:1;stroke:none;stroke-width:3.99999976;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;clip-rule:nonzero;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;font-family:sans-serif;-inkscape-font-specification:sans-serif"
3441- d="m 1831,340.375 0,4 2,0 11,0 2,0 0,-4 -2,0 -11,0 L 1831,340.375 Z"
3442- id="path3518"
3443- inkscape:connector-curvature="0" />
3444- <path
3445- style="color:#000000;fill:#808080;fill-opacity:1;stroke:none;stroke-width:3.99999976;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
3446- d="M 54.34375 51 C 47.853339 51.092144 47.042087 51.799787 47 57 L 47 69 C 47.048 74.94321 48.1185 75 57.5 75 L 64.5 75 C 73.8815 75 74.952 74.94309 75 69 L 75 57 C 74.9519 51.05662 73.8815 51 64.5 51 L 57.5 51 C 56.327312 51 55.270952 50.986837 54.34375 51 z M 55.375 57 C 55.800753 56.993511 56.274025 57 56.8125 57 L 57.1875 57 C 61.4953 57 61.9779 57.02469 62 60 L 62 66 C 61.9779 68.9752 61.4953 69 57.1875 69 L 56.8125 69 C 52.5047 69 52.022 68.97523 52 66 L 52 60 C 52.019338 57.3967 52.394732 57.045423 55.375 57 z M 66 57 L 69 57 L 69 69 L 66 69 L 66 61 L 64 61 L 64 59 L 66 57 z "
3447- transform="translate(1802,300.36221)"
3448- id="path3520" />
3449- <rect
3450- style="color:#000000;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:4;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
3451- id="rect3544"
3452- width="4"
3453- height="6"
3454- x="1857"
3455- y="360.36221" />
3456+ transform="matrix(0,-1,-1,0,373.50506,516.50504)"
3457+ id="g4845"
3458+ style="display:inline">
3459+ <g
3460+ inkscape:export-ydpi="90"
3461+ inkscape:export-xdpi="90"
3462+ inkscape:export-filename="next01.png"
3463+ transform="matrix(-0.9996045,0,0,1,575.94296,-611.00001)"
3464+ id="g4778"
3465+ inkscape:label="Layer 1">
3466+ <g
3467+ transform="matrix(-1,0,0,1,575.99999,611)"
3468+ id="g4780"
3469+ style="display:inline">
3470+ <rect
3471+ style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:none;stroke:none;stroke-width:4;marker:none;enable-background:accumulate"
3472+ id="rect4782"
3473+ width="96.037987"
3474+ height="96"
3475+ x="-438.00244"
3476+ y="345.36221"
3477+ transform="scale(-1,1)" />
3478+ <g
3479+ transform="matrix(0,-0.99980223,-1.0001978,0,0,0)"
3480+ style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:48.03580475px;line-height:125%;font-family:Ubuntu;-inkscape-font-specification:Ubuntu;text-align:end;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:end;fill:#808080;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
3481+ id="text4416">
3482+ <path
3483+ d="m -397.70209,-392.6432 q 0,1.72929 -0.72054,3.36251 -0.6725,1.58518 -1.82536,3.17036 -1.15286,1.53715 -2.59393,3.0743 -1.44108,1.48911 -2.88215,2.93018 -0.81661,0.81661 -1.92143,1.92143 -1.05679,1.10483 -2.01751,2.30572 -0.96071,1.2009 -1.63321,2.30572 -0.62447,1.10482 -0.62447,1.92143 l 15.32342,0 0,3.79483 -20.17503,0 q -0.048,-0.28821 -0.048,-0.57643 0,-0.28821 0,-0.52839 0,-2.25769 0.72054,-4.17912 0.76857,-1.96947 1.96946,-3.69876 1.2009,-1.72928 2.69001,-3.26643 1.48911,-1.53715 2.93018,-2.97822 1.2009,-1.15286 2.25769,-2.25768 1.10482,-1.15286 1.92143,-2.25769 0.86464,-1.15286 1.345,-2.35375 0.5284,-1.2009 0.5284,-2.5459 0,-1.44107 -0.48036,-2.44982 -0.43233,-1.00876 -1.2009,-1.68126 -0.76857,-0.6725 -1.82536,-0.96071 -1.00875,-0.33625 -2.16161,-0.33625 -1.39304,0 -2.5459,0.38428 -1.15286,0.38429 -2.06554,0.91268 -0.91268,0.48036 -1.53714,1.05679 -0.62447,0.52839 -0.96072,0.81661 l -2.20965,-3.17036 q 0.43233,-0.48036 1.29697,-1.15286 0.86465,-0.72054 2.06554,-1.34501 1.2009,-0.62446 2.69001,-1.05678 1.48911,-0.43233 3.21839,-0.43233 5.23591,0 7.82984,2.44983 2.64197,2.40179 2.64197,6.82108 z"
3484+ style=""
3485+ id="path4162" />
3486+ <path
3487+ d="m -383.46173,-388.31997 q 7.25341,0.28821 10.61592,3.17036 3.41054,2.88215 3.41054,7.82984 0,2.20964 -0.76857,4.08304 -0.72054,1.8734 -2.25769,3.2184 -1.48911,1.345 -3.79482,2.11357 -2.30572,0.76858 -5.47609,0.76858 -1.24893,0 -2.54589,-0.19215 -1.29697,-0.19214 -2.40179,-0.48035 -1.10483,-0.28822 -1.96947,-0.57643 -0.86465,-0.28822 -1.24893,-0.48036 l 0.86464,-3.8909 q 0.81661,0.38428 2.64197,1.00875 1.8734,0.62447 4.5634,0.62447 2.16161,0 3.60269,-0.48036 1.48911,-0.48036 2.40179,-1.29697 0.91268,-0.81661 1.29696,-1.8734 0.43233,-1.10482 0.43233,-2.30571 0,-1.82537 -0.62447,-3.2184 -0.62446,-1.44108 -2.20965,-2.40179 -1.58518,-0.96072 -4.22715,-1.44108 -2.64197,-0.52839 -6.67697,-0.52839 0.28821,-2.35376 0.43232,-4.4193 0.19214,-2.06554 0.33625,-4.035 0.14411,-1.96947 0.24018,-3.8909 0.0961,-1.96947 0.19214,-4.13108 l 16.04396,0 0,3.79483 -12.15306,0 q -0.048,0.72053 -0.14411,1.96946 -0.0961,1.2009 -0.19214,2.5459 -0.0961,1.29697 -0.19214,2.5459 -0.0961,1.24893 -0.19215,1.96947 z"
3488+ style=""
3489+ id="path4164" />
3490+ </g>
3491+ <path
3492+ style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:4.00079155;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
3493+ d="M 23.976562 8.0019531 C 18.943803 8.0601401 15.26124 7.881546 12.25 9.5429688 C 10.74438 10.37368 9.5531414 11.778707 8.8945312 13.533203 C 8.2359314 15.287699 7.9980469 17.369641 7.9980469 20 L 7.9980469 48.001953 L 7.9980469 76 C 7.9980469 78.630359 8.2359314 80.714254 8.8945312 82.46875 C 9.5531414 84.223246 10.74438 85.62632 12.25 86.457031 C 15.26124 88.118454 18.943803 87.941823 23.976562 88 L 23.988281 88 L 47.998047 88 L 72.009766 88 L 72.021484 88 C 77.054244 87.94182 80.736807 88.118454 83.748047 86.457031 C 85.253667 85.62632 86.444916 84.223246 87.103516 82.46875 C 87.762113 80.714254 88 78.630359 88 76 L 88 48.001953 L 83.998047 48.001953 L 83.998047 76 C 83.998047 78.369642 83.747742 80.022711 83.357422 81.0625 C 82.967112 82.102279 82.547973 82.550368 81.814453 82.955078 C 80.350163 83.762988 77.036307 83.941223 71.998047 84 L 71.974609 84 L 47.998047 84 L 24.021484 84 L 24 84 C 18.96042 83.941263 15.648104 83.763108 14.183594 82.955078 C 13.450074 82.550368 13.030935 82.102279 12.640625 81.0625 C 12.250305 80.022711 12 78.369642 12 76 L 12 48.001953 L 12 32 C 12 29.630358 12.250305 27.977279 12.640625 26.9375 C 13.030935 25.897711 13.450074 25.449632 14.183594 25.044922 C 15.650624 24.235492 18.967304 24.058477 24.021484 24 L 47.998047 24 L 71.998047 24 C 77.036307 24.05877 80.350163 24.237002 81.814453 25.044922 C 82.547973 25.449632 82.967112 25.897711 83.357422 26.9375 C 83.747742 27.977279 83.998047 29.630358 83.998047 32 L 83.998047 48 L 88 48 L 88 20 C 88 17.369641 87.762116 15.287699 87.103516 13.533203 C 86.444916 11.778707 85.253667 10.37368 83.748047 9.5429688 C 80.736807 7.881546 77.054244 8.0601301 72.021484 8.0019531 L 72.009766 8.0019531 L 72 8.0019531 L 72 16 L 66 16 L 66 8.0019531 L 30 8.0019531 L 30 16 L 24 16 L 24 8.0019531 L 23.988281 8.0019531 L 23.976562 8.0019531 z "
3494+ transform="matrix(0,-1,-1.0003957,0,438.00245,441.36222)"
3495+ id="path4410" />
3496+ <path
3497+ style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:10;marker:none;enable-background:accumulate"
3498+ d="M 30 0 L 24 1 L 24 8 L 30 8 L 30 0 z M 72 0 L 66 1 L 66 8 L 72 8 L 72 0 z "
3499+ transform="matrix(0,-1,-1.0003957,0,438.00245,441.36222)"
3500+ id="path4430" />
3501+ </g>
3502+ </g>
3503 </g>
3504 </g>
3505 </svg>
3506
3507=== modified file 'plugins/wifi/AccessPoint.qml'
3508--- plugins/wifi/AccessPoint.qml 2015-08-10 13:31:45 +0000
3509+++ plugins/wifi/AccessPoint.qml 2016-07-22 14:36:34 +0000
3510@@ -1,5 +1,5 @@
3511 /*
3512- * Copyright 2013 Canonical Ltd.
3513+ * Copyright 2013-2016 Canonical Ltd.
3514 *
3515 * This program is free software; you can redistribute it and/or modify
3516 * it under the terms of the GNU General Public License as published by
3517@@ -28,19 +28,6 @@
3518 property bool secure: false
3519 property bool adHoc: false
3520 property int signalStrength: 0
3521-
3522- signal activate()
3523-
3524- onCheckedChanged: {
3525- // Can't rely on binding. Checked is assigned on click.
3526- checkBoxActive.checked = checked;
3527-
3528- // if stack has NetworkDetailsBrief, pop it
3529- if (pageStack.depth === 3) {
3530- pageStack.pop();
3531- }
3532- }
3533-
3534 iconName: {
3535 var imageName = "nm-signal-100"
3536
3537@@ -61,16 +48,18 @@
3538 }
3539 return imageName;
3540 }
3541-
3542- iconFrame: false
3543- control: CheckBox {
3544- id: checkBoxActive
3545-
3546- onClicked: {
3547- accessPoint.activate();
3548+ layout.subtitle.text: checked ? i18n.tr("Connected") : ""
3549+
3550+ signal activate()
3551+
3552+ onCheckedChanged: {
3553+ // if stack has NetworkDetailsBrief, pop it
3554+ if (pageStack.depth === 3) {
3555+ pageStack.pop();
3556 }
3557 }
3558- progression: checked
3559+
3560+ progressionVisible: checked
3561 onClicked: {
3562 if (checked) {
3563 pageStack.push(Qt.resolvedUrl("NetworkDetailsBrief.qml"),
3564
3565=== modified file 'plugins/wifi/DivMenuItem.qml'
3566--- plugins/wifi/DivMenuItem.qml 2015-08-10 13:31:45 +0000
3567+++ plugins/wifi/DivMenuItem.qml 2016-07-22 14:36:34 +0000
3568@@ -1,5 +1,5 @@
3569 /*
3570- * Copyright 2013 Canonical Ltd.
3571+ * Copyright 2013-2016 Canonical Ltd.
3572 *
3573 * This program is free software; you can redistribute it and/or modify
3574 * it under the terms of the GNU General Public License as published by
3575@@ -18,8 +18,8 @@
3576 */
3577
3578 import QtQuick 2.4
3579-import Ubuntu.Components.ListItems 1.3 as ListItem
3580+import Ubuntu.Components 1.3
3581
3582-ListItem.Empty {
3583+ListItemLayout {
3584 height: units.gu(3)
3585 }
3586
3587=== modified file 'plugins/wifi/FramedMenuItem.qml'
3588--- plugins/wifi/FramedMenuItem.qml 2015-08-10 13:31:45 +0000
3589+++ plugins/wifi/FramedMenuItem.qml 2016-07-22 14:36:34 +0000
3590@@ -1,5 +1,5 @@
3591 /*
3592- * Copyright 2013 Canonical Ltd.
3593+ * Copyright 2013-2016 Canonical Ltd.
3594 *
3595 * This program is free software; you can redistribute it and/or modify
3596 * it under the terms of the GNU General Public License as published by
3597@@ -19,7 +19,11 @@
3598 */
3599
3600 import QtQuick 2.4
3601+import SystemSettings.ListItems 1.0 as SettingsListItems
3602 import Ubuntu.Components 1.3
3603-import Ubuntu.Components.ListItems 1.3 as ListItem
3604
3605-ListItem.Standard {}
3606+SettingsListItems.IconProgression {
3607+ // FIXME: use padding + padding + icon width
3608+ divider.anchors.leftMargin: units.gu(6)
3609+ layout.subtitle.color: UbuntuColors.green
3610+}
3611
3612=== modified file 'plugins/wifi/MenuItemFactory.qml'
3613--- plugins/wifi/MenuItemFactory.qml 2015-08-10 13:31:45 +0000
3614+++ plugins/wifi/MenuItemFactory.qml 2016-07-22 14:36:34 +0000
3615@@ -1,5 +1,5 @@
3616 /*
3617- * Copyright 2013 Canonical Ltd.
3618+ * Copyright 2013-2016 Canonical Ltd.
3619 *
3620 * This program is free software; you can redistribute it and/or modify
3621 * it under the terms of the GNU General Public License as published by
3622@@ -15,7 +15,7 @@
3623 *
3624 * Authors:
3625 * Nick Dedekind <nick.dedekind@canonical.com>
3626- */
3627+ */
3628
3629 import QtQuick 2.4
3630 import QMenuModel 0.1 as QMenuModel
3631@@ -65,7 +65,7 @@
3632 property int menuIndex: -1
3633
3634 text: menu && menu.label ? menu.label : ""
3635- icon: menu ? menu.icon : ""
3636+ iconName: menu ? menu.icon : ""
3637 checkable: menu ? (menu.isCheck || menu.isRadio) : false
3638 checked: checkable ? menu.isToggled : false
3639 enabled: menu ? menu.sensitive : false
3640@@ -150,7 +150,7 @@
3641 loadAttributes();
3642 }
3643
3644- USC.ServerPropertySynchroniser {
3645+ resources: USC.ServerPropertySynchroniser {
3646 userTarget: apItem
3647 userProperty: "active"
3648 userTrigger: "onActivate"
3649
3650=== modified file 'plugins/wifi/NetworkDetails.qml'
3651--- plugins/wifi/NetworkDetails.qml 2015-08-10 13:31:45 +0000
3652+++ plugins/wifi/NetworkDetails.qml 2016-07-22 14:36:34 +0000
3653@@ -1,7 +1,7 @@
3654 /*
3655 * This file is part of system-settings
3656 *
3657- * Copyright (C) 2013 Canonical Ltd.
3658+ * Copyright (C) 2013-2016 Canonical Ltd.
3659 *
3660 * Contact: Iain Lane <iain.lane@canonical.com>
3661 *
3662@@ -21,8 +21,8 @@
3663 import QtQuick 2.4
3664 import QtQuick.Layouts 1.1
3665 import SystemSettings 1.0
3666+import SystemSettings.ListItems 1.0 as SettingsListItems
3667 import Ubuntu.Components 1.3
3668-import Ubuntu.Components.ListItems 1.3 as ListItem
3669 import Ubuntu.SystemSettings.Wifi 1.0
3670
3671 ItemPage {
3672@@ -53,29 +53,24 @@
3673 anchors.left: parent.left
3674 anchors.right: parent.right
3675
3676- ListItem.Standard {
3677+ SettingsListItems.SingleValue {
3678 text: i18n.tr("Name")
3679- control: Label {
3680- text: networkName
3681- }
3682+ value: networkName
3683 }
3684
3685- ListItem.Standard {
3686+ SettingsListItems.SingleValue {
3687 id: lastLabel
3688 text: i18n.tr("Last connected")
3689- control: Label {
3690- id: lastField
3691-
3692- text: networkDetails.lastUsed.length !== 0 ?
3693- networkDetails.lastUsed : i18n.tr("Never")
3694- }
3695+ value: networkDetails.lastUsed.length !== 0 ?
3696+ networkDetails.lastUsed : i18n.tr("Never")
3697 }
3698
3699- ListItem.Standard {
3700+ SettingsListItems.Standard {
3701 id: passwordLabel
3702 text: i18n.tr("Password")
3703 visible: networkDetails.password.length !== 0
3704- control: TextInput {
3705+
3706+ TextInput {
3707 id: passwordField
3708 readOnly: true
3709 text: networkDetails.password
3710@@ -84,28 +79,30 @@
3711 }
3712 }
3713
3714- ListItem.Standard {
3715+ SettingsListItems.Standard {
3716 id: passwordVisible
3717 text: i18n.tr("Show password")
3718 visible: networkDetails.password.length !== 0
3719- control: Switch {
3720+
3721+ Switch {
3722 id: passwordVisibleSwitch
3723 }
3724 }
3725
3726- ListItem.Divider {}
3727+ SettingsListItems.SingleControl {
3728
3729- Button {
3730- objectName: "forgetNetwork"
3731- text : i18n.tr("Forget this network")
3732- anchors {
3733- left: parent.left
3734- right: parent.right
3735- margins: units.gu(2)
3736- }
3737- onClicked : {
3738- DbusHelper.forgetConnection(dbusPath);
3739- pageStack.pop();
3740+ Button {
3741+ objectName: "forgetNetwork"
3742+ text : i18n.tr("Forget this network")
3743+ anchors {
3744+ left: parent.left
3745+ right: parent.right
3746+ margins: units.gu(2)
3747+ }
3748+ onClicked : {
3749+ DbusHelper.forgetConnection(dbusPath);
3750+ pageStack.pop();
3751+ }
3752 }
3753 }
3754 }
3755
3756=== modified file 'plugins/wifi/NetworkDetailsBrief.qml'
3757--- plugins/wifi/NetworkDetailsBrief.qml 2015-08-10 13:31:45 +0000
3758+++ plugins/wifi/NetworkDetailsBrief.qml 2016-07-22 14:36:34 +0000
3759@@ -1,7 +1,7 @@
3760 /*
3761 * This file is part of system-settings
3762 *
3763- * Copyright (C) 2014 Canonical Ltd.
3764+ * Copyright (C) 2014-2016 Canonical Ltd.
3765 *
3766 * Contact: Jonas G. Drange <jonas.drange@canonical.com>
3767 *
3768@@ -21,8 +21,8 @@
3769 import QtQuick 2.4
3770 import QtQuick.Layouts 1.1
3771 import SystemSettings 1.0
3772+import SystemSettings.ListItems 1.0 as SettingsListItems
3773 import Ubuntu.Components 1.3
3774-import Ubuntu.Components.ListItems 1.3 as ListItem
3775 import Ubuntu.SystemSettings.Wifi 1.0
3776
3777 ItemPage {
3778@@ -48,27 +48,28 @@
3779 anchors.left: parent.left
3780 anchors.right: parent.right
3781
3782- ListItem.Divider {}
3783-
3784- Button {
3785- text : i18n.tr("Forget this network")
3786- anchors {
3787- left: parent.left
3788- right: parent.right
3789- margins: units.gu(2)
3790- }
3791- onClicked: {
3792- if (DbusHelper.forgetActiveDevice()) {
3793- accessPoint.checked = false;
3794- accessPoint.checkedChanged(false)
3795+ SettingsListItems.SingleControl {
3796+ Button {
3797+ text : i18n.tr("Forget this network")
3798+ anchors {
3799+ left: parent.left
3800+ right: parent.right
3801+ margins: units.gu(2)
3802+ }
3803+ onClicked: {
3804+ if (DbusHelper.forgetActiveDevice()) {
3805+ accessPoint.checked = false;
3806+ accessPoint.checkedChanged(false)
3807+ }
3808 }
3809 }
3810 }
3811
3812- ListItem.Standard {
3813+ SettingsListItems.Standard {
3814 text: i18n.tr("IP address")
3815 id: addressItem
3816- control: TextField {
3817+
3818+ TextField {
3819 text: DbusHelper.wifiIp4Address
3820 readOnly: true
3821 horizontalAlignment: TextInput.AlignRight
3822
3823=== modified file 'plugins/wifi/OtherNetwork.qml'
3824--- plugins/wifi/OtherNetwork.qml 2016-03-11 15:07:14 +0000
3825+++ plugins/wifi/OtherNetwork.qml 2016-07-22 14:36:34 +0000
3826@@ -1,5 +1,5 @@
3827 /*
3828- * Copyright 2013 Canonical Ltd.
3829+ * Copyright 2013-2016 Canonical Ltd.
3830 *
3831 * This program is free software; you can redistribute it and/or modify
3832 * it under the terms of the GNU General Public License as published by
3833@@ -18,7 +18,7 @@
3834 import QtQuick.Layouts 1.1
3835 import SystemSettings 1.0
3836 import Ubuntu.Components 1.3
3837-import Ubuntu.Components.ListItems 1.3 as ListItem
3838+import Ubuntu.Components.ListItems 1.3 as ListItems
3839 import Ubuntu.Components.Popups 1.3
3840 import Ubuntu.SystemSettings.Wifi 1.0
3841 import QMenuModel 0.1
3842@@ -313,7 +313,7 @@
3843 elide: Text.ElideRight
3844 }
3845
3846- ListItem.ItemSelector {
3847+ ListItems.ItemSelector {
3848 id: securityList
3849 objectName: "securityList"
3850 model: [i18n.tr("None"), // index: 0
3851@@ -346,7 +346,7 @@
3852 securityList.selectedIndex === 4
3853 }
3854
3855- ListItem.ItemSelector {
3856+ ListItems.ItemSelector {
3857 id: authList
3858 objectName: "authList"
3859 model: ["TLS", // index: 0
3860@@ -374,7 +374,7 @@
3861 authList.selectedIndex === 4)
3862 }
3863
3864- ListItem.ItemSelector {
3865+ ListItems.ItemSelector {
3866 id: p2authList
3867 objectName: "p2authList"
3868 width: parent.width
3869@@ -407,7 +407,7 @@
3870 authList.selectedIndex === 4)
3871 }
3872
3873- ListItem.ItemSelector {
3874+ ListItems.ItemSelector {
3875 id: cacertSelector
3876 anchors {
3877 left: parent.left
3878@@ -521,7 +521,7 @@
3879
3880 }
3881
3882- ListItem.ItemSelector {
3883+ ListItems.ItemSelector {
3884 id: usercertSelector
3885 anchors {
3886 left: parent.left
3887@@ -586,7 +586,7 @@
3888 }
3889 }
3890
3891- ListItem.ItemSelector {
3892+ ListItems.ItemSelector {
3893 id: privateKeySelector
3894 anchors {
3895 left: parent.left
3896@@ -639,7 +639,7 @@
3897 OptionSelectorDelegate { text: pacFileName; }
3898 }
3899
3900- ListItem.ItemSelector {
3901+ ListItems.ItemSelector {
3902 id: pacFileSelector
3903 anchors {
3904 left: parent.left
3905@@ -681,7 +681,7 @@
3906 (authList.selectedIndex === 3)
3907 }
3908
3909- ListItem.ItemSelector {
3910+ ListItems.ItemSelector {
3911 id: pacProvisioningList
3912 objectName: "pacProvisioningList"
3913 model: [i18n.tr("Disabled"), // index: 0
3914@@ -708,7 +708,7 @@
3915 (authList.selectedIndex === 4)
3916 }
3917
3918- ListItem.ItemSelector {
3919+ ListItems.ItemSelector {
3920 id: peapVersionList
3921 objectName: "peapVersionList"
3922 model: [i18n.tr("Version 0"), // index: 0
3923
3924=== modified file 'plugins/wifi/PageComponent.qml'
3925--- plugins/wifi/PageComponent.qml 2016-04-13 18:49:49 +0000
3926+++ plugins/wifi/PageComponent.qml 2016-07-22 14:36:34 +0000
3927@@ -1,5 +1,5 @@
3928 /*
3929- * Copyright 2013 Canonical Ltd.
3930+ * Copyright 2013-2016 Canonical Ltd.
3931 *
3932 * This program is free software; you can redistribute it and/or modify
3933 * it under the terms of the GNU General Public License as published by
3934@@ -16,8 +16,8 @@
3935
3936 import QtQuick 2.4
3937 import SystemSettings 1.0
3938+import SystemSettings.ListItems 1.0 as SettingsListItems
3939 import Ubuntu.Components 1.3
3940-import Ubuntu.Components.ListItems 1.3 as ListItem
3941 import Ubuntu.Components.Popups 1.3
3942 import Ubuntu.SystemSettings.Wifi 1.0
3943 import QMenuModel 0.1
3944@@ -81,7 +81,6 @@
3945 right: parent.right
3946 }
3947 height: loader.height
3948- visible: height > 0
3949
3950 Loader {
3951 id: loader
3952@@ -124,16 +123,7 @@
3953 }
3954 }
3955
3956- ListItem.Divider {}
3957-
3958- ListItem.SingleValue {
3959- objectName: "previousNetwork"
3960- text: i18n.tr("Previous networks")
3961- progression: true
3962- onClicked: pageStack.push(Qt.resolvedUrl("PreviousNetworks.qml"))
3963- }
3964-
3965- ListItem.SingleValue {
3966+ SettingsListItems.Standard {
3967 objectName: "connectToHiddenNetwork"
3968 text: i18n.tr("Connect to hidden network…")
3969 visible : wifibase.wifiEnabled
3970@@ -143,6 +133,12 @@
3971 }
3972 }
3973
3974+ SettingsListItems.StandardProgression {
3975+ objectName: "previousNetwork"
3976+ text: i18n.tr("Previous networks")
3977+ onClicked: pageStack.push(Qt.resolvedUrl("PreviousNetworks.qml"))
3978+ }
3979+
3980 Loader {
3981 id: otherNetworLoader
3982 asynchronous: false
3983
3984=== modified file 'plugins/wifi/PreviousNetworks.qml'
3985--- plugins/wifi/PreviousNetworks.qml 2015-08-10 13:31:45 +0000
3986+++ plugins/wifi/PreviousNetworks.qml 2016-07-22 14:36:34 +0000
3987@@ -1,5 +1,5 @@
3988 /*
3989- * Copyright 2013 Canonical Ltd.
3990+ * Copyright 2013-2016 Canonical Ltd.
3991 *
3992 * This program is free software; you can redistribute it and/or modify
3993 * it under the terms of the GNU General Public License as published by
3994@@ -16,8 +16,8 @@
3995
3996 import QtQuick 2.4
3997 import SystemSettings 1.0
3998+import SystemSettings.ListItems 1.0 as SettingsListItems
3999 import Ubuntu.Components 1.3
4000-import Ubuntu.Components.ListItems 1.3 as ListItem
4001 import Ubuntu.SystemSettings.Wifi 1.0
4002 import QMenuModel 0.1
4003
4004@@ -54,9 +54,8 @@
4005 duration: UbuntuAnimation.SnapDuration
4006 }
4007 }
4008- delegate: ListItem.Standard {
4009+ delegate: SettingsListItems.StandardProgression {
4010 text: name
4011- progression: true
4012 onClicked: {
4013 pageStack.push(Qt.resolvedUrl("NetworkDetails.qml"),
4014 {networkName : name, password : password, lastUsed : lastUsed,
4015
4016=== modified file 'plugins/wifi/SectionMenuItem.qml'
4017--- plugins/wifi/SectionMenuItem.qml 2015-08-10 13:31:45 +0000
4018+++ plugins/wifi/SectionMenuItem.qml 2016-07-22 14:36:34 +0000
4019@@ -1,5 +1,5 @@
4020 /*
4021- * Copyright 2013 Canonical Ltd.
4022+ * Copyright 2013-2016 Canonical Ltd.
4023 *
4024 * This program is free software; you can redistribute it and/or modify
4025 * it under the terms of the GNU General Public License as published by
4026@@ -18,37 +18,22 @@
4027 */
4028
4029 import QtQuick 2.4
4030+import SystemSettings 1.0
4031 import Ubuntu.Components 1.3
4032-import Ubuntu.Components.ListItems 1.3 as ListItem
4033-
4034-BaseMenuItem {
4035- id: menuItem
4036- property alias text: header.text
4037- property bool busy: false
4038-
4039- implicitHeight: text !== "" ? header.height : 0
4040-
4041- ListItem.Header {
4042- id: header
4043-
4044- height: units.gu(4)
4045+
4046+SettingsItemTitle {
4047+ property alias busy: indicator.running
4048+
4049+ ActivityIndicator {
4050+ id: indicator
4051 anchors {
4052- left: parent.left
4053+ top: parent.top
4054+ topMargin: units.gu(3)
4055 right: parent.right
4056- top: parent.top
4057- }
4058- visible: text != ""
4059-
4060- ActivityIndicator {
4061- id: indicator
4062- running: busy
4063- anchors {
4064- margins: units.gu(0.5)
4065- right: parent.right
4066- }
4067- height: parent.height - (anchors.margins * 2)
4068- width: height
4069- anchors.verticalCenter: parent.verticalCenter
4070- }
4071+ rightMargin: units.gu(2)
4072+ }
4073+ height: parent.height - (anchors.topMargin * 1.25)
4074+ width: height
4075+ visible: running
4076 }
4077 }
4078
4079=== modified file 'plugins/wifi/StandardMenuItem.qml'
4080--- plugins/wifi/StandardMenuItem.qml 2015-08-10 13:31:45 +0000
4081+++ plugins/wifi/StandardMenuItem.qml 2016-07-22 14:36:34 +0000
4082@@ -1,5 +1,5 @@
4083 /*
4084- * Copyright 2013 Canonical Ltd.
4085+ * Copyright 2013-2016 Canonical Ltd.
4086 *
4087 * This program is free software; you can redistribute it and/or modify
4088 * it under the terms of the GNU General Public License as published by
4089@@ -28,34 +28,12 @@
4090
4091 signal activate()
4092
4093- onCheckedChanged: {
4094- // Can't rely on binding. Checked is assigned on click.
4095- if (checkable) {
4096- checkbox.checked = checked;
4097- }
4098- }
4099+ layout.subtitle.text: checked ? i18n.tr("Connected") : ""
4100
4101+ progressionVisible: checked
4102 onClicked: {
4103- if (checkable) {
4104- checkbox.clicked();
4105- } else {
4106- menuItem.activate();
4107- }
4108- }
4109-
4110- control: CheckBox {
4111- id: checkbox
4112-
4113- Component.onCompleted: {
4114- checked = menuItem.checked;
4115- }
4116-
4117- // FIXME : should use Checkbox.toggled signal
4118- // lp:~nick-dedekind/ubuntu-ui-toolkit/checkbox.toggled
4119- onClicked: {
4120- menuItem.activate();
4121- }
4122-
4123- visible: checkable
4124+ if (!checked) {
4125+ menuItem.activate();
4126+ }
4127 }
4128 }
4129
4130=== modified file 'plugins/wifi/SwitchMenuItem.qml'
4131--- plugins/wifi/SwitchMenuItem.qml 2015-08-10 13:31:45 +0000
4132+++ plugins/wifi/SwitchMenuItem.qml 2016-07-22 14:36:34 +0000
4133@@ -1,5 +1,5 @@
4134 /*
4135- * Copyright 2013 Canonical Ltd.
4136+ * Copyright 2013-2016 Canonical Ltd.
4137 *
4138 * This program is free software; you can redistribute it and/or modify
4139 * it under the terms of the GNU General Public License as published by
4140@@ -33,7 +33,7 @@
4141 switcher.checked = checked;
4142 }
4143
4144- control: Switch {
4145+ Switch {
4146 id: switcher
4147
4148 Component.onCompleted: {
4149
4150=== modified file 'src/CMakeLists.txt'
4151--- src/CMakeLists.txt 2016-02-10 15:52:50 +0000
4152+++ src/CMakeLists.txt 2016-07-22 14:36:34 +0000
4153@@ -21,6 +21,7 @@
4154
4155 set(QML_SOURCES
4156 qml/CategoryGrid.qml
4157+ qml/CategorySection.qml
4158 qml/EntryComponent.qml
4159 qml/MainWindow.qml
4160 qml/UncategorizedItemsView.qml
4161
4162=== modified file 'src/SystemSettings/ListItems/Icon.qml'
4163--- src/SystemSettings/ListItems/Icon.qml 2016-07-22 14:36:33 +0000
4164+++ src/SystemSettings/ListItems/Icon.qml 2016-07-22 14:36:34 +0000
4165@@ -1,7 +1,7 @@
4166 /*
4167 * This file is part of system-settings
4168 *
4169- * Copyright (C) 2015 Canonical Ltd.
4170+ * Copyright (C) 2015-2016 Canonical Ltd.
4171 *
4172 * This program is free software: you can redistribute it and/or modify it
4173 * under the terms of the GNU General Public License version 3, as published
4174
4175=== modified file 'src/SystemSettings/ListItems/IconProgression.qml'
4176--- src/SystemSettings/ListItems/IconProgression.qml 2016-07-22 14:36:33 +0000
4177+++ src/SystemSettings/ListItems/IconProgression.qml 2016-07-22 14:36:34 +0000
4178@@ -1,7 +1,7 @@
4179 /*
4180 * This file is part of system-settings
4181 *
4182- * Copyright (C) 2015 Canonical Ltd.
4183+ * Copyright (C) 2015-2016 Canonical Ltd.
4184 *
4185 * This program is free software: you can redistribute it and/or modify it
4186 * under the terms of the GNU General Public License version 3, as published
4187
4188=== modified file 'src/SystemSettings/ListItems/SingleControl.qml'
4189--- src/SystemSettings/ListItems/SingleControl.qml 2016-07-22 14:36:33 +0000
4190+++ src/SystemSettings/ListItems/SingleControl.qml 2016-07-22 14:36:34 +0000
4191@@ -1,7 +1,7 @@
4192 /*
4193 * This file is part of system-settings
4194 *
4195- * Copyright (C) 2015 Canonical Ltd.
4196+ * Copyright (C) 2015-2016 Canonical Ltd.
4197 *
4198 * This program is free software: you can redistribute it and/or modify it
4199 * under the terms of the GNU General Public License version 3, as published
4200
4201=== modified file 'src/SystemSettings/ListItems/SingleValue.qml'
4202--- src/SystemSettings/ListItems/SingleValue.qml 2016-07-22 14:36:33 +0000
4203+++ src/SystemSettings/ListItems/SingleValue.qml 2016-07-22 14:36:34 +0000
4204@@ -1,7 +1,7 @@
4205 /*
4206 * This file is part of system-settings
4207 *
4208- * Copyright (C) 2015 Canonical Ltd.
4209+ * Copyright (C) 2015-2016 Canonical Ltd.
4210 *
4211 * This program is free software: you can redistribute it and/or modify it
4212 * under the terms of the GNU General Public License version 3, as published
4213
4214=== modified file 'src/SystemSettings/ListItems/SingleValueProgression.qml'
4215--- src/SystemSettings/ListItems/SingleValueProgression.qml 2016-07-22 14:36:33 +0000
4216+++ src/SystemSettings/ListItems/SingleValueProgression.qml 2016-07-22 14:36:34 +0000
4217@@ -1,7 +1,7 @@
4218 /*
4219 * This file is part of system-settings
4220 *
4221- * Copyright (C) 2015 Canonical Ltd.
4222+ * Copyright (C) 2015-2016 Canonical Ltd.
4223 *
4224 * This program is free software: you can redistribute it and/or modify it
4225 * under the terms of the GNU General Public License version 3, as published
4226
4227=== modified file 'src/SystemSettings/ListItems/Standard.qml'
4228--- src/SystemSettings/ListItems/Standard.qml 2016-07-22 14:36:33 +0000
4229+++ src/SystemSettings/ListItems/Standard.qml 2016-07-22 14:36:34 +0000
4230@@ -1,7 +1,7 @@
4231 /*
4232 * This file is part of system-settings
4233 *
4234- * Copyright (C) 2015 Canonical Ltd.
4235+ * Copyright (C) 2015-2016 Canonical Ltd.
4236 *
4237 * This program is free software: you can redistribute it and/or modify it
4238 * under the terms of the GNU General Public License version 3, as published
4239
4240=== modified file 'src/SystemSettings/ListItems/StandardProgression.qml'
4241--- src/SystemSettings/ListItems/StandardProgression.qml 2016-07-22 14:36:33 +0000
4242+++ src/SystemSettings/ListItems/StandardProgression.qml 2016-07-22 14:36:34 +0000
4243@@ -1,7 +1,7 @@
4244 /*
4245 * This file is part of system-settings
4246 *
4247- * Copyright (C) 2015 Canonical Ltd.
4248+ * Copyright (C) 2015-2016 Canonical Ltd.
4249 *
4250 * This program is free software: you can redistribute it and/or modify it
4251 * under the terms of the GNU General Public License version 3, as published
4252
4253=== modified file 'src/SystemSettings/SettingsItemTitle.qml'
4254--- src/SystemSettings/SettingsItemTitle.qml 2016-07-22 14:36:33 +0000
4255+++ src/SystemSettings/SettingsItemTitle.qml 2016-07-22 14:36:34 +0000
4256@@ -1,7 +1,7 @@
4257 /*
4258 * This file is part of system-settings
4259 *
4260- * Copyright (C) 2013 Canonical Ltd.
4261+ * Copyright (C) 2013-2016 Canonical Ltd.
4262 *
4263 * This program is free software: you can redistribute it and/or modify it
4264 * under the terms of the GNU General Public License version 3, as published
4265
4266=== modified file 'src/SystemSettings/qmldir'
4267--- src/SystemSettings/qmldir 2014-10-31 08:45:10 +0000
4268+++ src/SystemSettings/qmldir 2016-07-22 14:36:34 +0000
4269@@ -1,3 +1,4 @@
4270 module SystemSettings
4271+
4272 ItemPage 1.0 ItemPage.qml
4273 SettingsItemTitle 1.0 SettingsItemTitle.qml
4274
4275=== added file 'src/qml/CategoryGrid.qml'
4276--- src/qml/CategoryGrid.qml 1970-01-01 00:00:00 +0000
4277+++ src/qml/CategoryGrid.qml 2016-07-22 14:36:34 +0000
4278@@ -0,0 +1,90 @@
4279+/*
4280+ * This file is part of system-settings
4281+ *
4282+ * Copyright (C) 2013-2016 Canonical Ltd.
4283+ *
4284+ * Contact: Ken VanDine <ken.vandine@canonical.com>
4285+ *
4286+ * This program is free software: you can redistribute it and/or modify it
4287+ * under the terms of the GNU General Public License version 3, as published
4288+ * by the Free Software Foundation.
4289+ *
4290+ * This program is distributed in the hope that it will be useful, but
4291+ * WITHOUT ANY WARRANTY; without even the implied warranties of
4292+ * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
4293+ * PURPOSE. See the GNU General Public License for more details.
4294+ *
4295+ * You should have received a copy of the GNU General Public License along
4296+ * with this program. If not, see <http://www.gnu.org/licenses/>.
4297+ */
4298+
4299+import QtQuick 2.4
4300+import Ubuntu.Components 1.3
4301+import Ubuntu.Components.ListItems 1.3 as ListItem
4302+
4303+Column {
4304+ anchors {
4305+ left: parent.left
4306+ right: parent.right
4307+ }
4308+ spacing: units.gu(1)
4309+
4310+ property string category
4311+ property string categoryName
4312+
4313+ objectName: "categoryGrid-" + category
4314+
4315+ ListItem.Standard {
4316+ id: header
4317+
4318+ highlightWhenPressed: false
4319+ showDivider: false
4320+ text: categoryName
4321+ visible: repeater.count > 0
4322+ }
4323+
4324+ Grid {
4325+ property int itemWidth: units.gu(12)
4326+
4327+ // The amount of whitespace, including column spacing
4328+ property int space: parent.width - columns * itemWidth
4329+
4330+ // The column spacing is 1/n of the left/right margins
4331+ property int n: 4
4332+
4333+ columnSpacing: space / ((2 * n) + (columns - 1))
4334+ rowSpacing: units.gu(3)
4335+ width: (columns * itemWidth) + columnSpacing * (columns - 1)
4336+ anchors.horizontalCenter: parent.horizontalCenter
4337+ columns: {
4338+ var items = Math.floor(parent.width / itemWidth)
4339+ var count = repeater.count
4340+ return count < items ? count : items
4341+ }
4342+
4343+ Repeater {
4344+ id: repeater
4345+
4346+ model: pluginManager.itemModel(category)
4347+
4348+ delegate: Loader {
4349+ id: loader
4350+ width: parent.itemWidth
4351+ sourceComponent: model.item.entryComponent
4352+ active: model.item.visible
4353+ Connections {
4354+ ignoreUnknownSignals: true
4355+ target: loader.item
4356+ onClicked: {
4357+ var pageComponent = model.item.pageComponent
4358+ if (pageComponent) {
4359+ pageStack.push(model.item.pageComponent,
4360+ { plugin: model.item, pluginManager: pluginManager })
4361+ }
4362+ }
4363+ }
4364+ }
4365+ }
4366+ }
4367+ ListItem.ThinDivider { visible: header.visible }
4368+}
4369
4370=== renamed file 'src/qml/CategoryGrid.qml' => 'src/qml/CategorySection.qml'
4371--- src/qml/CategoryGrid.qml 2016-05-06 13:13:55 +0000
4372+++ src/qml/CategorySection.qml 2016-07-22 14:36:34 +0000
4373@@ -1,6 +1,28 @@
4374+/*
4375+ * This file is part of system-settings
4376+ *
4377+ * Copyright (C) 2015-2016 Canonical Ltd.
4378+ *
4379+ * Contact: Ken VanDine <ken.vandine@canonical.com>
4380+ *
4381+ * This program is free software: you can redistribute it and/or modify it
4382+ * under the terms of the GNU General Public License version 3, as published
4383+ * by the Free Software Foundation.
4384+ *
4385+ * This program is distributed in the hope that it will be useful, but
4386+ * WITHOUT ANY WARRANTY; without even the implied warranties of
4387+ * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
4388+ * PURPOSE. See the GNU General Public License for more details.
4389+ *
4390+ * You should have received a copy of the GNU General Public License along
4391+ * with this program. If not, see <http://www.gnu.org/licenses/>.
4392+ */
4393+
4394 import QtQuick 2.4
4395+import SystemSettings 1.0
4396+import SystemSettings.ListItems 1.0 as SettingsListItems
4397 import Ubuntu.Components 1.3
4398-import Ubuntu.Components.ListItems 1.3 as ListItem
4399+
4400
4401 Column {
4402 anchors {
4403@@ -14,32 +36,17 @@
4404
4405 objectName: "categoryGrid-" + category
4406
4407- ListItem.Standard {
4408+ SettingsItemTitle {
4409 id: header
4410-
4411- highlightWhenPressed: false
4412- showDivider: false
4413 text: categoryName
4414 visible: repeater.count > 0
4415 }
4416
4417- Grid {
4418- property int itemWidth: units.gu(12)
4419-
4420- // The amount of whitespace, including column spacing
4421- property int space: parent.width - columns * itemWidth
4422-
4423- // The column spacing is 1/n of the left/right margins
4424- property int n: 4
4425-
4426- columnSpacing: space / ((2 * n) + (columns - 1))
4427- rowSpacing: units.gu(3)
4428- width: (columns * itemWidth) + columnSpacing * (columns - 1)
4429- anchors.horizontalCenter: parent.horizontalCenter
4430- columns: {
4431- var items = Math.floor(parent.width / itemWidth)
4432- var count = repeater.count
4433- return count < items ? count : items
4434+ Column {
4435+ id: col
4436+ anchors {
4437+ left: parent.left
4438+ right: parent.right
4439 }
4440
4441 Repeater {
4442@@ -49,7 +56,10 @@
4443
4444 delegate: Loader {
4445 id: loader
4446- width: parent.itemWidth
4447+ anchors {
4448+ left: col.left
4449+ right: col.right
4450+ }
4451 sourceComponent: model.item.entryComponent
4452 active: model.item.visible
4453 Connections {
4454@@ -66,5 +76,4 @@
4455 }
4456 }
4457 }
4458- ListItem.ThinDivider { visible: header.visible }
4459 }
4460
4461=== modified file 'src/qml/MainWindow.qml'
4462--- src/qml/MainWindow.qml 2016-04-28 15:31:39 +0000
4463+++ src/qml/MainWindow.qml 2016-07-22 14:36:34 +0000
4464@@ -1,7 +1,7 @@
4465 /*
4466 * This file is part of system-settings
4467 *
4468- * Copyright (C) 2013, 2014, 2015 Canonical Ltd.
4469+ * Copyright (C) 2013-2016 Canonical Ltd.
4470 *
4471 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
4472 *
4473@@ -19,8 +19,8 @@
4474 */
4475
4476 import QtQuick 2.4
4477+import SystemSettings.ListItems 1.0 as SettingsListItems
4478 import Ubuntu.Components 1.3
4479-import Ubuntu.Components.ListItems 1.3 as ListItem
4480 import SystemSettings 1.0
4481
4482 MainView {
4483@@ -117,6 +117,17 @@
4484 visible: false
4485 flickable: mainFlickable
4486
4487+ head.actions: [
4488+ Action {
4489+ objectName: "searchAction"
4490+ iconName: "find"
4491+ onTriggered: {
4492+ pluginManager.filter = "";
4493+ search.visible = !search.visible;
4494+ }
4495+ }
4496+ ]
4497+
4498 Flickable {
4499 id: mainFlickable
4500 anchors.fill: parent
4501@@ -130,9 +141,11 @@
4502 anchors.left: parent.left
4503 anchors.right: parent.right
4504
4505- ListItem.SingleControl {
4506+ SettingsListItems.SingleControl {
4507 id: search
4508- control: TextField {
4509+ visible: false
4510+ TextField {
4511+ id: searchField
4512 width: parent.width - units.gu(4)
4513 placeholderText: i18n.tr("Search")
4514 objectName: "searchTextField"
4515@@ -140,6 +153,7 @@
4516 onDisplayTextChanged:
4517 pluginManager.filter = displayText
4518 }
4519+ onVisibleChanged: if (visible) searchField.forceActiveFocus()
4520 }
4521
4522 UncategorizedItemsView {
4523
4524=== modified file 'src/ui.qrc'
4525--- src/ui.qrc 2014-01-31 15:07:01 +0000
4526+++ src/ui.qrc 2016-07-22 14:36:34 +0000
4527@@ -1,6 +1,7 @@
4528 <!DOCTYPE RCC><RCC version="1.0">
4529 <qresource>
4530 <file>qml/CategoryGrid.qml</file>
4531+ <file>qml/CategorySection.qml</file>
4532 <file>qml/EntryComponent.qml</file>
4533 <file>qml/MainWindow.qml</file>
4534 <file>qml/UncategorizedItemsView.qml</file>
4535
4536=== modified file 'tests/autopilot/ubuntu_system_settings/__init__.py'
4537--- tests/autopilot/ubuntu_system_settings/__init__.py 2016-06-14 11:44:19 +0000
4538+++ tests/autopilot/ubuntu_system_settings/__init__.py 2016-07-22 14:36:34 +0000
4539@@ -1,7 +1,7 @@
4540
4541 # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
4542 #
4543-# Copyright (C) 2014, 2015 Canonical Ltd.
4544+# Copyright (C) 2014-2016 Canonical Ltd.
4545 #
4546 # This program is free software; you can redistribute it and/or modify
4547 # it under the terms of the GNU Lesser General Public License as published by
4548@@ -155,6 +155,13 @@
4549 self.scroll_to(obj)
4550 self.pointing_device.click_object(obj)
4551
4552+ def click_header_action(self, action):
4553+ """Click the action 'action' on the header"""
4554+ main_view = self.get_root_instance().select_single(
4555+ objectName='systemSettingsMainView')
4556+ header = main_view.select_single('AppHeader')
4557+ header.click_action_button(action)
4558+
4559 @property
4560 def system_settings_page(self):
4561 return self.select_single(objectName='systemSettingsPage')
4562@@ -1821,7 +1828,7 @@
4563
4564 @autopilot.logging.log_action(logger.debug)
4565 def _select_network(self, name):
4566- net = self.select_single('Standard', text=name)
4567+ net = self.select_single('StandardProgression', text=name)
4568 self.pointing_device.click_object(net)
4569
4570
4571
4572=== modified file 'tests/autopilot/ubuntu_system_settings/tests/test_cellular.py'
4573--- tests/autopilot/ubuntu_system_settings/tests/test_cellular.py 2016-06-14 11:44:19 +0000
4574+++ tests/autopilot/ubuntu_system_settings/tests/test_cellular.py 2016-07-22 14:36:34 +0000
4575@@ -1,5 +1,5 @@
4576 # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
4577-# Copyright 2014 Canonical
4578+# Copyright 2014-2016 Canonical
4579 #
4580 # This program is free software: you can redistribute it and/or modify it
4581 # under the terms of the GNU General Public License version 3, as published
4582@@ -11,6 +11,7 @@
4583 from autopilot.introspection.dbus import StateNotFoundError
4584 from autopilot.matchers import Eventually
4585 from testtools.matchers import Equals, raises, StartsWith
4586+from unittest import skip
4587
4588 from ubuntu_system_settings.tests import (
4589 CellularBaseTestCase, RDO_IFACE,
4590@@ -292,6 +293,7 @@
4591
4592 class ApnTestCase(CellularBaseTestCase):
4593
4594+ @skip('Skip until we can get the CPO for ListItem trigger actions')
4595 def test_remove_apn(self):
4596 self.add_connection_context(self.modem_0, Type='mms', Name='Failed')
4597 contexts = self.modem_0.connMan.GetContexts()
4598
4599=== modified file 'tests/autopilot/ubuntu_system_settings/tests/test_search.py'
4600--- tests/autopilot/ubuntu_system_settings/tests/test_search.py 2015-07-20 17:25:20 +0000
4601+++ tests/autopilot/ubuntu_system_settings/tests/test_search.py 2016-07-22 14:36:34 +0000
4602@@ -1,5 +1,5 @@
4603 # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
4604-# Copyright 2013 Canonical
4605+# Copyright 2013-2016 Canonical
4606 #
4607 # This program is free software: you can redistribute it and/or modify it
4608 # under the terms of the GNU General Public License version 3, as published
4609@@ -31,6 +31,7 @@
4610 'EntryComponent')
4611
4612 def _type_into_search_box(self, text):
4613+ self.main_view.click_header_action('searchAction')
4614 search_box = self.main_view.select_single(
4615 objectName='searchTextField'
4616 )
4617
4618=== modified file 'tests/autopilot/ubuntu_system_settings/tests/test_security.py'
4619--- tests/autopilot/ubuntu_system_settings/tests/test_security.py 2015-09-21 13:36:13 +0000
4620+++ tests/autopilot/ubuntu_system_settings/tests/test_security.py 2016-07-22 14:36:34 +0000
4621@@ -1,5 +1,5 @@
4622 # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
4623-# Copyright 2014 Canonical
4624+# Copyright 2014-2016 Canonical
4625 #
4626 # This program is free software: you can redistribute it and/or modify it
4627 # under the terms of the GNU General Public License version 3, as published
4628@@ -199,12 +199,12 @@
4629 elif actTimeout is 60:
4630 self.assertEquals(
4631 activityTimeout,
4632- ('{:d} minute').format(int(actTimeout/60))
4633+ ('After {:d} minute').format(int(actTimeout/60))
4634 )
4635 else:
4636 self.assertEquals(
4637 activityTimeout,
4638- ('{:d} minutes').format(int(actTimeout/60))
4639+ ('After {:d} minutes').format(int(actTimeout/60))
4640 )
4641
4642 def test_idle_never_timeout(self):

Subscribers

People subscribed via source and target branches