49 lines
1.5 KiB
QML
49 lines
1.5 KiB
QML
// SPDX-FileCopyrightText: 2020 George Florea Bănuș <georgefb899@gmail.com>
|
|
// SPDX-FileCopyrightText: 2026 Tri Vo Khac
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
import org.kde.kirigami as Kirigami
|
|
import org.kde.ki18n
|
|
|
|
SettingsBasePage {
|
|
id: root
|
|
|
|
Kirigami.FormLayout {
|
|
|
|
RowLayout {
|
|
spacing: Kirigami.Units.smallSpacing
|
|
Kirigami.FormData.label: KI18n.i18nc("@label:spinbox", "Font size")
|
|
Kirigami.FormData.buddyFor: fontSizeSpin
|
|
SpinBox {
|
|
id: fontSizeSpin
|
|
from: 20
|
|
to: 150
|
|
stepSize: 2
|
|
value: QtPotatoSettings.subtitleFontSize
|
|
onValueModified: {
|
|
QtPotatoSettings.subtitleFontSize = value
|
|
QtPotatoSettings.save()
|
|
}
|
|
}
|
|
|
|
ToolTipButton {
|
|
toolTipText: KI18n.i18nc("@info:tooltip", "Font size and outline apply to translated and plain-text subtitles. Styled subtitles (ASS) keep the look they were made with. The font itself comes from sub-font in mpv.conf.")
|
|
}
|
|
}
|
|
|
|
SpinBox {
|
|
Kirigami.FormData.label: KI18n.i18nc("@label:spinbox", "Outline size")
|
|
from: 0
|
|
to: 10
|
|
value: QtPotatoSettings.subtitleOutlineSize
|
|
onValueModified: {
|
|
QtPotatoSettings.subtitleOutlineSize = value
|
|
QtPotatoSettings.save()
|
|
}
|
|
}
|
|
}
|
|
}
|