~zsombi/ubuntu-ui-toolkit/140-selectdelegate

« back to all changes in this revision

Viewing changes to modules/Ubuntu/Components/ListItems/ThinDivider.qml

ThinDivider margins rolled back to edge-to-edge. Divider colors adjusted with design. Fixes: https://bugs.launchpad.net/bugs/1380766.

Approved by PS Jenkins bot, Tim Peeters.

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
    property bool __lightBackground: ColorUtils.luminance(Theme.palette.normal.background) > 0.85
58
58
    // use a gradient of 4 steps instead of instantiating two Rectangles for performance reasons
59
59
    gradient: Gradient {
60
 
        GradientStop { position: 0.0; color: __lightBackground ? "#26000000" : "#26FFFFFF" }
61
 
        GradientStop { position: 0.49; color: __lightBackground ? "#26000000" : "#26FFFFFF" }
62
 
        GradientStop { position: 0.5; color: __lightBackground ? "#14FFFFFF" : "#14000000" }
63
 
        GradientStop { position: 1.0; color: __lightBackground ? "#14FFFFFF" : "#14000000" }
 
60
        GradientStop { position: 0.0; color: __lightBackground ? Qt.rgba(0, 0, 0, 0.1) : Qt.rgba(0, 0, 0, 0.4) }
 
61
        GradientStop { position: 0.49; color: __lightBackground ? Qt.rgba(0, 0, 0, 0.1) : Qt.rgba(0, 0, 0, 0.4) }
 
62
        GradientStop { position: 0.5; color: __lightBackground ? Qt.rgba(1, 1, 1, 0.4) : Qt.rgba(1, 1, 1, 0.1) }
 
63
        GradientStop { position: 1.0; color: __lightBackground ? Qt.rgba(1, 1, 1, 0.4) : Qt.rgba(1, 1, 1, 0.1) }
64
64
    }
65
65
}