Received: from knopi.disroot.org (knopi.disroot.org [178.21.23.139]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 1E18C780DD8 for <alpine-aports@lists.alpinelinux.org>; Mon, 16 May 2022 15:40:40 +0000 (UTC) Received: by disroot.org (Postfix, from userid 107) id 8DC8242F5C; Mon, 16 May 2022 17:39:45 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 4DB7442F98; Mon, 16 May 2022 17:34:44 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with UTF8SMTP id apvqYVreslma; Mon, 16 May 2022 17:34:42 +0200 (CEST) From: Eloi Torrents <eloitor@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1652714616; bh=hM8Gpi5+5/sExy1ynXVxeHkDp3B+tTdhsdpWEHaVx8Y=; h=From:To:Cc:Subject:Date; b=GpADydTQgAqbu7Y4OZ0j16ng92JCNn+bsKTERS5pPLgE8+TCdhnt6nNRk4KaOgNo0 lpJBCwhteKXGFeI4s74H761Iruhnp62l9OO+EhUMuJ3dkA8yP7PuJYHMSYymzu9q6W m104HLAFdzi2J2wqZxQCt6qIIHjpg32loUVHChsaXbL3C9uccn9BDjW9q9aMVuxmyw MTdwi5ndIokukwWQAyhVk/tvDe9U3KAOq/CbiKY7iN2ThhgpO95EgkrlurrBj2aaZ3 grBnVLErv4YX7hq+jWw3M1vxthEWYJVWKAUD1R7ZticVNYe1bO+lZf+Fty2OHk+FsC zLONE5t1OVtOA== To: alpine-aports@lists.alpinelinux.org Cc: Eloi Torrents <eloitor@disroot.org> Subject: [PATCH] dummy Date: Mon, 16 May 2022 17:21:18 +0200 Message-Id: <20220516152118.24476-1-eloitor@disroot.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit --- community/telegram-desktop/APKBUILD | 6 +++++- community/telegram-desktop/more-scale.patch | 16 ++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 community/telegram-desktop/more-scale.patch diff --git a/community/telegram-desktop/APKBUILD b/community/telegram-desktop/APKBUILD index 3e43834e39..e94356a814 100644 --- a/community/telegram-desktop/APKBUILD +++ b/community/telegram-desktop/APKBUILD @@ -2,13 +2,14 @@ # Contributor: Nulo <alpine@nulo.in> # Contributor: Donoban <donoban@riseup.net> # Contributor: psykose <alice@ayaya.dev> +# Contributor: Eloi <eloitor@disroot.org> # Maintainer: Nulo <alpine@nulo.in> pkgname=telegram-desktop # NOTE: Keep in mind that seemingly normal releases may be pre-releases. # Check GitHub to make sure: # https://github.com/telegramdesktop/tdesktop/releases pkgver=3.7.3 -pkgrel=0 +pkgrel=1 pkgdesc="Telegram Desktop messaging app" options="!check" # no test suite url="https://desktop.telegram.org/" @@ -70,11 +71,13 @@ makedepends=" # small-sizes.patch is for postmarketOS. It makes UI elements fit in small # screens. +# more-scale.patch adds two scale points below the default # telegram-desktop also assumes glibc, musl.patch fixes that. source=" https://github.com/telegramdesktop/tdesktop/releases/download/v$pkgver/tdesktop-$pkgver-full.tar.gz small-sizes.patch + more-scale.patch add-libvpx.patch musl.patch " @@ -100,6 +103,7 @@ package() { sha512sums=" f35052e514d520796296fa88e3affa1734973164e4b72f0120b78fc586de98a15e64a4e25f436ee4c2c2c0e100c64b3dbd2d96401dff19c382a6ad1fde88e859 tdesktop-3.7.3-full.tar.gz 3d480d712c94d720ff68bd88bc2edd007581c24cb43b76801af736fa4dff9610d154a7d2128634d18e910d058228d337f17aaf51fb10a2e93e0a9c52558ead1a small-sizes.patch +d32880f510c6510ffeffb0d4609327f00aceba889674e8a4b124568a563cce588d057003df14f0278c4311900416d698028c1229312f36127fc9d573ed3637f1 more-scale.patch c6b77a52547dc45f91f89cdd014c09fe318c49d34e88c4093f206b42ea3e61781a9447dbb4096424a845a519e101242bcac789272e8815a04c1be908cd304c37 add-libvpx.patch e86df3cbf09f11e9fd49c73a78da1ea385b23dd90bbc271fb858d25035fd9c8ad14985ca64b39e87c09c556c14aef9c6ec83931515e32bbe020bcdbf389cc39d musl.patch " diff --git a/community/telegram-desktop/more-scale.patch b/community/telegram-desktop/more-scale.patch new file mode 100644 index 0000000000..9422e3cb0b --- /dev/null +++ b/community/telegram-desktop/more-scale.patch @@ -0,0 +1,16 @@ +diff --git a/Telegram/SourceFiles/settings/settings_main.cpp b/Telegram/SourceFiles/settings/settings_main.cpp +index a40cb6f21..3b5dd885d 100644 +--- a/Telegram/SourceFiles/settings/settings_main.cpp ++++ b/Telegram/SourceFiles/settings/settings_main.cpp +@@ -193,8 +193,8 @@ void SetupInterfaceScale( + + static const auto ScaleValues = [&] { + auto values = (cIntRetinaFactor() > 1) +- ? std::vector<int>{ 100, 110, 120, 130, 140, 150 } +- : std::vector<int>{ 100, 125, 150, 200, 250, 300 }; ++ ? std::vector<int>{ 80, 90, 100, 110, 120, 130, 140, 150 } ++ : std::vector<int>{ 50, 75, 100, 125, 150, 200, 250, 300 }; + if (cConfigScale() == style::kScaleAuto) { + return values; + } + -- 2.35.3