Changeset View
Changeset View
Standalone View
Standalone View
src/declarativeimports/plasmastyle/CheckBoxStyle.qml
Show All 39 Lines | 27 | QtQuickControlStyle.CheckBoxStyle { | |||
---|---|---|---|---|---|
40 | } | 40 | } | ||
41 | background: Item {} | 41 | background: Item {} | ||
42 | 42 | | |||
43 | spacing: units.smallSpacing | 43 | spacing: units.smallSpacing | ||
44 | 44 | | |||
45 | indicator: PlasmaCore.FrameSvgItem { | 45 | indicator: PlasmaCore.FrameSvgItem { | ||
46 | imagePath: "widgets/button" | 46 | imagePath: "widgets/button" | ||
47 | prefix: "normal" | 47 | prefix: "normal" | ||
48 | width: theme.mSize(theme.defaultFont).height + margins.left | 48 | width: units.iconSizes.small | ||
49 | height: theme.mSize(theme.defaultFont).height + margins.top | 49 | height: width | ||
50 | opacity: control.enabled ? 1 : 0.6 | 50 | opacity: control.enabled ? 1 : 0.6 | ||
51 | 51 | | |||
52 | PlasmaCore.SvgItem { | 52 | PlasmaCore.SvgItem { | ||
53 | svg: PlasmaCore.Svg { | 53 | svg: PlasmaCore.Svg { | ||
54 | id: checkmarkSvg | 54 | id: checkmarkSvg | ||
55 | imagePath: "widgets/checkmarks" | 55 | imagePath: "widgets/checkmarks" | ||
56 | } | 56 | } | ||
57 | elementId: "checkbox" | 57 | elementId: "checkbox" | ||
Show All 27 Lines |