diff -ruN oxygen-transparent.orig/decoration/CMakeLists.txt oxygen-transparent/decoration/CMakeLists.txt --- oxygen-transparent.orig/decoration/CMakeLists.txt 2013-09-23 19:15:41.000000000 +0400 +++ oxygen-transparent/decoration/CMakeLists.txt 2013-09-23 19:16:36.395191237 +0400 @@ -30,4 +30,5 @@ ########### install files ############### install( FILES oxygentransparentclient.desktop DESTINATION ${DATA_INSTALL_DIR}/kwin/ ) +install( FILES close.svg maximize.svg minimize.svg DESTINATION ${DATA_INSTALL_DIR}/desktoptheme/oxygen/oxytrans/ ) diff -ruN oxygen-transparent.orig/decoration/close.svg oxygen-transparent/decoration/close.svg --- oxygen-transparent.orig/decoration/close.svg 1970-01-01 03:00:00.000000000 +0300 +++ oxygen-transparent/decoration/close.svg 2013-09-23 15:21:27.000000000 +0400 @@ -0,0 +1,1148 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + diff -ruN oxygen-transparent.orig/decoration/maximize.svg oxygen-transparent/decoration/maximize.svg --- oxygen-transparent.orig/decoration/maximize.svg 1970-01-01 03:00:00.000000000 +0300 +++ oxygen-transparent/decoration/maximize.svg 2013-09-23 11:57:07.000000000 +0400 @@ -0,0 +1,1593 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + diff -ruN oxygen-transparent.orig/decoration/minimize.svg oxygen-transparent/decoration/minimize.svg --- oxygen-transparent.orig/decoration/minimize.svg 1970-01-01 03:00:00.000000000 +0300 +++ oxygen-transparent/decoration/minimize.svg 2013-09-23 11:57:38.000000000 +0400 @@ -0,0 +1,1475 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + diff -ruN oxygen-transparent.orig/decoration/oxygenbutton.cpp oxygen-transparent/decoration/oxygenbutton.cpp --- oxygen-transparent.orig/decoration/oxygenbutton.cpp 2013-09-23 19:15:41.000000000 +0400 +++ oxygen-transparent/decoration/oxygenbutton.cpp 2013-09-23 19:16:27.325191477 +0400 @@ -31,8 +31,10 @@ #include +#include #include #include +#include #include #include @@ -336,6 +338,7 @@ painter->save(); painter->setWindow( 0, 0, 22, 22 ); + QSvgRenderer but_icon; switch(_type) { @@ -359,35 +362,19 @@ break; case ButtonMin: - painter->drawLine(QPointF( 7.5, 9.5), QPointF(10.5,12.5)); - painter->drawLine(QPointF(10.5,12.5), QPointF(13.5, 9.5)); + but_icon.load(QString("/usr/share/apps/desktoptheme/oxygen/oxytrans/minimize.svg")); + but_icon.render(painter, QRectF(2.0,1.7,16.5,16.5)); break; case ButtonMax: - switch(_client.maximizeMode()) - { - case Client::MaximizeRestore: - case Client::MaximizeVertical: - case Client::MaximizeHorizontal: - painter->drawLine(QPointF( 7.5,11.5), QPointF(10.5, 8.5)); - painter->drawLine(QPointF(10.5, 8.5), QPointF(13.5,11.5)); - break; - - case Client::MaximizeFull: - { - painter->translate(1.5, 1.5); - QPoint points[4] = {QPoint(9, 6), QPoint(12, 9), QPoint(9, 12), QPoint(6, 9)}; - painter->drawPolygon(points, 4); - painter->translate(-1.5, -1.5); - break; - } - } + but_icon.load(QString("/usr/share/apps/desktoptheme/oxygen/oxytrans/maximize.svg")); + but_icon.render(painter, QRectF(2.0,1.7,16.5,16.5)); break; case ButtonItemClose: case ButtonClose: - painter->drawLine(QPointF( 7.5,7.5), QPointF(13.5,13.5)); - painter->drawLine(QPointF(13.5,7.5), QPointF( 7.5,13.5)); + but_icon.load(QString("/usr/share/apps/desktoptheme/oxygen/oxytrans/close.svg")); + but_icon.render(painter, QRectF(2.0,1.7,16.5,16.5)); break; case ButtonAbove: