210 Commits
Author SHA1 Message Date
Thomas Farstrike 23e94145c9 Camera: disable GT911 touch screen to avoid conflict 2026-02-09 16:40:54 +01:00
Thomas Farstrike c4beb0b3da InputManager: add unregister_indev function 2026-02-09 16:40:03 +01:00
Thomas Farstrike e8de45312f matouch_esp32_s3_2_8_spi work
- Natural orientation: camera on top, USB ports on bottom
- OV3660 camera works (but colors are off and it breaks the touch input)
- Improve board detection
2026-02-07 12:54:14 +01:00
Thomas Farstrike 1d4de7c290 Set default primary color Bitcoin Orange (f0a010) 2026-01-28 17:26:18 +01:00
Thomas Farstrike a32a020e57 Replace 'magic' value 0 with semantic lv.PART.MAIN 2026-01-26 12:30:50 +01:00
Thomas Farstrike 81f17dd07e Settings app: make "Cancel" button more "ghosty" to discourage accidental misclicks 2026-01-26 11:53:00 +01:00
Thomas Farstrike d7e49d04dc Add new BatteryManager framework 2026-01-25 23:22:53 +01:00
Thomas Farstrike 8e734b1e53 InputManager: add has_indev_type to figure out if there are buttons 2026-01-25 21:52:25 +01:00
Thomas Farstrike 2a70e32375 Add InputManager framework 2026-01-25 21:17:20 +01:00
Thomas Farstrike c2ae169638 Rename PackageManager to AppManager 2026-01-25 00:19:38 +01:00
Thomas Farstrike 31dcfba683 Move mpos.apps functionality to PackageManager 2026-01-25 00:08:01 +01:00
Thomas Farstrike 7b65ec7301 Simplify 2026-01-23 23:25:22 +01:00
Thomas Farstrike 663be36605 Update logo to standard file
The standard file is just 100 bytes bigger so let's take that one.
2026-01-23 23:13:44 +01:00
Thomas Farstrike 2f31d14a4e Remove old theme.py 2026-01-23 23:08:58 +01:00
Thomas Farstrike 6c9be984de Fix AppearanceManager 2026-01-23 22:36:54 +01:00
Thomas Farstrike 5b5ac9c006 Add AppearanceManager 2026-01-23 22:26:18 +01:00
Thomas Farstrike 68b6ff3886 Cleanup WidgetAnimator framework 2026-01-23 21:37:53 +01:00
Thomas Farstrike 86d9c38902 Introduce DisplayMetrics framework 2026-01-23 20:46:36 +01:00
Thomas Farstrike 4efe22f4bf Bigger logo 2026-01-23 18:50:50 +01:00
Thomas Farstrike 30b3764710 Harmonize frameworks
All frameworks now follow the same singleton class pattern with class methods:

AudioFlinger (already had this pattern)
DownloadManager (refactored)
ConnectivityManager (refactored)
CameraManager (refactored)
SensorManager (refactored)
Pattern Structure:

class FrameworkName:
    _initialized = False
    _instance_data = {}

    @classmethod
    def init(cls, *args, **kwargs):
        """Initialize the framework"""
        cls._initialized = True
        # initialization logic

    @classmethod
    def is_available(cls):
        """Check if framework is available"""
        return cls._initialized

    @classmethod
    def method_name(cls, *args):
        """Framework methods as class methods"""
        # implementation

2. Standardized Imports in __init__.py
All frameworks are now imported consistently as classes:

from .content.package_manager import PackageManager
from .config import SharedPreferences
from .net.connectivity_manager import ConnectivityManager
from .net.wifi_service import WifiService
from .audio.audioflinger import AudioFlinger
from .net.download_manager import DownloadManager
from .task_manager import TaskManager
from .camera_manager import CameraManager
from .sensor_manager import SensorManager
3. Updated Board Initialization Files
Fixed imports in all board files to use the new class-based pattern:

linux.py
fri3d_2024.py
fri3d_2026.py
waveshare_esp32_s3_touch_lcd_2.py
4. Updated UI Components
Fixed topmenu.py to import SensorManager as a class instead of a module.

5. Benefits of This Harmonization
 Consistency: All frameworks follow the same pattern - no more mixing of module imports and class imports  Simplicity: Single, clear way to use frameworks - always as classes with class methods  Functionality: All frameworks work identically - init(), is_available(), and other methods are consistent  Maintainability: New developers see one pattern to follow across all frameworks  No Breaking Changes: Apps continue to work without modification (Quasi apps, Lightning Piggy, etc.)

6. Testing
All tests pass successfully, confirming:

Framework initialization works correctly
Board hardware detection functions properly
UI components render without errors
No regressions in existing functionality
The harmonization is complete and production-ready. All frameworks now provide a unified, predictable interface that's easy to understand and extend.
2026-01-23 15:31:47 +01:00
Thomas Farstrike 775b7c83b8 Nostr: show QR of npub 2026-01-21 21:26:57 +01:00
Thomas Farstrike faa46fbb18 Work on Nostr app 2026-01-21 17:18:07 +01:00
Thomas Farstrike a76d2b7826 Fix logo in dark mode 2026-01-21 16:18:44 +01:00
Thomas Farstrike 020c5238f9 Fix topmenu handling without foreground app 2026-01-21 15:27:31 +01:00
Thomas Farstrike c953871f43 Invert colors since black text logo is used 2026-01-20 19:40:28 +01:00