Skip to content

style(ADFA-4520): 'Show Wi-Fi QR' button — half-width, left, purple#147

Merged
luisguzman-adfa merged 1 commit into
mainfrom
feat/ADFA-4520-lohs-qr-button-style
Jul 7, 2026
Merged

style(ADFA-4520): 'Show Wi-Fi QR' button — half-width, left, purple#147
luisguzman-adfa merged 1 commit into
mainfrom
feat/ADFA-4520-lohs-qr-button-style

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

The LOHS QR button was cramped (wrap_content). Make it half-width and left-aligned (under the 'Enable Hotspot LocalOnly' text) via a horizontal row with a spacer, 44dp tall, bold. Use a more saturated purple (@color/lohs_qr_purple #7B1FA2) because the previous accent_secondary #6A3FB5 reads washed-out/lavender on OLED (rounded_button is white tinted by backgroundTint).

@luisguzman-adfa luisguzman-adfa force-pushed the feat/ADFA-4520-lohs-qr-button-style branch from efa65c1 to 65b7920 Compare July 7, 2026 08:22
- 'Show Wi-Fi QR' button: half-width, left-aligned (under the toggle text) via a
  horizontal row + spacer, 44dp tall, bold, more saturated purple
  (@color/lohs_qr_purple #7B1FA2) since accent_secondary #6A3FB5 renders
  washed-out/lavender on OLED (rounded_button is white tinted by backgroundTint).
- Recommendation snackbar (lohs_recommend): drop '(BETA)' (wasted space, truncated
  the message; the BETA marker stays as the toggle pill), and reference the
  localized menu name instead of the literal English 'Advanced settings'
  (es 'Configuración avanzada', fr 'Paramètres avancés', pt 'Configurações
  avançadas', hi 'उन्नत सेटिंग्स', ru 'Расширенные настройки') to match
  network_advanced_label per locale.
@luisguzman-adfa luisguzman-adfa force-pushed the feat/ADFA-4520-lohs-qr-button-style branch from 65b7920 to 6b77e79 Compare July 7, 2026 08:30
@luisguzman-adfa luisguzman-adfa marked this pull request as ready for review July 7, 2026 08:30
@luisguzman-adfa luisguzman-adfa merged commit b67619d into main Jul 7, 2026
1 check passed
@luisguzman-adfa luisguzman-adfa deleted the feat/ADFA-4520-lohs-qr-button-style branch July 7, 2026 08:35
luisguzman-adfa pushed a commit that referenced this pull request Jul 7, 2026
… carve

Rebased onto main after #147 (ADFA-4520). Final slice of F1.

- New ServerController owns the native-server lifecycle (pdsm start/stop + fake /proc
  sysdata, the 3s status+connectivity poll, transition timeout, serverEngine,
  currentTargetUrl, Wi-Fi/hotspot flags) and publishes ServerState to the repository.
- Host (MainActivity): addToLog, UsageFragment pulses, refreshServerUi,
  get/setTargetServerState, isNegotiating, and the shared watchdog toggle. The
  transition-UI state stays on MainActivity so UsageFragment is untouched.
- MainActivity: removed the server fields + updateServerAlive/pingUrl/createFakeSysData/
  checkServerStatus/updateConnectivityStatus; onCreate constructs + starts the controller;
  onResume/onPause forward; handleServerLaunchClick delegates; the CLI 'prepare rootfs'
  broadcast, the QR guard and isHotspotActive() call the controller. 1058 -> 813 LOC.
- Picked up #147's util/Snackbars: MainActivity's remaining snackbars stay on Snackbars,
  and the moved termux-stuck-warning uses Snackbars in ServerController too.

Behaviour-preserving.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant