2026-01-17 21:27:31 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
|
import QtQuick.Controls 2.15
|
|
|
|
|
import QtQuick.Layouts 1.15
|
|
|
|
|
import org.kde.kirigami 2.19 as Kirigami
|
|
|
|
|
|
|
|
|
|
Kirigami.FormLayout {
|
|
|
|
|
id: page
|
|
|
|
|
|
|
|
|
|
property alias cfg_showWindowPreviews: showWindowPreviews.checked
|
|
|
|
|
property alias cfg_showWindowIcons: showWindowIcons.checked
|
|
|
|
|
property alias cfg_previewSize: previewSize.value
|
|
|
|
|
|
|
|
|
|
CheckBox {
|
|
|
|
|
id: showWindowPreviews
|
|
|
|
|
Kirigami.FormData.label: i18n("Window Previews:")
|
|
|
|
|
text: i18n("Show window outlines in popup")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CheckBox {
|
|
|
|
|
id: showWindowIcons
|
|
|
|
|
Kirigami.FormData.label: i18n("Window Icons:")
|
|
|
|
|
text: i18n("Show application icons on windows")
|
|
|
|
|
enabled: showWindowPreviews.checked
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SpinBox {
|
|
|
|
|
id: previewSize
|
|
|
|
|
Kirigami.FormData.label: i18n("Preview Size:")
|
Add i18n, delete button, resize handle and improved context menu
Features added:
- Internationalization (i18n) with 6 languages: English, Spanish, Chinese, French, German, Portuguese
- Auto-detects system language via Qt.locale()
- Delete button appears on hover (top-right, 25% size, max 44px)
- Resize handle in bottom-right corner to adjust preview size
- Enhanced context menu with: Switch to, Rename, Delete, New Desktop
- Updated config schema: previewSize range 80-200px, default 130px
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-17 21:53:50 +00:00
|
|
|
from: 80
|
|
|
|
|
to: 200
|
2026-01-17 21:27:31 +00:00
|
|
|
stepSize: 10
|
|
|
|
|
|
|
|
|
|
textFromValue: function(value) {
|
|
|
|
|
return value + " px"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|