aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorDanct12 <danct12@disroot.org>2020-02-13 09:20:05 +0700
committerLeo <thinkabit.ukim@gmail.com>2020-02-13 06:33:17 -0300
commit87d3592d3eeab2d7e981970c03a472c7c719fd67 (patch)
tree8e41b4e31a48be64762b8007a5235fb0938d5203 /testing
parent940177fbe416124aa9276a0e28de0c04e477374c (diff)
downloadaports-87d3592d3eeab2d7e981970c03a472c7c719fd67.tar.gz
aports-87d3592d3eeab2d7e981970c03a472c7c719fd67.tar.bz2
aports-87d3592d3eeab2d7e981970c03a472c7c719fd67.tar.xz
testing/telegram-desktop: support for small-sized devices
Signed-off-by: Danct12 <danct12@disroot.org>
Diffstat (limited to 'testing')
-rw-r--r--testing/telegram-desktop/APKBUILD6
-rw-r--r--testing/telegram-desktop/small-sizes.patch48
2 files changed, 52 insertions, 2 deletions
diff --git a/testing/telegram-desktop/APKBUILD b/testing/telegram-desktop/APKBUILD
index c022cbb01c..60e0331b7a 100644
--- a/testing/telegram-desktop/APKBUILD
+++ b/testing/telegram-desktop/APKBUILD
@@ -2,7 +2,7 @@
# Contributor: Leo <thinkabit.ukim@gmail.com>
pkgname=telegram-desktop
pkgver=1.9.13
-pkgrel=0
+pkgrel=1
pkgdesc="Telegram Desktop messaging app"
options="!check" # Requires Catch2 to be packaged.
url="https://desktop.telegram.org/"
@@ -42,6 +42,7 @@ makedepends="
source="
https://github.com/telegramdesktop/tdesktop/releases/download/v$pkgver/tdesktop-$pkgver-full.tar.gz
qt-plugin-path.patch
+ small-sizes.patch
"
builddir="$srcdir/tdesktop-$pkgver-full"
@@ -91,4 +92,5 @@ package() {
}
sha512sums="995face8a2ffb54f9f31aaa8d5a26421f4915e73360945553b6fa4e4b02431ca83ec1e72d6d2ce77f5b9daa39892859c88f7ea53c3ddbeec2cb37f27451878d2 tdesktop-1.9.13-full.tar.gz
-183767e9a291dd605797cdc46382d8cb6a73a342348a40df7d52864ea27b3aa8709808cd51c46f5e611c247229ed336cb569bed1185c4c97b03171b56bbe5653 qt-plugin-path.patch"
+183767e9a291dd605797cdc46382d8cb6a73a342348a40df7d52864ea27b3aa8709808cd51c46f5e611c247229ed336cb569bed1185c4c97b03171b56bbe5653 qt-plugin-path.patch
+3d1b8e6f870fc780f9ae8bc6a67eb676a5c5f686dc79e84cd6d64cb3cfafb1be626d0cc3960ffc67cecca21568764a0137c7303a89045fa59f91ba4eb5d8caed small-sizes.patch"
diff --git a/testing/telegram-desktop/small-sizes.patch b/testing/telegram-desktop/small-sizes.patch
new file mode 100644
index 0000000000..48473996c1
--- /dev/null
+++ b/testing/telegram-desktop/small-sizes.patch
@@ -0,0 +1,48 @@
+From 675b5d645221bae9d9ad2cc7dd62d30a3b0f95c3 Mon Sep 17 00:00:00 2001
+From: Julian Sparber <julian@sparber.net>
+Date: Thu, 14 Nov 2019 17:36:33 +0100
+Subject: [PATCH] Make it work on small sizes
+
+---
+ Telegram/SourceFiles/settings/settings_main.cpp | 2 +-
+ Telegram/SourceFiles/window/window.style | 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/Telegram/SourceFiles/settings/settings_main.cpp b/Telegram/SourceFiles/settings/settings_main.cpp
+index 18552902b..c2d8e7a4d 100644
+--- a/Telegram/SourceFiles/settings/settings_main.cpp
++++ b/Telegram/SourceFiles/settings/settings_main.cpp
+@@ -100,7 +100,7 @@ void SetupSections(
+ }
+
+ bool HasInterfaceScale() {
+- return true;
++ return false;
+ }
+
+ void SetupInterfaceScale(
+diff --git a/Telegram/SourceFiles/window/window.style b/Telegram/SourceFiles/window/window.style
+index b3cd3ae83..29bf8bc3c 100644
+--- a/Telegram/SourceFiles/window/window.style
++++ b/Telegram/SourceFiles/window/window.style
+@@ -10,7 +10,7 @@ using "basic.style";
+ using "ui/widgets/widgets.style";
+ using "history/history.style";
+
+-windowMinWidth: 380px;
++windowMinWidth: 360px;
+ windowMinHeight: 480px;
+ windowDefaultWidth: 800px;
+ windowDefaultHeight: 600px;
+@@ -19,7 +19,7 @@ windowShadowShift: 1px;
+
+ columnMinimalWidthLeft: 260px;
+ columnMaximalWidthLeft: 540px;
+-columnMinimalWidthMain: 380px;
++columnMinimalWidthMain: 360px;
+ columnDesiredWidthMain: 512px;
+ columnMinimalWidthThird: 292px;
+ columnMaximalWidthThird: 392px;
+--
+2.24.1
+