diff --git a/applets/testshaderapplet/contents/ui/EditorPage.qml b/applets/testshaderapplet/contents/ui/EditorPage.qml index c0be746e2..5fe141445 100644 --- a/applets/testshaderapplet/contents/ui/EditorPage.qml +++ b/applets/testshaderapplet/contents/ui/EditorPage.qml @@ -109,10 +109,15 @@ PlasmaComponents.Page { bottomMargin: _s } - text: { "void main(void) {\ - gl_FragColor = vec4(1.0, 0.0, 0.0, 0.3);\ - }" +// text: { "void main(void) {\ +// gl_FragColor = vec4(1.0, 0.0, 0.0, 0.3);\ +// }" +// } + text:" + void main(void) { + gl_FragColor = vec4(0.2, 0.8, 0.6, 0.3); } + " // width: parent.width // parent.height-height: _h*2 diff --git a/applets/testshaderapplet/contents/ui/testshaderapplet.qml b/applets/testshaderapplet/contents/ui/testshaderapplet.qml index 27814dbde..a1cae329b 100644 --- a/applets/testshaderapplet/contents/ui/testshaderapplet.qml +++ b/applets/testshaderapplet/contents/ui/testshaderapplet.qml @@ -46,6 +46,8 @@ Item { height: _h PlasmaComponents.TabButton { tab: wobbleExample; text: tab.pageName; } + //PlasmaComponents.TabButton { tab: colorExample; text: tab.pageName; } + PlasmaComponents.TabButton { tab: colorShower; text: tab.pageName; } PlasmaComponents.TabButton { tab: simpleExample; text: tab.pageName; } PlasmaComponents.TabButton { tab: vertexPage; iconSource: vertexPage.icon; } } @@ -62,6 +64,12 @@ Item { WobbleExample { id: wobbleExample } + ColorExample { + id: colorExample + } + ColorShower { + id: colorShower + } SimpleExample { id: simpleExample }