mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-28 11:29:01 +03:00
Apply correct theme
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
3163a97be4
commit
4f7cf0f8b5
2 changed files with 3 additions and 3 deletions
|
@ -18,14 +18,13 @@ import it.niedermann.owncloud.notes.databinding.ActivityPreferencesBinding;
|
||||||
|
|
||||||
public class PreferencesActivity extends LockedActivity {
|
public class PreferencesActivity extends LockedActivity {
|
||||||
|
|
||||||
private PreferencesViewModel viewModel;
|
|
||||||
private ActivityPreferencesBinding binding;
|
private ActivityPreferencesBinding binding;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
viewModel = new ViewModelProvider(this).get(PreferencesViewModel.class);
|
PreferencesViewModel viewModel = new ViewModelProvider(this).get(PreferencesViewModel.class);
|
||||||
viewModel.resultCode$.observe(this, this::setResult);
|
viewModel.resultCode$.observe(this, this::setResult);
|
||||||
|
|
||||||
binding = ActivityPreferencesBinding.inflate(getLayoutInflater());
|
binding = ActivityPreferencesBinding.inflate(getLayoutInflater());
|
||||||
|
|
|
@ -86,7 +86,8 @@
|
||||||
<style name="PreferencesAlertDialogTheme" parent="MaterialAlertDialogTheme">
|
<style name="PreferencesAlertDialogTheme" parent="MaterialAlertDialogTheme">
|
||||||
<!-- https://m3.material.io/components/dialogs/specs#6771d107-624e-47cc-b6d8-2b7b620ba2f1 -->
|
<!-- https://m3.material.io/components/dialogs/specs#6771d107-624e-47cc-b6d8-2b7b620ba2f1 -->
|
||||||
<item name="dialogCornerRadius">28dp</item>
|
<item name="dialogCornerRadius">28dp</item>
|
||||||
<item name="android:background">?attr/colorSurface</item>
|
<item name="android:background">@color/primary</item>
|
||||||
|
<item name="android:textColor">@color/fg_default</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="buttonStyle" parent="Widget.Material3.Button.TextButton.Dialog">
|
<style name="buttonStyle" parent="Widget.Material3.Button.TextButton.Dialog">
|
||||||
|
|
Loading…
Reference in a new issue