~chris.gagnon/ubuntu-ui-toolkit/fix-bug-1388896

« back to all changes in this revision

Viewing changes to modules/Ubuntu/Components/Themes/Ambiance/PageHeadButton.qml

  • Committer: CI bot
  • Author(s): Zsombor Egri, Michael Sheldon, Zoltán Balogh, Christian Dywan, Tim Peeters
  • Date: 2014-10-07 12:09:27 UTC
  • mfrom: (1000.249.11 landing-0711)
  • Revision ID: ps-jenkins@lists.canonical.com-20141007120927-ucysonqxn60vu8gz
  [ Michael Sheldon ]
  * Removes the keyboard anchor animation as this is now implemented
    in the keyboard.

  [ Tim Peeters ]
  * PageStack push returns the pushed page. Fixes LP: #1361919
  * Add selection mode as a preset to the header configuration.
    Fixes LP: #1370146.

  [ Zsombor Egri ]
  * Fix Dialog foreground sizing. Fixes LP: #1337555, LP: #1337556.
  * Workaround for StateSaver to fall back to use qgetenv() when
    QStandardPaths fails to return XDG_RUNTIME_DIR path.
    Fixes LP: #1363112.

  [ Christian Dywan ]
  * Add unit tests for MathUtils API.
    Fixes LP: #1244685.
  * Text field hint should use the same font as the editor.
    Fixes LP: #1237400.
  * Read-only text fields mustn't have a clear button.
    Fixes LP: #1337257.
  * autopilot package should source-depend on QML plugin.
    Fixes LP: #1236085.
 

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
        color: Qt.rgba(0, 0, 0, 0)
48
48
        opacity: button.enabled ? 1.0 : 0.3
49
49
    }
 
50
 
 
51
    Component {
 
52
        id: labelComponent
 
53
        Label {
 
54
            id: label
 
55
            objectName: button.objectName + "_label"
 
56
            color: button.color
 
57
            opacity: button.enabled ? 1.0 : 0.3
 
58
            text: button.text
 
59
            fontSize: "xx-small"
 
60
        }
 
61
    }
 
62
    Loader {
 
63
        anchors {
 
64
            top: icon.bottom
 
65
            topMargin: units.gu(0.5)
 
66
            horizontalCenter: parent.horizontalCenter
 
67
        }
 
68
        sourceComponent: button.state === "IconAndLabel" ? labelComponent : null
 
69
    }
50
70
}