Add dark theme variants of the fullscreen style

This commit is contained in:
deadmeu 2021-01-08 00:21:10 +10:00
parent 1bd9cf3a3f
commit 1f0c51b45b
3 changed files with 32 additions and 1 deletions

View file

@ -20,4 +20,10 @@ public class ThemeMap {
Theme.DARK, R.style.AppTheme_Dark_NoActionBar,
Theme.AMOLED, R.style.AppTheme_TrueBlack_NoActionBar
);
public static final Map<Theme, Integer> FULLSCREEN = ImmutableMap.of(
Theme.LIGHT, R.style.AppTheme_Fullscreen,
Theme.DARK, R.style.AppTheme_Fullscreen_Dark,
Theme.AMOLED, R.style.AppTheme_Fullscreen_TrueBlack
);
}

View file

@ -17,6 +17,7 @@ import androidx.camera.view.PreviewView;
import androidx.core.content.ContextCompat;
import com.beemdevelopment.aegis.R;
import com.beemdevelopment.aegis.ThemeMap;
import com.beemdevelopment.aegis.helpers.QrCodeAnalyzer;
import com.beemdevelopment.aegis.otp.GoogleAuthInfo;
import com.beemdevelopment.aegis.otp.GoogleAuthInfoException;
@ -77,7 +78,7 @@ public class ScannerActivity extends AegisActivity implements QrCodeAnalyzer.Lis
@Override
protected void onSetTheme() {
setTheme(R.style.AppTheme_Fullscreen);
setTheme(ThemeMap.FULLSCREEN);
}
@Override