[gnome-chess] Window should be a bit narrower before entering narrow mode
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess] Window should be a bit narrower before entering narrow mode
- Date: Fri, 4 Dec 2020 20:56:48 +0000 (UTC)
commit 2345085d9231c7200d331592a58d6481da727e45
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Fri Dec 4 14:51:53 2020 -0600
Window should be a bit narrower before entering narrow mode
I tried 400 first, but then it's no longer possible to smoothly switch
between narrow and desktop mode. 500 is a bit too big to transition into
the clunky inner headerbar, so let's try 450.
src/gnome-chess.vala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index bab90b2..bfbcad5 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -303,9 +303,9 @@ Copyright © 2015–2016 Sahil Sareen""";
if (is_maximized || is_tiled)
return;
window.get_size (out window_width, out window_height);
- if (window_width <= 500 && layout_mode == LayoutMode.NORMAL)
+ if (window_width <= 450 && layout_mode == LayoutMode.NORMAL)
set_layout_mode (LayoutMode.NARROW);
- else if (window_width > 500 && layout_mode == LayoutMode.NARROW)
+ else if (window_width > 450 && layout_mode == LayoutMode.NARROW)
set_layout_mode (LayoutMode.NORMAL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]