~faenil/ubuntu-ui-toolkit/listitemlayout_fixes_and_docs

« back to all changes in this revision

Viewing changes to src/Ubuntu/Components/Themes/Ambiance/1.3/Palette.qml

  • Committer: Andrea Bernabei
  • Date: 2016-01-20 13:47:23 UTC
  • mfrom: (1795.2.13 staging)
  • Revision ID: andrea.bernabei@canonical.com-20160120134723-hn6rkf4s3pie0wwp
merge staging

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
import Ubuntu.Components.Themes 1.3
20
20
 
21
21
Palette {
22
 
    normal {
23
 
        background: "#FFFFFF"
24
 
        backgroundText: "#81888888"
25
 
        base: Qt.rgba(0, 0, 0, 0.1)
26
 
        baseText: UbuntuColors.lightGrey
27
 
        foreground: UbuntuColors.lightGrey
28
 
        foregroundText: "#FFFFFF"
29
 
        overlay: "#FDFDFD"
30
 
        overlayText: UbuntuColors.lightGrey
31
 
        field: "lightgray"
32
 
        fieldText: UbuntuColors.darkGrey
33
 
    }
34
 
    selected {
35
 
        background: Qt.rgba(0, 0, 0, 0.05)
36
 
        backgroundText: UbuntuColors.darkGrey
37
 
        selection: selected.foreground
38
 
        foreground: Qt.rgba(UbuntuColors.blue.r, UbuntuColors.blue.g, UbuntuColors.blue.b, 0.2)
39
 
        foregroundText: UbuntuColors.darkGrey
40
 
        field: "#FFFFFF"
41
 
        fieldText: UbuntuColors.darkGrey
 
22
    normal: AmbianceNormal {}
 
23
    inactive: AmbianceNormal {
 
24
        field: UbuntuColors.porcelain;
 
25
        // inactive is 30% transparent normal
 
26
        Component.onCompleted: {
 
27
            for (var p in normal) {
 
28
                // skip objectName and all change signals
 
29
                if (p == "objectName" || p == "field" || p.indexOf("Changed") > 0) continue;
 
30
                inactive[p] = Qt.rgba(normal[p].r, normal[p].g, normal[p].b, 0.3);
 
31
            }
 
32
        }
 
33
    }
 
34
 
 
35
    // selected differs from normal in background, base, foreground
 
36
    selected: AmbianceNormal {
 
37
        background: UbuntuColors.porcelain
 
38
        backgroundText: UbuntuColors.blue
 
39
        base: UbuntuColors.ash
 
40
        baseText: UbuntuColors.blue
 
41
        foreground: UbuntuColors.silk
 
42
        foregroundText: UbuntuColors.blue
 
43
    }
 
44
 
 
45
    // selected differs from normal in background, base, foreground
 
46
    selectedInactive: AmbianceNormal {
 
47
        background: UbuntuColors.porcelain
 
48
        base: UbuntuColors.porcelain
 
49
        foreground: UbuntuColors.porcelain
42
50
    }
43
51
}