mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-04 20:30:36 +00:00
Add dark theme variants of the fullscreen style
This commit is contained in:
parent
1bd9cf3a3f
commit
1f0c51b45b
3 changed files with 32 additions and 1 deletions
|
@ -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
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue