~phablet-team/webbrowser-app/OTA-14

« back to all changes in this revision

Viewing changes to src/app/webbrowser/IndeterminateProgressBar.qml

  • Committer: Bileto Bot
  • Author(s): Michael Terry
  • Date: 2016-08-25 09:51:33 UTC
  • mfrom: (1455.5.3 less-ubuntucolors)
  • Revision ID: ci-train-bot@canonical.com-20160825095133-35qlnf7mczrgbhyo
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. (LP: #1581047)

Approved by: Olivier Tilloy, system-apps-ci-bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright 2015 Canonical Ltd.
 
2
 * Copyright 2015-2016 Canonical Ltd.
3
3
 *
4
4
 * This file is part of webbrowser-app.
5
5
 *
35
35
        anchors.left: parent.left
36
36
        anchors.leftMargin: 0
37
37
        anchors.top: parent.top
38
 
        color: UbuntuColors.orange
 
38
        color: theme.palette.normal.activity
39
39
        width: indeterminateProgress ? parent.width / 6 : (progress / 100) * parent.width
40
40
 
41
41
        SequentialAnimation {