Commit 3c02911e authored by Newbyte's avatar Newbyte

community/telegram-desktop: allow shorter screens

parent 83fcd54f
Pipeline #74087 failed with stages
in 14 minutes and 33 seconds
......@@ -49,7 +49,7 @@ makedepends="
source="
https://github.com/telegramdesktop/tdesktop/releases/download/v$pkgver/tdesktop-$pkgver-full.tar.gz
remove-glibc.patch
small-sizes.patch
smaller-sizes.patch
"
builddir="$srcdir/tdesktop-$pkgver-full"
......@@ -84,4 +84,4 @@ package() {
sha512sums="b6452c39ea1b1b794c61ec2fc700356c9ee314250d73b895d297ad66602a93676d3cf74d695ac53965719ddb54da9e290f4f638bbf2e0fb21fec8995b6788a1c tdesktop-2.4.11-full.tar.gz
b276001d1616cb5dbacbcd18510d0bd4b9d9f7b7a895b05fb6329866f5bdb7b69f536f7d7914436c8ea975c4f7951a2bb3efd9209c38df115b1d85e0ed099b04 remove-glibc.patch
3d1b8e6f870fc780f9ae8bc6a67eb676a5c5f686dc79e84cd6d64cb3cfafb1be626d0cc3960ffc67cecca21568764a0137c7303a89045fa59f91ba4eb5d8caed small-sizes.patch"
6e55c6fdcee8971d277a97ebda5258537144dca84a702dd66a017faa05fda9bc4a6c2396fc13e91c78bd7fb5aa161ee830f7fb53e95a1b73d0e659f4c2a7e29a smaller-sizes.patch"
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
On phones like samsung-a5ulte the default dimensions are not small enough
to allow Telegram Desktop to properly fit the screen, so patch them to
be smaller. Upstream says no because this makes some dialogues display
incorrectly.
---
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
index 36911968c..d79dec4f9 100644
--- a/Telegram/SourceFiles/settings/settings_main.cpp
+++ b/Telegram/SourceFiles/settings/settings_main.cpp
@@ -100,7 +100,7 @@ void SetupSections(
@@ -163,7 +163,7 @@ void SetupSections(
}
bool HasInterfaceScale() {
......@@ -22,19 +17,21 @@ index 18552902b..c2d8e7a4d 100644
void SetupInterfaceScale(
diff --git a/Telegram/SourceFiles/window/window.style b/Telegram/SourceFiles/window/window.style
index b3cd3ae83..29bf8bc3c 100644
index 3b3577e08..ba871ba64 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";
@@ -10,8 +10,8 @@ using "ui/widgets/widgets.style";
using "ui/chat/chat.style";
using "boxes/boxes.style"; // UserpicButton
-windowMinWidth: 380px;
-windowMinHeight: 480px;
+windowMinWidth: 360px;
windowMinHeight: 480px;
+windowMinHeight: 360px;
windowDefaultWidth: 800px;
windowDefaultHeight: 600px;
@@ -19,7 +19,7 @@ windowShadowShift: 1px;
windowBigDefaultWidth: 1024px;
@@ -20,7 +20,7 @@ windowResizeArea: 4px;
columnMinimalWidthLeft: 260px;
columnMaximalWidthLeft: 540px;
......@@ -43,6 +40,3 @@ index b3cd3ae83..29bf8bc3c 100644
columnDesiredWidthMain: 512px;
columnMinimalWidthThird: 292px;
columnMaximalWidthThird: 392px;
--
2.24.1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment