Skip to content

RF Sentinel (RFSentinel): free, open-source police detector app for Android. Spots police body cams, Flock ALPR cameras, AirTag trackers, Remote ID drones, smart glasses and fake cell towers from Bluetooth LE and WiFi. No root.

DedSec theme: Watch Dogs-style black and white zine look (hatched pixel skull and wordmark, boxed label, retro-OS terminal), hot pink and violet palette, rounded controls, ctOS/Blume nods; every theme sets its own chip highlight

CIS-C059e3b7c23d5c
diff --git a/README.md b/README.md
index 0bd3bb0..8d3f8bc 100644
--- a/README.md
+++ b/README.md
@@ -319,7 +319,7 @@ Pick a theme in the setup wizard or under **Settings → Appearance**.
| Theme | Look |
|---|---|
-| **DedSec** | Hacker street art: pixel skull, self-decrypting title, glitch effects, cut-corner controls |
+| **DedSec** | Watch Dogs 2-style hacktivist zine: black and white with hot pink and violet, halftone print, a hatched pixel skull, a glitching pixel wordmark and a retro-OS terminal that bypasses ctOS |
| **Night Drive** | Red-only cockpit HUD. Every colour is mapped to red to preserve night vision while driving |
| **Night Vision** | Green phosphor image intensifier with grain and a scope vignette |
| **Amber CRT** | 1980s terminal with a blinking cursor and scanlines |
@@ -471,8 +471,10 @@ was re-checked against its IEEE registrant; see
plate-reader locations come from [DeFlock](https://github.com/FoggedLens/deflock)'s
snapshot of OpenStreetMap, mapped by its volunteers (data © OpenStreetMap
contributors, ODbL) - thank you. The DedSec theme font is Share Tech Mono (SIL Open
-Font License 1.1). The DedSec theme is an unofficial, original homage and
-contains no Ubisoft artwork.
+Font License 1.1). The DedSec theme is an unofficial fan homage to Watch Dogs: all
+its art is original and it contains no Ubisoft artwork or logos. Watch Dogs, DedSec,
+ctOS and Blume are trademarks of Ubisoft; RF Sentinel is not affiliated with or
+endorsed by Ubisoft.
## License
diff --git a/app/src/main/java/com/rfsentinel/app/ui/ThemeHeaderView.kt b/app/src/main/java/com/rfsentinel/app/ui/ThemeHeaderView.kt
index 193946d..eb91826 100644
--- a/app/src/main/java/com/rfsentinel/app/ui/ThemeHeaderView.kt
+++ b/app/src/main/java/com/rfsentinel/app/ui/ThemeHeaderView.kt
@@ -92,7 +92,8 @@ class ThemeHeaderView @JvmOverloads constructor(
override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {
val h = when (style) {
- Style.SUNSET, Style.GLITCH -> 96 * d
+ Style.GLITCH -> 150 * d
+ Style.SUNSET -> 96 * d
Style.BLUEPRINT, Style.MASTHEAD -> 84 * d
Style.HUD, Style.STENCIL -> 70 * d
else -> title.textSize + sub.textSize + 14 * d
@@ -124,121 +125,192 @@ class ThemeHeaderView @JvmOverloads constructor(
}
// ---- GLITCH (DedSec) --------------------------------------------------------
- // Hacktivist street-art look: an original pixel skull with RGB split, a title
- // that "decrypts" itself from random symbols, pixel-noise bursts, a yellow
- // sticker tag and a terminal line that types itself out. All original art.
+ // Hacktivist zine / poster look in the spirit of DedSec: black and white with
+ // hot pink and violet, a halftone band, an original pixel skull with diagonal
+ // hatching, a chunky pixel wordmark, a boxed label and a retro OS popup where
+ // a terminal line types itself. All original art - no game artwork or logos.
+ // Original 17x16 pixel skull: wide cranium, angular sockets, nose gap, two rows of teeth.
private val skull = listOf(
- "..#######..",
- ".#########.",
- "###########",
- "##..###..##",
- "##..###..##",
- "###########",
- "####.#.####",
- ".#########.",
- "..#.#.#.#..",
- "..#######..",
- "...#.#.#..."
+ "....#########....",
+ "..#############..",
+ ".###############.",
+ "#################",
+ "#################",
+ "###....###....###",
+ "##......#......##",
+ "###....###....###",
+ "#################",
+ "########.########",
+ ".######...######.",
+ "..#############..",
+ "...#.#.#.#.#.#...",
+ "...###########...",
+ "....#.#.#.#.#....",
+ ".....#######....."
)
- private val cyanC = 0xFF00F0D8.toInt()
- private val magentaC = 0xFFFF2E88.toInt()
- private val yellowC = 0xFFF5E100.toInt()
- private val whiteC = 0xFFEFFFFC.toInt()
- private val scrambleChars = "!<>-_\\/[]{}=+*^?#01ΔΣΩ¥§"
+ private val pinkC = 0xFFFF2E88.toInt()
+ private val whiteC = 0xFFF4F4F4.toInt()
+ private val blackC = 0xFF050505.toInt()
+ // Nods to Watch Dogs (ctOS, Blume, DedSec) - an unofficial fan homage.
private val lines = listOf(
+ "> ctOS uplink... bypassed [OK]",
"> sniff --ble --wifi --passive",
+ "> blume_profiler.exe: not on my watch",
"> rx_only=true tx=0 // listen, never touch",
- "> dumping adverts... [OK]",
- "> fingerprinting vendors... [OK]",
- "> the network sees you. now you see it_"
+ "> the city watches you. watch back_",
+ "> we are dedsec. join us_"
)
- private var decodeStart = System.currentTimeMillis()
private val sticker = Paint(Paint.ANTI_ALIAS_FLAG)
+ /** The wordmark drawn tiny and blown up without smoothing: chunky pixel letters. */
+ private var wordmark: android.graphics.Bitmap? = null
+ private val pixelPaint = Paint().apply { isFilterBitmap = false; isAntiAlias = false }
+ private fun wordmarkBitmap(): android.graphics.Bitmap {
+ wordmark?.let { return it }
+ val p = Paint().apply { isAntiAlias = false; typeface = mono; textSize = 13f; color = whiteC; isFakeBoldText = true }
+ val fm = p.fontMetrics
+ val bmp = android.graphics.Bitmap.createBitmap(
+ kotlin.math.ceil(p.measureText("RF_SENTINEL")).toInt() + 2,
+ kotlin.math.ceil(fm.descent - fm.ascent).toInt() + 1,
+ android.graphics.Bitmap.Config.ARGB_8888
+ )
+ Canvas(bmp).drawText("RF_SENTINEL", 1f, -fm.ascent, p)
+ return bmp.also { wordmark = it }
+ }
+
private fun glitch(canvas: Canvas, now: Long): Long {
if (now >= nextGlitch) {
- glitchUntil = now + 200
- nextGlitch = now + 1600 + Random.nextLong(2400)
+ glitchUntil = now + 220
+ nextGlitch = now + 1800 + Random.nextLong(2600)
}
- if (now - decodeStart > 9000) decodeStart = now
val glitching = now < glitchUntil
val w = width.toFloat(); val h = height.toFloat()
+ canvas.drawColor(blackC)
- // Pixel skull, RGB split.
- val cell = min(5.2f * d, (h - 26 * d) / skull.size)
- val sx = 4 * d; val sy = 4 * d
+ // Pixel skull: white body with black diagonal hatching, like a screen-printed poster.
+ // Black and white only; pink shows up just as a glitch flash and the eye glints.
+ val bottomBar = 30 * d
+ val cell = min(6.4f * d, (h - bottomBar - 12 * d) / skull.size)
+ val sx = 6 * d; val sy = 6 * d
val jitter = if (glitching) Random.nextInt(-3, 4) * d else 0f
- fun drawSkull(dx: Float, color: Int) {
+ fun skullCells(dx: Float, dy: Float, color: Int) {
fill.color = color
skull.forEachIndexed { r, row ->
row.forEachIndexed { c, ch ->
- if (ch == '#') canvas.drawRect(sx + dx + c * cell, sy + r * cell, sx + dx + (c + 1) * cell - 0.6f, sy + (r + 1) * cell - 0.6f, fill)
+ if (ch == '#') canvas.drawRect(sx + dx + c * cell, sy + dy + r * cell, sx + dx + (c + 1) * cell, sy + dy + (r + 1) * cell, fill)
}
}
}
- drawSkull(-1.5f * d - jitter, cyanC)
- drawSkull(1.5f * d + jitter, magentaC)
- drawSkull(0f, whiteC)
- // Eye glow.
- fill.color = if ((now / 400) % 2 == 0L) cyanC else magentaC
- canvas.drawRect(sx + 2 * cell, sy + 3 * cell, sx + 4 * cell - 0.6f, sy + 5 * cell - 0.6f, fill)
- canvas.drawRect(sx + 7 * cell, sy + 3 * cell, sx + 9 * cell - 0.6f, sy + 5 * cell - 0.6f, fill)
-
- // Title that decrypts itself left to right.
- val tx = sx + 11 * cell + 12 * d
- val target = "RF_SENTINEL"
- fit(target, w - tx - 70 * d, 30 * d)
- val progress = ((now - decodeStart) / 70).toInt()
- val text = target.mapIndexed { i, ch -> if (i < progress) ch else scrambleChars[Random.nextInt(scrambleChars.length)] }.joinToString("")
- val base = sy + title.textSize
- val split = if (glitching) (2 + Random.nextInt(5)) * d else 1.5f * d
- title.color = cyanC; canvas.drawText(text, tx - split, base, title)
- title.color = magentaC; canvas.drawText(text, tx + split, base + if (glitching) Random.nextInt(-2, 3) * d else 0f, title)
- title.color = whiteC
+ if (glitching) skullCells(3 * d + jitter, 0f, pinkC)
+ skullCells(0f, 0f, whiteC)
+ val skullW = skull[0].length * cell; val skullH = skull.size * cell
+ hatch(canvas, sx, sy, sx + skullW, sy + skullH, 3.2f * d)
+ // Hollow sockets with a small pink glint that blinks now and then.
+ if ((now / 700) % 6 != 0L) {
+ fill.color = pinkC
+ canvas.drawRect(sx + 4 * cell, sy + 6 * cell, sx + 5 * cell, sy + 7 * cell, fill)
+ canvas.drawRect(sx + 12 * cell, sy + 6 * cell, sx + 13 * cell, sy + 7 * cell, fill)
+ }
+
+ // Pixel wordmark with a hard grey drop shadow; sliced sideways while glitching.
+ val tx = sx + skullW + 14 * d
+ val bmp = wordmarkBitmap()
+ val markW = min(w - tx - 8 * d, 230 * d)
+ val markH = markW * bmp.height / bmp.width
+ val top = sy + 2 * d
+ val dst = RectF(tx, top, tx + markW, top + markH)
+ pixelPaint.colorFilter = android.graphics.PorterDuffColorFilter(if (glitching) pinkC else 0xFF555555.toInt(), android.graphics.PorterDuff.Mode.SRC_IN)
+ canvas.drawBitmap(bmp, null, RectF(dst.left + 3 * d, dst.top + 3 * d, dst.right + 3 * d, dst.bottom + 3 * d), pixelPaint)
+ pixelPaint.colorFilter = null
if (glitching) {
- val bandH = title.textSize / 3
- for (i in 0 until 3) {
+ val bands = 4
+ for (i in 0 until bands) {
canvas.save()
- canvas.clipRect(0f, base - title.textSize + i * bandH, w, base - title.textSize + (i + 1) * bandH + 2)
- canvas.drawText(text, tx + Random.nextInt(-8, 9) * d, base, title)
+ val b0 = dst.top + i * markH / bands
+ canvas.clipRect(0f, b0, w, b0 + markH / bands + 1)
+ val off = Random.nextInt(-10, 11) * d
+ canvas.drawBitmap(bmp, null, RectF(dst.left + off, dst.top, dst.right + off, dst.bottom), pixelPaint)
canvas.restore()
}
} else {
- canvas.drawText(text, tx, base, title)
+ canvas.drawBitmap(bmp, null, dst, pixelPaint)
+ }
+ hatch(canvas, dst.left, dst.top, dst.right, dst.bottom, 4.5f * d, 0.8f * d)
+
+ // Boxed label: hard white frame, like a stamped sign.
+ sticker.typeface = mono; sticker.textSize = 13 * d; sticker.isFakeBoldText = true
+ sticker.textAlign = Paint.Align.LEFT
+ val label = "RX ONLY · NO TX"
+ val lw = sticker.measureText(label) + 16 * d
+ val ly = dst.bottom + 10 * d
+ val lh = 22 * d
+ if (ly + lh < h - bottomBar - 2 * d) {
+ fill.color = blackC
+ canvas.drawRect(tx, ly, tx + lw, ly + lh, fill)
+ line.color = whiteC; line.strokeWidth = 2 * d
+ canvas.drawRect(tx, ly, tx + lw, ly + lh, line)
+ sticker.color = whiteC
+ canvas.drawText(label, tx + 8 * d, ly + lh * 0.7f, sticker)
}
- // Tagline + typed terminal line.
- sub.color = magentaC
- canvas.drawText("// passive RF recon", tx, base + sub.textSize + 4 * d, sub)
+ // Retro OS popup along the bottom: pink title bar with _ [] X, the terminal line typing inside.
+ val wy = h - bottomBar
+ val barH = 11 * d
+ fill.color = blackC
+ canvas.drawRect(2 * d, wy, w - 2 * d, h - 2 * d, fill)
+ fill.color = pinkC
+ canvas.drawRect(2 * d, wy, w - 2 * d, wy + barH, fill)
+ line.color = whiteC; line.strokeWidth = 1.5f * d
+ canvas.drawRect(2 * d, wy, w - 2 * d, h - 2 * d, line)
+ sub.color = blackC; sub.textSize = 9 * d; sub.typeface = mono; sub.isFakeBoldText = true
+ canvas.drawText("rf_sentinel.exe", 7 * d, wy + barH * 0.78f, sub)
+ val box = 7 * d
+ for (i in 0 until 3) {
+ val bx = w - 8 * d - (3 - i) * (box + 3 * d)
+ fill.color = whiteC
+ canvas.drawRect(bx, wy + 2 * d, bx + box, wy + 2 * d + box, fill)
+ line.color = blackC; line.strokeWidth = 1 * d
+ when (i) {
+ 0 -> canvas.drawLine(bx + 1.5f * d, wy + 2 * d + box - 2 * d, bx + box - 1.5f * d, wy + 2 * d + box - 2 * d, line)
+ 1 -> canvas.drawRect(bx + 1.5f * d, wy + 3.5f * d, bx + box - 1.5f * d, wy + 2 * d + box - 1.5f * d, line)
+ else -> {
+ canvas.drawLine(bx + 1.5f * d, wy + 3.5f * d, bx + box - 1.5f * d, wy + 2 * d + box - 1.5f * d, line)
+ canvas.drawLine(bx + box - 1.5f * d, wy + 3.5f * d, bx + 1.5f * d, wy + 2 * d + box - 1.5f * d, line)
+ }
+ }
+ }
val cycle = (now - start) / 4500
val lineText = lines[(cycle % lines.size).toInt()]
val typed = (((now - start) % 4500) / 45).toInt().coerceAtMost(lineText.length)
- sub.color = cyanC
+ sub.color = whiteC; sub.textSize = 11 * d; sub.isFakeBoldText = false
val cursor = if ((now / 450) % 2 == 0L) "█" else " "
- canvas.drawText(lineText.take(typed) + cursor, 4 * d, h - 5 * d, sub)
-
- // Sticker tag, slightly rotated like it was slapped on.
- canvas.save()
- val tagW = 60 * d; val tagH = 20 * d
- canvas.rotate(-7f, w - tagW / 2 - 6 * d, 16 * d)
- sticker.color = yellowC
- canvas.drawRect(w - tagW - 6 * d, 6 * d, w - 6 * d, 6 * d + tagH, sticker)
- sticker.color = 0xFF050505.toInt(); sticker.typeface = mono; sticker.textSize = 11 * d; sticker.isFakeBoldText = true
- sticker.textAlign = Paint.Align.CENTER
- canvas.drawText("RX ONLY", w - tagW / 2 - 6 * d, 6 * d + tagH * 0.68f, sticker)
- canvas.restore()
+ canvas.drawText(lineText.take(typed) + cursor, 7 * d, h - 7 * d, sub)
+ sub.textSize = 12 * d
- // Pixel-noise burst while glitching.
+ // Glitch burst: white and pink slabs.
if (glitching) {
- repeat(7) {
- fill.color = listOf(cyanC, magentaC, yellowC, whiteC)[Random.nextInt(4)]
- val bx = Random.nextFloat() * w; val by = Random.nextFloat() * h
- canvas.drawRect(bx, by, bx + Random.nextInt(4, 40) * d, by + Random.nextInt(1, 4) * d, fill)
+ repeat(8) {
+ fill.color = if (Random.nextInt(3) == 0) pinkC else whiteC
+ val bx = Random.nextFloat() * w; val by = Random.nextFloat() * (h - bottomBar)
+ canvas.drawRect(bx, by, bx + Random.nextInt(6, 60) * d, by + Random.nextInt(1, 5) * d, fill)
}
}
- scanlines(canvas, 0x1400F0D8)
- return if (glitching || progress <= target.length) 40 else 90
+ scanlines(canvas, 0x10FFFFFF)
+ return if (glitching) 40 else 90
+ }
+
+ /** Black diagonal hatch lines over a box: the scanned / screen-printed poster texture. */
+ private fun hatch(canvas: Canvas, l: Float, t: Float, r: Float, b: Float, gap: Float, width: Float = 1.1f * d) {
+ canvas.save()
+ canvas.clipRect(l, t, r, b)
+ line.color = blackC; line.strokeWidth = width
+ var x = l - (b - t)
+ while (x < r) {
+ canvas.drawLine(x, b, x + (b - t), t, line)
+ x += gap
+ }
+ canvas.restore()
}
// ---- HUD (Night Drive) ----------------------------------------------------
diff --git a/app/src/main/java/com/rfsentinel/app/ui/ThemeManager.kt b/app/src/main/java/com/rfsentinel/app/ui/ThemeManager.kt
index 5b94b82..078bea8 100644
--- a/app/src/main/java/com/rfsentinel/app/ui/ThemeManager.kt
+++ b/app/src/main/java/com/rfsentinel/app/ui/ThemeManager.kt
@@ -35,7 +35,7 @@ object ThemeManager {
LIGHT("Light", "Always light", night = false),
DARK("Dark", "Always dark", night = true),
MATERIAL_YOU("Material You", "Material 3, coloured from your wallpaper (Android 12+)", R.style.Theme_RFSentinel_MaterialYou),
- DEDSEC("DedSec", "Hacker terminal: black, neon cyan & magenta, glitching wordmark",
+ DEDSEC("DedSec", "Watch Dogs 2 hacktivist homage: black & white zine, hot pink & violet, glitching pixel skull, ctOS-busting terminal",
R.style.Theme_RFSentinel_DedSec, true, ThemeHeaderView.Style.GLITCH, "> RF_SENTINEL_"),
NIGHT_DRIVE("Night Drive", "Red-only cockpit lighting that keeps your night vision on dark roads",
R.style.Theme_RFSentinel_NightDrive, true, ThemeHeaderView.Style.HUD, "RF SENTINEL"),
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index f7e1b32..be09462 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -14,14 +14,13 @@
<color name="scope_text">#AA0B5C63</color>
<color name="trace">#E0622D</color>
- <!-- DedSec-inspired hacker palette -->
+ <!-- DedSec-inspired palette: black, white, hot pink, violet -->
<color name="dedsec_black">#050505</color>
- <color name="dedsec_panel">#0E0E10</color>
- <color name="dedsec_cyan">#00F0D8</color>
+ <color name="dedsec_panel">#141016</color>
<color name="dedsec_magenta">#FF2E88</color>
- <color name="dedsec_green">#39FF6A</color>
- <color name="dedsec_text">#D8FFF9</color>
- <color name="dedsec_dim">#7FB8B0</color>
+ <color name="dedsec_violet">#A23CFF</color>
+ <color name="dedsec_text">#F4F4F4</color>
+ <color name="dedsec_dim">#A99BB8</color>
<!-- Night Drive: red-only, keeps your night vision while driving -->
<color name="nd_bg">#000000</color>
diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml
index e1524b6..4b0e522 100644
--- a/app/src/main/res/values/themes.xml
+++ b/app/src/main/res/values/themes.xml
@@ -18,19 +18,25 @@
<!-- Material You: Material 3 components; colours come from the wallpaper
(DynamicColors, Android 12+), falling back to the M3 baseline palette. -->
<style name="Theme.RFSentinel.MaterialYou" parent="Theme.Material3.DayNight">
+ <!-- Selected chips / toggles use this theme's own primary colour. -->
+ <item name="rfAccent">?attr/colorPrimary</item>
+ <item name="rfOnAccent">?attr/colorOnPrimary</item>
<item name="rfScopeColor">?attr/colorPrimary</item>
<item name="rfScopeTextColor">?attr/colorOnSurfaceVariant</item>
<item name="rfTraceColor">?attr/colorTertiary</item>
<item name="actionBarTheme">@style/ThemeOverlay.Material3.ActionBar</item>
</style>
- <!-- DedSec-inspired hacker terminal: pure black, neon cyan / magenta, monospace. -->
+ <!-- DedSec-inspired hacktivist zine: black and white, hot pink and violet, monospace. -->
<style name="Theme.RFSentinel.DedSec" parent="Theme.MaterialComponents">
- <item name="colorPrimary">@color/dedsec_cyan</item>
+ <!-- Selected chips / toggles use this theme's own primary colour. -->
+ <item name="rfAccent">?attr/colorPrimary</item>
+ <item name="rfOnAccent">?attr/colorOnPrimary</item>
+ <item name="colorPrimary">@color/dedsec_magenta</item>
<item name="colorPrimaryVariant">@color/dedsec_black</item>
<item name="colorOnPrimary">@color/dedsec_black</item>
- <item name="colorSecondary">@color/dedsec_magenta</item>
- <item name="colorOnSecondary">@color/dedsec_black</item>
+ <item name="colorSecondary">@color/dedsec_violet</item>
+ <item name="colorOnSecondary">@color/dedsec_text</item>
<item name="colorSurface">@color/dedsec_panel</item>
<item name="colorOnSurface">@color/dedsec_text</item>
<item name="android:colorBackground">@color/dedsec_black</item>
@@ -45,10 +51,10 @@
<item name="actionBarTheme">@style/DedSec.ActionBarOverlay</item>
<item name="alertDialogTheme">@style/DedSec.Dialog</item>
<item name="materialAlertDialogTheme">@style/DedSec.Dialog</item>
- <item name="rfScopeColor">@color/dedsec_green</item>
- <item name="rfScopeTextColor">@color/dedsec_green</item>
- <item name="rfTraceColor">@color/dedsec_magenta</item>
- <item name="colorAccent">@color/dedsec_magenta</item>
+ <item name="rfScopeColor">@color/dedsec_magenta</item>
+ <item name="rfScopeTextColor">@color/dedsec_dim</item>
+ <item name="rfTraceColor">@color/dedsec_violet</item>
+ <item name="colorAccent">@color/dedsec_violet</item>
</style>
<style name="DedSec.ActionBar" parent="Widget.MaterialComponents.ActionBar.Solid">
@@ -58,18 +64,18 @@
</style>
<style name="DedSec.ActionBarTitle" parent="TextAppearance.AppCompat.Widget.ActionBar.Title">
- <item name="android:textColor">@color/dedsec_cyan</item>
+ <item name="android:textColor">@color/dedsec_text</item>
<item name="android:fontFamily">@font/share_tech_mono</item>
<item name="android:textStyle">bold</item>
</style>
<style name="DedSec.ActionBarOverlay" parent="ThemeOverlay.MaterialComponents.Dark.ActionBar">
- <item name="colorControlNormal">@color/dedsec_cyan</item>
- <item name="android:textColorPrimary">@color/dedsec_cyan</item>
+ <item name="colorControlNormal">@color/dedsec_text</item>
+ <item name="android:textColorPrimary">@color/dedsec_text</item>
</style>
<style name="DedSec.Dialog" parent="ThemeOverlay.MaterialComponents.Dialog.Alert">
- <item name="colorPrimary">@color/dedsec_cyan</item>
+ <item name="colorPrimary">@color/dedsec_magenta</item>
<item name="colorSurface">@color/dedsec_panel</item>
<item name="android:background">@color/dedsec_panel</item>
<item name="android:textColorPrimary">@color/dedsec_text</item>
@@ -108,6 +114,9 @@
<!-- Night Drive: red-only on black, like a cockpit - protects dark adaptation while driving. -->
<style name="Theme.RFSentinel.NightDrive" parent="Theme.MaterialComponents">
+ <!-- Selected chips / toggles use this theme's own primary colour. -->
+ <item name="rfAccent">?attr/colorPrimary</item>
+ <item name="rfOnAccent">?attr/colorOnPrimary</item>
<item name="colorPrimary">@color/nd_red</item>
<item name="colorPrimaryVariant">@color/nd_bg</item>
<item name="colorOnPrimary">@color/nd_bg</item>
@@ -139,6 +148,9 @@
<!-- Night Vision: green phosphor image-intensifier look. -->
<style name="Theme.RFSentinel.NightVision" parent="Theme.MaterialComponents">
+ <!-- Selected chips / toggles use this theme's own primary colour. -->
+ <item name="rfAccent">?attr/colorPrimary</item>
+ <item name="rfOnAccent">?attr/colorOnPrimary</item>
<item name="colorPrimary">@color/nv_green</item>
<item name="colorPrimaryVariant">@color/nv_bg</item>
<item name="colorOnPrimary">@color/nv_bg</item>
@@ -170,6 +182,9 @@
<!-- Amber CRT: 1980s monochrome terminal. -->
<style name="Theme.RFSentinel.Amber" parent="Theme.MaterialComponents">
+ <!-- Selected chips / toggles use this theme's own primary colour. -->
+ <item name="rfAccent">?attr/colorPrimary</item>
+ <item name="rfOnAccent">?attr/colorOnPrimary</item>
<item name="colorPrimary">@color/amber_main</item>
<item name="colorPrimaryVariant">@color/amber_bg</item>
<item name="colorOnPrimary">@color/amber_bg</item>
@@ -201,6 +216,9 @@
<!-- Synthwave: neon pink and cyan over a purple night. -->
<style name="Theme.RFSentinel.Synthwave" parent="Theme.MaterialComponents">
+ <!-- Selected chips / toggles use this theme's own primary colour. -->
+ <item name="rfAccent">?attr/colorPrimary</item>
+ <item name="rfOnAccent">?attr/colorOnPrimary</item>
<item name="colorPrimary">@color/sw_pink</item>
<item name="colorPrimaryVariant">@color/sw_bg</item>
<item name="colorOnPrimary">@color/sw_bg</item>
@@ -232,6 +250,9 @@
<!-- Tactical: olive drab and coyote tan, low glare. -->
<style name="Theme.RFSentinel.Tactical" parent="Theme.MaterialComponents">
+ <!-- Selected chips / toggles use this theme's own primary colour. -->
+ <item name="rfAccent">?attr/colorPrimary</item>
+ <item name="rfOnAccent">?attr/colorOnPrimary</item>
<item name="colorPrimary">@color/tac_olive</item>
<item name="colorPrimaryVariant">@color/tac_bg</item>
<item name="colorOnPrimary">@color/tac_bg</item>
@@ -263,6 +284,9 @@
<!-- Blueprint: white technical drawing on drafting blue. -->
<style name="Theme.RFSentinel.Blueprint" parent="Theme.MaterialComponents">
+ <!-- Selected chips / toggles use this theme's own primary colour. -->
+ <item name="rfAccent">?attr/colorPrimary</item>
+ <item name="rfOnAccent">?attr/colorOnPrimary</item>
<item name="colorPrimary">@color/bp_line</item>
<item name="colorPrimaryVariant">@color/bp_bg</item>
<item name="colorOnPrimary">@color/bp_bg</item>
@@ -294,6 +318,9 @@
<!-- Paper: newspaper ink on newsprint - maximum contrast in direct sunlight. -->
<style name="Theme.RFSentinel.Paper" parent="Theme.MaterialComponents.Light">
+ <!-- Selected chips / toggles use this theme's own primary colour. -->
+ <item name="rfAccent">?attr/colorPrimary</item>
+ <item name="rfOnAccent">?attr/colorOnPrimary</item>
<item name="colorPrimary">@color/paper_ink</item>
<item name="colorPrimaryVariant">@color/paper_bg</item>
<item name="colorOnPrimary">@color/paper_bg</item>