Added Themes + Toggle

This commit is contained in:
Patrick Hellebrand
2021-09-23 15:31:30 +02:00
parent 15679951bc
commit de2d135fdf
5 changed files with 25 additions and 10 deletions

View File

@@ -36,6 +36,7 @@ namespace PolyChat.Views
Secondary = secondary.Action;
// show
MainPage.SafelyOpenDialog(this);
RequestedTheme = MainPage.GetTheme();
}
private void setType(string type, string message)

View File

@@ -22,6 +22,7 @@ namespace PolyChat.Views
if (initialValue == null || initialValue.Length == 0) IsSecondaryButtonEnabled = false;
else input.Text = initialValue;
validate();
RequestedTheme = MainPage.GetTheme();
}
public string getValue()

View File

@@ -20,6 +20,7 @@ namespace PolyChat.Views
{
this.InitializeComponent();
IsPrimaryButtonEnabled = false;
RequestedTheme = MainPage.GetTheme();
}
public string getValue()