TimerCard: fix button alignment

This commit is contained in:
Ly-sec
2025-12-28 06:53:48 +01:00
parent 4234783258
commit 13464ce69b
+3 -2
View File
@@ -474,12 +474,11 @@ NBox {
NTabBar {
id: modeTabBar
Layout.fillWidth: true
Layout.preferredWidth: buttonRow.width
Layout.preferredHeight: startButton.implicitHeight
implicitHeight: startButton.implicitHeight
Layout.alignment: Qt.AlignHCenter
visible: totalSeconds === 0
currentIndex: isStopwatchMode ? 1 : 0
margins: 0
onCurrentIndexChanged: {
const newMode = currentIndex === 1;
if (newMode !== isStopwatchMode) {
@@ -515,6 +514,7 @@ NBox {
NTabButton {
Layout.fillWidth: true
Layout.preferredWidth: 0
text: I18n.tr("calendar.timer.countdown")
tabIndex: 0
checked: !isStopwatchMode
@@ -523,6 +523,7 @@ NBox {
NTabButton {
Layout.fillWidth: true
Layout.preferredWidth: 0
text: I18n.tr("calendar.timer.stopwatch")
tabIndex: 1
checked: isStopwatchMode