fix(ui): address main window KDE HIG findings

This commit was merged in pull request #4.
This commit is contained in:
tri committed 2026-11-07 20:08:28 +07:00
1 parent 0cd03335f7
commit 0bfaf3c9db
8 files changed
+248 -157

No files matched your search

+8 -9
View File
@@ -50,10 +50,10 @@ ApplicationWindow {
visible: true
title: video.mediaTitle || KI18n.i18nc("@title:window", "QtPotato")
width: 1000
height: 600
minimumWidth: 400
minimumHeight: 200
width: Kirigami.Units.gridUnit * 55
height: Kirigami.Units.gridUnit * 33
minimumWidth: Kirigami.Units.gridUnit * 23
minimumHeight: Kirigami.Units.gridUnit * 11
color: Kirigami.Theme.backgroundColor
onVisibilityChanged: visibility => {
@@ -180,7 +180,7 @@ ApplicationWindow {
if (!QtPotatoSettings.playlistToggleWithMouse) {
return
}
const atEdge = playlistPanel.edge === Qt.RightEdge ? x > width - 50 : x < 50
const atEdge = playlistPanel.edge === Qt.RightEdge ? x > width - Kirigami.Units.gridUnit * 3 : x < Kirigami.Units.gridUnit * 3
playlistPanel.state = atEdge ? "visible" : "hidden"
}
onPointerLeft: footerItem.pointerLeft()
@@ -266,11 +266,10 @@ ApplicationWindow {
InputPopup {
id: openUrlPopup
x: Kirigami.Units.largeSpacing
y: Kirigami.Units.largeSpacing
width: Math.min(appWindow.width * 0.9, 600)
title: KI18n.i18nc("@title:window", "Open URL")
preferredWidth: Kirigami.Units.gridUnit * 30
lastText: QtPotatoSettings.lastUrl
placeholderText: "https://"
placeholderText: "https://example.org/video.mkv"
buttonText: KI18n.i18nc("@action:button", "Open")
onSubmitted: text => {
QtPotatoSettings.lastUrl = text