Get the image scale factor for the current display. For small displays (2.13", 2.7") icons stay at native size. For large displays (4.26" 800x480) icons scale up proportionally.
(self)
| 1619 | """Load status_list from an existing actions.json (Pager mode). |
| 1620 | On the Pager, action modules can't be imported (missing pandas/rich), |
| 1621 | so we read the pre-deployed actions.json instead of regenerating it.""" |
| 1622 | try: |
| 1623 | if os.path.exists(self.actions_file): |
| 1624 | with open(self.actions_file, 'r') as f: |
| 1625 | actions = json.load(f) |
| 1626 | for action in actions: |
| 1627 | b_class = action.get('b_class') |
| 1628 | if b_class and b_class not in self.status_list: |
| 1629 | self.status_list.append(b_class) |
| 1630 | logger.info(f"Loaded {len(self.status_list)} action statuses from actions.json") |
| 1631 | else: |