aboutsummaryrefslogblamecommitdiffstats
path: root/community/telegram-desktop/small-sizes.patch
blob: 48473996c1b173bc19e09123e734550e8486b470 (plain) (tree)















































                                                                                                              
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