mirror of
https://github.com/atsunatsu/Look4Sat.git
synced 2026-10-05 12:07:25 +00:00
feat(roaming): faithful QTH定位器 port, live-update toggle, night-mode safe
Rework the Roaming page after user review. It is now a faithful port of the QTH定位器 location panel, not a loose re-skin: UI (matching the reference layout): - GPS status dot (real: green when a fresh fix exists, outline when stale/missing) + date + time header - Lat/Lon rows with DMS and 5-decimal display, big 8-char locator centered below - 3x3 grid of neighboring 4-char squares with the reference proportions: center column ~2.6x wider (21.4% : 56.2% : 21.4%) and center row the tallest (31.5% : 35.9% : 31.7%); red position marker now placed at the fractional position of the fix inside the center cell (was fixed center) - No oversized GPS button: live updating is now a Settings toggle '漫游位置实时更新' (stateOfRoamingLive, default on) that drives periodic location refresh Style & night-mode safety: - All colors come from MaterialTheme.colorScheme (surfaceVariant/secondaryContainer/error) — no hardcoded cyan/blue from the original app. The red night filter (ColorMatrix keeping only the R channel) blanked the old hardcoded palette; theme colors survive it. - Chinese nav label '漫游' added to values-zh (was missing, showing English 'Roaming') Settings: - OtherSettings.stateOfRoamingLive persisted (default true), toggle row in Other card, height adjusted Verified: feature:roaming, feature:settings, app compile clean.
This commit is contained in:
1 parent
8a920acead
commit
6dbe30b3f6
10 files changed
+221
-110
No files matched your search
@@ -58,6 +58,7 @@ data class OtherSettings(
|
||||
val stateOfUtc: Boolean,
|
||||
val stateOfLightTheme: Boolean,
|
||||
val stateOfNightMode: Boolean = false,
|
||||
val stateOfRoamingLive: Boolean = true,
|
||||
val shouldSeeWarning: Boolean,
|
||||
val shouldSeeWhatsNew: Boolean,
|
||||
val sstvMode: String = "Auto",
|
||||
|
||||
Reference in new issue
Block a user