diff --git a/README.md b/README.md
index b84b6a6..87ac268 100644
--- a/README.md
+++ b/README.md
@@ -108,7 +108,3 @@ To install the widget use one of these methods:
-
-## Credits
-
-Album cover placeholder [photo](https://unsplash.com/photos/black-vinyl-record-on-white-background-aZVuQWEtX5Y) by [Brett Jordan](https://unsplash.com/@brett_jordan) on [Unsplash](https://unsplash.com/)
diff --git a/src/contents/config/main.xml b/src/contents/config/main.xml
index b115093..2e469a6 100644
--- a/src/contents/config/main.xml
+++ b/src/contents/config/main.xml
@@ -54,10 +54,7 @@
1
-
- false
-
-
+
diff --git a/src/contents/images/vinyl-disk.jpg b/src/contents/images/vinyl-disk.jpg
deleted file mode 100644
index 58c5987..0000000
Binary files a/src/contents/images/vinyl-disk.jpg and /dev/null differ
diff --git a/src/contents/ui/ConfigGeneral.qml b/src/contents/ui/ConfigGeneral.qml
index b1be3a2..9215ed4 100644
--- a/src/contents/ui/ConfigGeneral.qml
+++ b/src/contents/ui/ConfigGeneral.qml
@@ -29,8 +29,7 @@ KCM.SimpleKCM {
property alias cfg_customFont: fontDialog.fontChosen
property alias cfg_volumeStep: volumeStepSpinbox.value
property alias cfg_desktopWidgetBg: desktopWidgetBackgroundRadio.value
- property alias cfg_useCustomAlbumPlaceholder: customAlbumPlaceholderCheckbox.checked
- property alias cfg_customAlbumPlaceholder: customAlbumPlaceholderDialog.value
+ property alias cfg_albumPlaceholder: albumPlaceholderDialog.value
Kirigami.FormLayout {
@@ -214,30 +213,25 @@ KCM.SimpleKCM {
}
RowLayout {
- Kirigami.FormData.label: i18n("Custom album placeholder:")
-
- CheckBox {
- id: customAlbumPlaceholderCheckbox
- }
+ Kirigami.FormData.label: i18n("Album placeholder:")
Button {
text: i18n("Choose…")
icon.name: "settings-configure"
- enabled: customAlbumPlaceholderCheckbox.checked
onClicked: {
- customAlbumPlaceholderDialog.open()
+ albumPlaceholderDialog.open()
}
}
}
ColumnLayout {
anchors.horizontalCenter: parent.horizontalCenter
- visible: customAlbumPlaceholderCheckbox.checked && customAlbumPlaceholderDialog.value
+ visible: albumPlaceholderDialog.value
Image {
Layout.preferredWidth: 200
Layout.preferredHeight: 200
Layout.alignment: Qt.AlignHCenter
- source: customAlbumPlaceholderDialog.value
+ source: albumPlaceholderDialog.value
}
}
@@ -311,7 +305,7 @@ KCM.SimpleKCM {
}
QtDialogs.FileDialog {
- id: customAlbumPlaceholderDialog
+ id: albumPlaceholderDialog
property var value: null
onAccepted: value = selectedFile
}
diff --git a/src/contents/ui/main.qml b/src/contents/ui/main.qml
index c35babc..6ab25c1 100644
--- a/src/contents/ui/main.qml
+++ b/src/contents/ui/main.qml
@@ -214,15 +214,8 @@ PlasmoidItem {
height: width
Image {
- readonly property string albumPlaceholder: {
- if (plasmoid.configuration.useCustomAlbumPlaceholder) {
- return plasmoid.configuration.customAlbumPlaceholder
- }
- return '../images/vinyl-disk.jpg'
- }
-
anchors.fill: parent
- source: player.artUrl || albumPlaceholder
+ source: player.artUrl || plasmoid.configuration.albumPlaceholder
fillMode: Image.PreserveAspectFit
MouseArea {
id: coverMouseArea