[SF#1058] Allow bigger sizes of icons and thumbnails.
authorAndriy Grytsenko <andrej@rep.kiev.ua>
Sun, 16 Dec 2018 22:21:39 +0000 (00:21 +0200)
committerAndriy Grytsenko <andrej@rep.kiev.ua>
Sun, 16 Dec 2018 22:21:39 +0000 (00:21 +0200)
256*256 appears to be small on hi-res displays.

NEWS
data/ui/pref.glade
src/main-win.c

diff --git a/NEWS b/NEWS
index f4e698a..d2e6caa 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,11 @@
+Changes on 1.3.1 since 1.3.0:
+
+* Allowed bigger sizes of icons and thumbnails as 256*256 appears to be small
+    on hi-res displays.
+
+
+Changes on 1.3.0 since 1.2.5:
+
 * Fixed potential access violation, use runtime user dir instead of tmp dir
     for single instance socket.
 
index df2dcfd..9206943 100644 (file)
     </columns>
     <data>
       <row>
+        <col id="0">256x256</col>
+        <col id="1">256</col>
+      </row>
+      <row>
+        <col id="0">192x192</col>
+        <col id="1">192</col>
+      </row>
+      <row>
+        <col id="0">160x160</col>
+        <col id="1">160</col>
+      </row>
+      <row>
+        <col id="0">128x128</col>
+        <col id="1">128</col>
+      </row>
+      <row>
         <col id="0">96x96</col>
         <col id="1">96</col>
       </row>
@@ -2528,6 +2544,22 @@ If unchecked then use Startup Notify only if that is defined for application.</p
     </columns>
     <data>
       <row>
+        <col id="0">128x128</col>
+        <col id="1">128</col>
+      </row>
+      <row>
+        <col id="0">96x96</col>
+        <col id="1">96</col>
+      </row>
+      <row>
+        <col id="0">80x80</col>
+        <col id="1">80</col>
+      </row>
+      <row>
+        <col id="0">64x64</col>
+        <col id="1">64</col>
+      </row>
+      <row>
         <col id="0">48x48</col>
         <col id="1">48</col>
       </row>
@@ -2566,12 +2598,20 @@ If unchecked then use Startup Notify only if that is defined for application.</p
     </columns>
     <data>
       <row>
-        <col id="0">256x256</col>
-        <col id="1">256</col>
+        <col id="0">512x512</col>
+        <col id="1">512</col>
+      </row>
+      <row>
+        <col id="0">400x400</col>
+        <col id="1">400</col>
       </row>
       <row>
-        <col id="0">224x224</col>
-        <col id="1">224</col>
+        <col id="0">320x320</col>
+        <col id="1">320</col>
+      </row>
+      <row>
+        <col id="0">256x256</col>
+        <col id="1">256</col>
       </row>
       <row>
         <col id="0">192x192</col>
index 574a7d2..3907dba 100644 (file)
@@ -2,7 +2,7 @@
  *      main-win.c
  *
  *      Copyright 2009 - 2012 Hong Jen Yee (PCMan) <pcman.tw@gmail.com>
- *      Copyright 2012-2015 Andriy Grytsenko (LStranger) <andrej@rep.kiev.ua>
+ *      Copyright 2012-2018 Andriy Grytsenko (LStranger) <andrej@rep.kiev.ua>
  *
  *      This program is free software; you can redistribute it and/or modify
  *      it under the terms of the GNU General Public License as published by
@@ -1924,21 +1924,23 @@ static guint icon_sizes[] =
 {
     8,
     10,
-    12,
+    12, /* 12.6 */
     16,
     20,
-    24,
-    32, /* 30 would be better */
-    40, /* 38 */
-    48,
-    64, /* 60 */
-    80, /* 76 */
-    96,
-    128, /* 120 */
-    160, /* 152 */
-    192,
-    224,
-    256
+    24, /* 25.2 */
+    32,
+    40,
+    48, /* 50.4 */
+    64,
+    80,
+    96, /* 101 */
+    128, /* 127 */
+    160,
+    192, /* 202 */
+    256, /* 254 */
+    320,
+    400, /* 403 */
+    512
 };
 
 static void on_size_decrement(GtkAction *act, FmMainWin *win)
@@ -1964,7 +1966,7 @@ static void on_size_decrement(GtkAction *act, FmMainWin *win)
         break;
     case FM_FV_THUMBNAIL_VIEW:
         size = fm_config->thumbnail_size;
-        if (size < 80)
+        if (size < 64)
             return;
         break;
     default:
@@ -2006,18 +2008,18 @@ static void on_size_increment(GtkAction *act, FmMainWin *win)
     {
     case FM_FV_ICON_VIEW:
         size = fm_config->big_icon_size;
-        if (size > 80)
+        if (size > 200)
             return;
         break;
     case FM_FV_COMPACT_VIEW:
     case FM_FV_LIST_VIEW:
         size = fm_config->small_icon_size;
-        if (size > 40)
+        if (size > 100)
             return;
         break;
     case FM_FV_THUMBNAIL_VIEW:
         size = fm_config->thumbnail_size;
-        if (size > 224)
+        if (size > 400)
             return;
         break;
     default: