Repository navigation
fix: brass check boxes and radio buttons show on and off under the remote's focus (2.27.1) - #291
Conversation
…mote's focus (2.27.1) The system Material check box and radio button, tinted amber, became a solid amber box or circle with no tick or dot under the remote's focus (a SberBox, Android 13). The app's own drawables now (brass_check, brass_radio; no buttonTint): checked an amber box with a dark tick or an amber ring with an amber dot, unchecked an empty dark box or ring with a dim frame; focus_ring stays around the row. Wired through the BrassDialog theme and Brass.style. tests/e2e.sh (SHOTS): a screenshot with the focus on a check box. Closes #290
PR Summary by QodoKeep brass checkbox and radio states visible under remote focus
AI Description
Merge Risk
|
Code Review by Qodo
1. Check boxes get different padding depending on how they are built
|
|
Qodo review on 0b5ce73 — both left as they are:
|
Closes #290. Seen by the owner on a SberBox (Android 13, Decoder 2.26.0): in Settings, Allow remote access on and focused showed a solid amber square with no tick; a chosen radio button with the focus showed a solid amber circle with no dot.
Cause: the system Material check box / radio button tinted amber (
buttonTint); under focus their state layer fills the mark's cut-out with the same amber.Fix (agreed with the brand project; the drawables go to its brass template as 1.4.0):
res/drawable/brass_check.xml(selector) withbrass_check_on.xml(an amber box, a dark tick) andbrass_check_off.xml(an empty dark box, a dim frame);brass_radio.xmlwithbrass_radio_on.xml(an amber ring, an amber dot) andbrass_radio_off.xml(an empty dark ring, a dim frame). Vector drawables, colours as hex (the brass palette), API 21+.BrassCheck/BrassRadiostyles:android:buttonthe drawable,android:buttonTint@null;focus_ring.xmlstays the row's background.Brass.stylesets the same on views made with the activity's context.tests/e2e.shwithSHOTS=1also takes a screenshot with the focus on a check box.Tests (local, Docker): build, unit tests, lint (13 as before); e2e
TRANSPORT=TCPAPI 21 20/20, API 34 20/20;SHOTS=1API 34: the focused check box shows its tick inside the amber frame, radio buttons read; API 21: the drawables render (that SHOTS run missed a picture from the emulator's software decoder, as noted in the script).