Skip to content

Commit b07b284

Browse files
committed
next and previous month sign changed. button made wider
1 parent 0ca9d7b commit b07b284

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

qml/NavigationBar.qml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,13 @@ RowLayout {
2323

2424
component NavButton: Button {
2525
font.pixelSize: 13
26-
padding: 8
26+
topPadding: 12
27+
bottomPadding: 12
28+
leftPadding: 10
29+
rightPadding: 10
30+
2731
background: Rectangle {
28-
radius: 8
32+
radius: 12
2933
color: parent.hovered && theme ? theme.tertiaryBg : (theme ? theme.secondaryBg : "white")
3034
border.color: theme ? theme.borderColor : "grey"
3135
border.width: 1
@@ -36,20 +40,22 @@ RowLayout {
3640
color: theme ? theme.primaryText : "black"
3741
horizontalAlignment: Text.AlignHCenter
3842
verticalAlignment: Text.AlignVCenter
39-
anchors.fill: parent
4043
}
4144
}
4245

4346
component CustomTabButton: TabButton {
44-
width: implicitWidth + 20
4547
font.pixelSize: 13
48+
topPadding: 12
49+
bottomPadding: 12
50+
leftPadding: 10
51+
rightPadding: 10
52+
4653
contentItem: Text {
4754
text: parent.text
4855
font: parent.font
4956
color: parent.checked && theme ? theme.accentText : (parent.hovered && theme ? theme.primaryText : (theme ? theme.secondaryText : "grey"))
5057
horizontalAlignment: Text.AlignHCenter
5158
verticalAlignment: Text.AlignVCenter
52-
anchors.fill: parent
5359
}
5460
background: Rectangle {
5561
radius: 8
@@ -62,7 +68,7 @@ RowLayout {
6268
NavButton {
6369
property string prevBsMonth: (calendarLogic && calendarLogic.prevMonthName) || ""
6470
property string prevAdMonth: (calendarLogic && calendarLogic.prevAdMonthName) || ""
65-
text: " " + (tabBar.currentIndex === 0 ? prevBsMonth : prevAdMonth)
71+
text: "< " + (tabBar.currentIndex === 0 ? prevBsMonth : prevAdMonth)
6672

6773
onClicked: {
6874
if (tabBar.currentIndex === 0) {
@@ -71,7 +77,7 @@ RowLayout {
7177
calendarLogic.navigateAdMonth(-1)
7278
}
7379
}
74-
visible: text.trim() !== ""
80+
visible: text.trim() !== "< "
7581
}
7682

7783
Item { Layout.fillWidth: true }
@@ -102,7 +108,7 @@ RowLayout {
102108
NavButton {
103109
property string nextBsMonth: (calendarLogic && calendarLogic.nextMonthName) || ""
104110
property string nextAdMonth: (calendarLogic && calendarLogic.nextAdMonthName) || ""
105-
text: (tabBar.currentIndex === 0 ? nextBsMonth : nextAdMonth) + " "
111+
text: (tabBar.currentIndex === 0 ? nextBsMonth : nextAdMonth) + " >"
106112

107113
onClicked: {
108114
if (tabBar.currentIndex === 0) {
@@ -111,6 +117,6 @@ RowLayout {
111117
calendarLogic.navigateAdMonth(1)
112118
}
113119
}
114-
visible: text.trim() !== ""
120+
visible: text.trim() !== " >"
115121
}
116122
}

0 commit comments

Comments
 (0)