Merge lp://qastaging/~mterry/webbrowser-app/less-ubuntucolors into lp://qastaging/webbrowser-app

Proposed by Michael Terry
Status: Merged
Approved by: Olivier Tilloy
Approved revision: 1458
Merged at revision: 1519
Proposed branch: lp://qastaging/~mterry/webbrowser-app/less-ubuntucolors
Merge into: lp://qastaging/webbrowser-app
Diff against target: 468 lines (+42/-44)
22 files modified
src/app/AlertDialog.qml (+2/-1)
src/app/AuthenticationDialog.qml (+2/-3)
src/app/BeforeUnloadDialog.qml (+2/-1)
src/app/CertificateVerificationDialog.qml (+3/-3)
src/app/ConfirmDialog.qml (+2/-1)
src/app/GeolocationPermissionRequest.qml (+2/-3)
src/app/HttpAuthenticationDialog.qml (+2/-3)
src/app/InvalidCertificateErrorSheet.qml (+2/-2)
src/app/MediaAccessDialog.qml (+1/-2)
src/app/PromptDialog.qml (+2/-3)
src/app/webbrowser/BookmarkOptions.qml (+2/-2)
src/app/webbrowser/BookmarksFoldersViewWide.qml (+2/-2)
src/app/webbrowser/DownloadDelegate.qml (+2/-2)
src/app/webbrowser/HistorySectionDelegate.qml (+2/-2)
src/app/webbrowser/HistoryViewWide.qml (+1/-1)
src/app/webbrowser/IndeterminateProgressBar.qml (+2/-2)
src/app/webbrowser/LeavePrivateModeDialog.qml (+2/-2)
src/app/webbrowser/SadTab.qml (+2/-2)
src/app/webbrowser/SettingsPage.qml (+1/-1)
src/app/webbrowser/UrlDelegate.qml (+2/-2)
src/app/webbrowser/UrlDelegateWide.qml (+2/-2)
src/app/webcontainer/SadPage.qml (+2/-2)
To merge this branch: bzr merge lp://qastaging/~mterry/webbrowser-app/less-ubuntucolors
Reviewer Review Type Date Requested Status
system-apps-ci-bot continuous-integration Approve
Olivier Tilloy Approve
Review via email: mp+295412@code.qastaging.launchpad.net

Commit message

Use less hard-coded colors in favor of theme colors.

- We were using some off-brand colors like "green" instead of UbuntuColors.green. Which are now fixed to the theme 'positive' color in this branch anyway.
- We were using a lot of orange in places we shouldn't (mostly for recommended buttons, some selected states, and in one place for a progress indicator).
- We were frequently specifying the color of a neutral button, but never the same way twice (coolGrey, warmGrey, lightGrey). No need, the default button color should be fine.
- And I fixed a few of the instances of UbuntuColors.darkGrey for text to appropriate theme colors.

Description of the change

There are still a lot of UbuntuColor.darkGrey instances sitting out there (which is now more properly called UbuntuColors.slate, or backgroundSecondaryText in the normal theme). And a lot of hardcoded "#xxxxxx"! But I didn't deal with all of it, since I'm not super familiar with the code base.

And I left the "this page is bookmarked" icon fill color as UbuntuColors.orange. That was a unique-enough case that I wasn't sure what would be appropriate there.

To post a comment you must log in.
Revision history for this message
Olivier Tilloy (osomon) wrote :

Those changes look good, thanks Michael for taking some time to apply them. A couple of minor comments:

The OK button in src/app/ConfirmDialog.qml should have an explicit color of theme.palette.normal.positive, for consistency. And probably src/app/AlertDialog.qml too.
Not sure what should be done with src/app/BeforeUnloadDialog.qml.

In the history and bookmarks views (wide layout), the color of the current date/folder in the left column when it doesn’t have active focus should be 'selected.backgroundText' instead of 'normal.positionText', according to https://docs.google.com/presentation/d/1Sgf536u5LgKgl41x7xeEeo-XibEEPQZ_phugEArwvec/edit?ts=5728be0d#slide=id.g12f5d7958f_0_92 (that visual design update hasn’t been implemented yet, I’ll get to it soon, but since you’re changing some colors now, I reckon it would be better to use the updated ones now).

Could you please update the dates in the copyright headers for files that were changed?

1458. By Michael Terry

Add a few more button colors and update copyright years

Revision history for this message
Michael Terry (mterry) wrote :

- Made the OK button green in ConfirmDialog and AlertDialog.

- Looking at BeforeUnloadDialog, I thought it made sense to make "Leave" red and keep "Stay" grey. Let me know if you don't like this.

- For the history/bookmark views... at least in the current theme shipped today, selected.backgroundText is the same as normal.backgroundText: UbuntuColors.jet. Maybe that's a bug with the theme...? But I don't think positionText is so wrong. It's supposed to be "applied to navigation elements to indicate current position" (from PaletteValues.qml). And it's the color used in the toolkit's SectionsStyle.qml to indicate which header section is active. So maybe that spec is out of date? I think positionText is a relatively new palette option.

- Updated copyrights.

Revision history for this message
Olivier Tilloy (osomon) wrote :

Looks good to me, and your point about positionText makes sense to me.

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

PASSED: Continuous integration, rev:1458
https://jenkins.canonical.com/system-apps/job/lp-webbrowser-app-ci/579/
Executed test runs:
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build/950
    SUCCESS: https://jenkins.canonical.com/system-apps/job/test-0-autopkgtest/label=phone-armhf,release=vivid+overlay,testname=default/167
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/950
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/855
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/855
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/855
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/852
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/852/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/852
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/852/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/852
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/852/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/852
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/852/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/852
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/852/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/852
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/852/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/852
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/852/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/852
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/852/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/852
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/852/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-webbrowser-app-ci/579/rebuild

review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to status/vote changes: