Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ Versions after 2.17 are `MAJOR.MINOR.PATCH` (2.17 is followed by 2.17.1 or 2.18.
`docs/testing.md`, "Versions and releases"); the headings below keep the numbers as they
were released.

## 2.27.1 — 2026-11-19

- Check boxes and radio buttons of the brass dialogs show on and off under the remote's focus
too (#290): the system ones, tinted amber, became a solid amber box or circle with no tick or
dot when focused (seen on a SberBox). They are the app's own drawables now — checked: an
amber box with a dark tick, an amber ring with an amber dot; unchecked: an empty dark box or
ring with a dim frame; the amber focus frame stays around the row.

## 2.27.0 — 2026-11-19

- After an update of the app (a new APK installed over it) the web page comes back by itself,
Expand Down
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ android {
applicationId "com.openipc.decoder"
minSdk 21
targetSdk 36
versionCode 63
versionName "2.27.0"
versionCode 64
versionName "2.27.1"
// Keep only these locales of the libraries' resources, as in the other OpenIPC apps
resourceConfigurations += ['en', 'ru', 'zh-rCN']

Expand Down
9 changes: 7 additions & 2 deletions android/app/src/main/java/com/openipc/decoder/Brass.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import android.app.AlertDialog;
import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.Typeface;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.GradientDrawable;
Expand Down Expand Up @@ -196,7 +195,13 @@ private static void styleTree(Context c, View v) {
} else if (v instanceof CompoundButton) {
CompoundButton b = (CompoundButton) v;
b.setTextColor(color(c, R.color.ink));
b.setButtonTintList(ColorStateList.valueOf(color(c, R.color.amber)));
// the app's own box and ring, untinted: on and off read under the focus too (#290)
b.setButtonTintList(null);
b.setButtonDrawable(b instanceof android.widget.RadioButton
? R.drawable.brass_radio : R.drawable.brass_check);
int pad = Math.round(6 * dp(c));
b.setPadding(Math.max(b.getPaddingLeft(), pad), b.getPaddingTop(), b.getPaddingRight(),
b.getPaddingBottom());
// the remote's focus (focus_ring.xml): views made with the activity's context miss
// the dialog theme's checkboxStyle
b.setBackgroundResource(R.drawable.focus_ring);
Expand Down
14 changes: 14 additions & 0 deletions android/app/src/main/res/drawable/brass_check.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) OpenIPC https://openipc.org MIT License

brass_check.xml — the brass check box (#290): its own drawable, no buttonTint, so on and
off read the same with the remote's focus (the system one, tinted amber, filled the mark under
focus); the focus frame is focus_ring.xml around the row. Wire it through the theme:
<item name="android:button">@drawable/brass_check</item>
<item name="android:buttonTint">@null</item>
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true" android:drawable="@drawable/brass_check_on" />
<item android:drawable="@drawable/brass_check_off" />
</selector>
11 changes: 11 additions & 0 deletions android/app/src/main/res/drawable/brass_check_off.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) OpenIPC https://openipc.org MIT License

brass_check_off.xml — an unchecked brass check box: an empty dark box, a dim frame (#290)
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="28dp" android:height="28dp" android:viewportWidth="24" android:viewportHeight="24">
<path android:fillColor="#120D0A" android:strokeColor="#B09873" android:strokeWidth="2"
android:pathData="M6,3h12a3,3 0,0 1,3 3v12a3,3 0,0 1,-3 3h-12a3,3 0,0 1,-3 -3v-12a3,3 0,0 1,3 -3z" />
</vector>
14 changes: 14 additions & 0 deletions android/app/src/main/res/drawable/brass_check_on.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) OpenIPC https://openipc.org MIT License

brass_check_on.xml — a checked brass check box: an amber box, a dark tick (#290)
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="28dp" android:height="28dp" android:viewportWidth="24" android:viewportHeight="24">
<path android:fillColor="#FFB347" android:strokeColor="#8C6A2A" android:strokeWidth="1"
android:pathData="M6,3h12a3,3 0,0 1,3 3v12a3,3 0,0 1,-3 3h-12a3,3 0,0 1,-3 -3v-12a3,3 0,0 1,3 -3z" />
<path android:strokeColor="#2A1C10" android:strokeWidth="2.6" android:strokeLineCap="round"
android:strokeLineJoin="round" android:fillColor="#00000000"
android:pathData="M7.2,12.4L10.4,15.6L16.8,8.4" />
</vector>
14 changes: 14 additions & 0 deletions android/app/src/main/res/drawable/brass_radio.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) OpenIPC https://openipc.org MIT License

brass_radio.xml — the brass radio button (#290): its own drawable, no buttonTint, so on and
off read the same with the remote's focus (the system one, tinted amber, filled the mark under
focus); the focus frame is focus_ring.xml around the row. Wire it through the theme:
<item name="android:button">@drawable/brass_radio</item>
<item name="android:buttonTint">@null</item>
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true" android:drawable="@drawable/brass_radio_on" />
<item android:drawable="@drawable/brass_radio_off" />
</selector>
11 changes: 11 additions & 0 deletions android/app/src/main/res/drawable/brass_radio_off.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) OpenIPC https://openipc.org MIT License

brass_radio_off.xml — a brass radio button not chosen: an empty dark ring, a dim frame (#290)
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="28dp" android:height="28dp" android:viewportWidth="24" android:viewportHeight="24">
<path android:fillColor="#120D0A" android:strokeColor="#B09873" android:strokeWidth="2"
android:pathData="M12,3a9,9 0,1 0,0.001 0z" />
</vector>
12 changes: 12 additions & 0 deletions android/app/src/main/res/drawable/brass_radio_on.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) OpenIPC https://openipc.org MIT License

brass_radio_on.xml — a chosen brass radio button: an amber ring, an amber dot (#290)
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="28dp" android:height="28dp" android:viewportWidth="24" android:viewportHeight="24">
<path android:fillColor="#120D0A" android:strokeColor="#FFB347" android:strokeWidth="2"
android:pathData="M12,3a9,9 0,1 0,0.001 0z" />
<path android:fillColor="#FFB347" android:pathData="M12,7a5,5 0,1 0,0.001 0z" />
</vector>
6 changes: 6 additions & 0 deletions android/app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,16 @@
<item name="android:checkboxStyle">@style/BrassCheck</item>
<item name="android:radioButtonStyle">@style/BrassRadio</item>
</style>
<!-- the box and the ring are the app's own (#290): the system ones, tinted amber, showed
no tick or dot under the remote's focus -->
<style name="BrassCheck" parent="android:Widget.Material.CompoundButton.CheckBox">
<item name="android:background">@drawable/focus_ring</item>
<item name="android:button">@drawable/brass_check</item>
<item name="android:buttonTint">@null</item>
</style>
<style name="BrassRadio" parent="android:Widget.Material.CompoundButton.RadioButton">
<item name="android:background">@drawable/focus_ring</item>
<item name="android:button">@drawable/brass_radio</item>
<item name="android:buttonTint">@null</item>
</style>
</resources>
4 changes: 4 additions & 0 deletions tests/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,10 @@ if [ -n "$SHOTS" ]; then
$ADB shell input keyevent 23
sleep 3
$ADB exec-out screencap -p > "$OUT/shots/tunnel_network.png"
# the remote's focus on a check box (Allow remote access, on): on or off must read (#290)
$ADB shell input keyevent 20
sleep 1
$ADB exec-out screencap -p > "$OUT/shots/tunnel_network_check.png"
# down to the On switch: the dialog scrolls to the cipher, TCP, multicast and On
for _ in 1 2 3 4 5 6 7; do $ADB shell input keyevent 20; sleep 0.4; done
sleep 1
Expand Down
Loading