Browse Source

gui: Fit more people on screen

Maarten van den Berg 3 months ago
parent
commit
f78f4c51cb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      piket_client/gui.py

+ 2 - 2
piket_client/gui.py

150
 
150
 
151
         ps = Person.get_all(True)
151
         ps = Person.get_all(True)
152
         # num_columns = round(len(ps) / 10) + 1
152
         # num_columns = round(len(ps) / 10) + 1
153
-        num_columns = min(5, ceil(sqrt(len(ps))))
153
+        num_columns = min(4, ceil(sqrt(len(ps))))
154
 
154
 
155
         if self.layout:
155
         if self.layout:
156
             LOG.debug("Removing %s widgets for rebuild", self.layout.count())
156
             LOG.debug("Removing %s widgets for rebuild", self.layout.count())
432
     # Enlarge font size
432
     # Enlarge font size
433
     font = app.font()
433
     font = app.font()
434
     size = font.pointSize()
434
     size = font.pointSize()
435
-    font.setPointSize(size * 1.5)
435
+    font.setPointSize(size * 1.25)
436
     app.setFont(font)
436
     app.setFont(font)
437
 
437
 
438
     # Test connectivity
438
     # Test connectivity