From 4642d7a76ab8ab15320455ccbb7f8c2dc0099b90 Mon Sep 17 00:00:00 2001 From: MrPiglr Date: Tue, 3 Feb 2026 11:59:47 -0700 Subject: [PATCH] modified: client/index.html --- .../main/java/com/aethex/os/MainActivity.java | 21 +- android/app/src/main/res/values/styles.xml | 19 +- capacitor.config.ts | 4 +- client/index.html | 6 + client/src/index.css | 39 ++ client/src/lib/embed-utils.ts | 59 +++ client/src/pages/hub/analytics.tsx | 130 ++++++ client/src/pages/hub/code-gallery.tsx | 116 +++++- client/src/pages/hub/file-manager.tsx | 113 +++++- client/src/pages/hub/game-marketplace.tsx | 151 ++++++- client/src/pages/hub/game-streaming.tsx | 154 ++++++- client/src/pages/hub/game-workshop.tsx | 258 +++++++++++- client/src/pages/hub/marketplace.tsx | 102 ++++- client/src/pages/hub/messaging.tsx | 125 +++++- client/src/pages/hub/notifications.tsx | 143 +++++++ client/src/pages/hub/projects.tsx | 165 +++++++- client/src/pages/hub/settings.tsx | 185 ++++++++- client/src/pages/os.tsx | 377 ++++++++++++++++-- 18 files changed, 2103 insertions(+), 64 deletions(-) diff --git a/android/app/src/main/java/com/aethex/os/MainActivity.java b/android/app/src/main/java/com/aethex/os/MainActivity.java index 6cc339e..c9c1527 100644 --- a/android/app/src/main/java/com/aethex/os/MainActivity.java +++ b/android/app/src/main/java/com/aethex/os/MainActivity.java @@ -58,22 +58,29 @@ public class MainActivity extends BridgeActivity { private void enableImmersiveMode() { View decorView = getWindow().getDecorView(); + + // Full immersive mode - hide everything WindowCompat.setDecorFitsSystemWindows(getWindow(), false); WindowInsetsControllerCompat controller = WindowCompat.getInsetsController(getWindow(), decorView); if (controller != null) { - // Hide both status and navigation bars + // Hide BOTH status bar and navigation bar completely controller.hide(WindowInsetsCompat.Type.systemBars()); - // Make them sticky so they stay hidden + // Swipe from edge to temporarily show bars controller.setSystemBarsBehavior(WindowInsetsControllerCompat.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE); } - // Additional flags for fullscreen + // Set bars to transparent when they do show + getWindow().setStatusBarColor(android.graphics.Color.TRANSPARENT); + getWindow().setNavigationBarColor(android.graphics.Color.TRANSPARENT); + + // Keep screen on + extend into cutout areas getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); - getWindow().setFlags( - WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, - WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS - ); + + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) { + getWindow().getAttributes().layoutInDisplayCutoutMode = + WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES; + } } } diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml index 911dbd8..b1521f6 100644 --- a/android/app/src/main/res/values/styles.xml +++ b/android/app/src/main/res/values/styles.xml @@ -1,23 +1,32 @@ - +