I'm exposing the icons in the SwitchStyle in the linked branch. So when that lands, you can use the following to change the look of the Switch for a single instance (for more instances, it is recommended to create a custom theme that derives from Ambience instead of this):
I'm exposing the icons in the SwitchStyle in the linked branch. So when that lands, you can use the following to change the look of the Switch for a single instance (for more instances, it is recommended to create a custom theme that derives from Ambience instead of this):
import QtQuick 2.2 Components. Themes. Ambiance 1.1 as Ambience
import Ubuntu.Components 1.1
import Ubuntu.
MainView { edToolbar: false
id: root
useDeprecat
width: units.gu(30)
height: units.gu(40)
Switch {
anchors. centerIn: parent SwitchStyle {
checkedIco nSource: "image: //theme/ stock_video"
uncheckedI conSource: "image: //theme/ stock_image"
checkedThu mbColor: "red"
id: testSwitch
width: units.gu(10)
height: units.gu(5)
checked: true
style: Ambience.
}
}
}