1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 12:44:42 +00:00

Low light FTS options

This commit is contained in:
M66B 2021-09-28 07:21:00 +02:00
parent 2efe44bb76
commit de8162a88e

View file

@ -250,9 +250,16 @@ public class FragmentDialogSearch extends FragmentDialogBase {
cbSearchIndex.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
cbSenders.setAlpha(isChecked ? Helper.LOW_LIGHT : 1.0f);
cbRecipients.setAlpha(isChecked ? Helper.LOW_LIGHT : 1.0f);
cbSubject.setAlpha(isChecked ? Helper.LOW_LIGHT : 1.0f);
cbKeywords.setAlpha(isChecked ? Helper.LOW_LIGHT : 1.0f);
cbMessage.setAlpha(isChecked ? Helper.LOW_LIGHT : 1.0f);
cbNotes.setEnabled(!isChecked);
cbHeaders.setEnabled(!isChecked);
cbHtml.setEnabled(!isChecked);
cbUnseen.setAlpha(isChecked ? Helper.LOW_LIGHT : 1.0f);
cbFlagged.setAlpha(isChecked ? Helper.LOW_LIGHT : 1.0f);
cbHidden.setEnabled(!isChecked);
cbEncrypted.setEnabled(!isChecked);
cbAttachments.setEnabled(!isChecked);