Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored #29

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ I'll probably maintain it on Github principally for issues/PR but I'll try my be
- GUI Customization is highly experimental, bugs will occur.
- Shadertoy.com imports doesn't work on all shaders, that is because iChannels/Buffers are not fully implemented yet
- Performance may vary depending of your specs, but it's actually not all that resource intensive, depends on the shader too.
- If you modify the shader files and want to see the changes, the KDE Wallpaper QtQuick App itself needs to be restart, I recommend simply to `pkill plasmashell` and restart it.
- If you modify the shader files and want to see the changes, the KDE Wallpaper QtQuick App itself needs to be restart, I recommend to simply do `pkill plasmashell` and restart it with `plasmashell &`.

#### Videos:

Expand Down
45 changes: 45 additions & 0 deletions contents/ui/Components/PlayBtn.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import QtQuick 2.12
import QtQuick.Controls 2.12
import QtQuick.Layouts 1
// Resume/Pause
Item {
id: playBtnRoot
property bool running: true
property bool isPaused: false

// ColumnLayout {
// spacing: units.largeSpacing
// Layout.fillWidth: true


RowLayout {

Label {
width: 100
text: i18n("Pause:")
}
ImageBtn {
width: 32
height: 32
imageUrl: playBtnRoot.isPaused ? "../Resources/play.svg" : "../Resources/pause.svg"
tipText: playBtnRoot.isPaused ? "Resume" : "Pause"
onClicked: {
playBtnRoot.running = isPaused
isPaused = !isPaused;
}
Rectangle {
anchors.fill: parent
color: "transparent"
border.width: parent.containsMouse ? 1 : 0
border.color: "gray"
}
}

Text {
text: playBtnRoot.running ? fpsItem.fps + " fps" : "stopped"
color: "white"
}

}
// }
}
48 changes: 48 additions & 0 deletions contents/ui/Components/Settings.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import QtQuick 2.12
import QtQuick.Layouts 1
import QtQuick.Controls 2.12
import QtQuick.Dialogs 1.3
import Qt.labs.folderlistmodel 2
import QtQuick.Window 2.15
//We need units from it
import org.kde.plasma.core 2.0 as Plasmacore
import org.kde.plasma.wallpapers.image 2.0 as Wallpaper
import org.kde.kquickcontrolsaddons 2.0

Item {
id: settingsRoot
property alias cfg_checkGl3Ver: checkGl3Ver.checked
property alias cfg_checkedSmartPlay: checkedSmartPlay.checked

ColumnLayout {

RowLayout {
Layout.fillHeight: true
Layout.fillWidth: true
Layout.topMargin:30
Text {
width: 100
color: "white"
padding: 5
}
CheckBox {
id: checkGl3Ver
text: i18n("Compatibility mode (GL3 version)")
checked: true
}
}
// TODO: Fullscreen/Busy
RowLayout {
Text {
width: 100
color: "white"
padding: 5
}
CheckBox {
id: checkedSmartPlay
checked: false
text: i18n("Pause the shader when covered by maximized or full-screen windows.")
}
}
}
}
Loading