[chronojump] LowHeight uses small images for selector



commit 5a3f06b6ce74517315a3e7d88df4d2d75331185d
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Feb 25 20:08:12 2021 +0100

    LowHeight uses small images for selector

 src/Makefile.am     |  6 ++++++
 src/gui/networks.cs | 27 +++++++++++++--------------
 2 files changed, 19 insertions(+), 14 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index cf27906b..cbdf9013 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -324,6 +324,12 @@ RESOURCES = \
        ../images/selector-force.png,selector-force.png \
        ../images/selector-rt.png,selector-rt.png \
        ../images/selector-multichronopic.png,selector-multichronopic.png \
+       ../images/selector-jumps-small.png,selector-jumps-small.png \
+       ../images/selector-runs-small.png,selector-runs-small.png \
+       ../images/selector-encoder-small.png,selector-encoder-small.png \
+       ../images/selector-force-small.png,selector-force-small.png \
+       ../images/selector-rt-small.png,selector-rt-small.png \
+       ../images/selector-multichronopic-small.png,selector-multichronopic-small.png \
        ../images/mini/force_sensor_elastic.png,mini/force_sensor_elastic.png \
        ../images/mini/force_sensor_not_elastic.png,mini/force_sensor_not_elastic.png \
        ../images/mini/run-encoder-manual.png,mini/run-encoder-manual.png \
diff --git a/src/gui/networks.cs b/src/gui/networks.cs
index 60e51115..5665e67c 100644
--- a/src/gui/networks.cs
+++ b/src/gui/networks.cs
@@ -252,20 +252,19 @@ public partial class ChronoJumpWindow
 
                if(configChronojump.LowHeight)
                {
-                       //these images are 222x176
-                       image_selector_start_jumps.WidthRequest = 111;
-                       image_selector_start_runs.WidthRequest = 111;
-                       image_selector_start_force_sensor.WidthRequest = 111;
-                       image_selector_start_encoder.WidthRequest = 111;
-                       image_selector_start_rt.WidthRequest = 111;
-                       image_selector_start_other.WidthRequest = 111;
-
-                       image_selector_start_jumps.HeightRequest = 88;
-                       image_selector_start_runs.HeightRequest = 88;
-                       image_selector_start_force_sensor.HeightRequest = 88;
-                       image_selector_start_encoder.HeightRequest = 88;
-                       image_selector_start_rt.HeightRequest = 88;
-                       image_selector_start_other.HeightRequest = 88;
+                       Pixbuf pixbuf = new Pixbuf (null, Util.GetImagePath(false) + 
"selector-jumps-small.png");
+                       image_selector_start_jumps.Pixbuf = pixbuf;
+                       pixbuf = new Pixbuf (null, Util.GetImagePath(false) + "selector-runs-small.png");
+                       image_selector_start_runs.Pixbuf = pixbuf;
+                       pixbuf = new Pixbuf (null, Util.GetImagePath(false) + "selector-encoder-small.png");
+                       image_selector_start_encoder.Pixbuf = pixbuf;
+                       pixbuf = new Pixbuf (null, Util.GetImagePath(false) + "selector-force-small.png");
+                       image_selector_start_force_sensor.Pixbuf = pixbuf;
+                       pixbuf = new Pixbuf (null, Util.GetImagePath(false) + "selector-rt-small.png");
+                       image_selector_start_rt.Pixbuf = pixbuf;
+                       pixbuf = new Pixbuf (null, Util.GetImagePath(false) + 
"selector-multichronopic-small.png");
+                       image_selector_start_other.Pixbuf = pixbuf;
+
 
                        vbox_menu_tiny_menu.Spacing = 14; //spacing 10 or 14 is the same. 20 makes window 
higher
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]