Skip to content

Commit

Permalink
Changes related to 'What's new' list
Browse files Browse the repository at this point in the history
  • Loading branch information
iiLubos committed Sep 20, 2023
1 parent 1e6be86 commit 1f754ca
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/changelogmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ void ChangelogModel::seeChangelogs( bool all )

// get all the changes
_lastSeen = QDateTime::fromMSecsSinceEpoch( 0 );
_networkManager->get( QNetworkRequest( QUrl( "https://zive.aktuality.sk/rss/najnovsie" ) ) ); // TODO get URL from somewhere
_networkManager->get( QNetworkRequest( QUrl( "https://wishlist.merginmaps.com/rss/changelog.xml" ) ) ); // TODO get URL from somewhere
}


12 changes: 7 additions & 5 deletions app/qml/ChangelogPanel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ Item {
clip: true

background: Rectangle {
color: "white"
color: InputStyle.panelBackgroundWhite
}

header: PanelHeader {
id: header
height: InputStyle.rowHeightHeader
width: parent.width
color: "white"
color: InputStyle.clrPanelMain
rowHeight: InputStyle.rowHeightHeader
titleText: qsTr("Change Log")

Expand Down Expand Up @@ -86,15 +86,16 @@ Item {
onClicked: close()
contentItem: Text { text: "" }
background: Item {}
visible: false
}

ListView {
id: changelogView
width: parent.width
anchors.top: subTitle.bottom
anchors.topMargin: 20
anchors.topMargin: InputStyle.panelMargin
anchors.bottom: parent.bottom
spacing: 3
spacing: InputStyle.panelMargin
clip: true
model: ChangelogModel {}
delegate: MouseArea {
Expand All @@ -104,7 +105,7 @@ Item {
Column {
id: changeItem
width: changelogView.width
Rectangle { width: parent.width; height: 2; color: "lightGray" }
Rectangle { width: parent.width; height: InputStyle.changelogLineWidth; color: InputStyle.changelogLineWColor }
Text { text: date; font.italic: true; wrapMode: Text.WordWrap; width: parent.width; font.pixelSize: InputStyle.fontPixelSizeNormal; color: InputStyle.fontColor }
Text { text: title; font.bold: true; wrapMode: Text.WordWrap; width: parent.width; font.pixelSize: InputStyle.fontPixelSizeBig; color: InputStyle.fontColor }
Text { text: description; wrapMode: Text.WordWrap; width: parent.width; font.pixelSize: InputStyle.fontPixelSizeNormal; color: InputStyle.fontColor }
Expand Down Expand Up @@ -137,6 +138,7 @@ Item {
width: root.width
height: InputStyle.rowHeightHeader
text: qsTr("Show all changes")
visible: false

onClicked: {
changelogView.model.seeChangelogs()
Expand Down
3 changes: 3 additions & 0 deletions app/qml/InputStyle.qml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ QtObject {
property color guidelineColor: mapObjectsColor
property real guidelineWidth: 4 * __dp

property real changelogLineWidth: 2 * __dp
property color changelogLineWColor: "lightGray"

property color mapMarkerColor: mapObjectsColor
property color mapMarkerBorderColor: "white"

Expand Down

1 comment on commit 1f754ca

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS - version 23.09.457111 just submitted!

Please sign in to comment.