From 7453c60052c5010924df84c4c2396f7c89e6ecbd Mon Sep 17 00:00:00 2001 From: Sebastian Wolf Date: Thu, 7 Jan 2021 21:52:26 +0100 Subject: [PATCH] Add sourceSize to pin icon --- qml/components/PhotoTextsListItem.qml | 1 + qml/pages/AboutPage.qml | 2 +- rpm/harbour-fernschreiber.spec | 4 ++-- rpm/harbour-fernschreiber.yaml | 4 ++-- src/tdlibwrapper.cpp | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/qml/components/PhotoTextsListItem.qml b/qml/components/PhotoTextsListItem.qml index 7aabfaa..1be2fdf 100644 --- a/qml/components/PhotoTextsListItem.qml +++ b/qml/components/PhotoTextsListItem.qml @@ -64,6 +64,7 @@ ListItem { source: "../../images/icon-s-pin.svg" height: Theme.fontSizeSmall width: Theme.fontSizeSmall + sourceSize: Qt.size(Theme.iconSizeSmall, Theme.iconSizeSmall) anchors.centerIn: chatPinnedBackground visible: chatListViewItem.isPinned } diff --git a/qml/pages/AboutPage.qml b/qml/pages/AboutPage.qml index 59a3a4d..87af291 100644 --- a/qml/pages/AboutPage.qml +++ b/qml/pages/AboutPage.qml @@ -58,7 +58,7 @@ Page { } Label { - text: "Fernschreiber 0.6.1" + text: "Fernschreiber 0.7" horizontalAlignment: Text.AlignHCenter font.pixelSize: Theme.fontSizeExtraLarge anchors { diff --git a/rpm/harbour-fernschreiber.spec b/rpm/harbour-fernschreiber.spec index 759cc3b..d1f9180 100644 --- a/rpm/harbour-fernschreiber.spec +++ b/rpm/harbour-fernschreiber.spec @@ -11,8 +11,8 @@ Name: harbour-fernschreiber # << macros Summary: Fernschreiber is a Telegram client for Sailfish OS -Version: 0.6.1 -Release: 3 +Version: 0.7 +Release: 1 Group: Qt/Qt License: LICENSE URL: http://werkwolf.eu/ diff --git a/rpm/harbour-fernschreiber.yaml b/rpm/harbour-fernschreiber.yaml index ec0ce64..935a55c 100644 --- a/rpm/harbour-fernschreiber.yaml +++ b/rpm/harbour-fernschreiber.yaml @@ -1,7 +1,7 @@ Name: harbour-fernschreiber Summary: Fernschreiber is a Telegram client for Sailfish OS -Version: 0.6.1 -Release: 3 +Version: 0.7 +Release: 1 # The contents of the Group field should be one of the groups listed here: # https://github.com/mer-tools/spectacle/blob/master/data/GROUPS Group: Qt/Qt diff --git a/src/tdlibwrapper.cpp b/src/tdlibwrapper.cpp index 6d2a9a3..f3e3329 100644 --- a/src/tdlibwrapper.cpp +++ b/src/tdlibwrapper.cpp @@ -1468,7 +1468,7 @@ void TDLibWrapper::setInitialParameters() QSettings hardwareSettings("/etc/hw-release", QSettings::NativeFormat); initialParameters.insert("device_model", hardwareSettings.value("NAME", "Unknown Mobile Device").toString()); initialParameters.insert("system_version", QSysInfo::prettyProductName()); - initialParameters.insert("application_version", "0.6.1"); + initialParameters.insert("application_version", "0.7"); initialParameters.insert("enable_storage_optimizer", appSettings->storageOptimizer()); // initialParameters.insert("use_test_dc", true); requestObject.insert("parameters", initialParameters);