mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 01:48:25 +03:00
home page buttons
This commit is contained in:
parent
aec2855db9
commit
0c93fc2662
3 changed files with 17 additions and 18 deletions
|
@ -28,7 +28,7 @@ namespace Bit.App
|
|||
InitializeComponent();
|
||||
SetCulture();
|
||||
ThemeManager.SetTheme("light");
|
||||
MainPage = new TabsPage();
|
||||
MainPage = new HomePage();
|
||||
|
||||
ServiceContainer.Resolve<MobilePlatformUtilsService>("platformUtilsService").Init();
|
||||
_broadcasterService.Subscribe<DialogDetails>("showDialog", async (details) =>
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="Bit.App.Pages.HomePage"
|
||||
xmlns:pages="clr-namespace:Bit.App.Pages"
|
||||
xmlns:i18n="clr-namespace:Bit.App.Utilities"
|
||||
xmlns:android="clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core"
|
||||
x:DataType="pages:HomeViewModel"
|
||||
Title="{Binding PageTitle}">
|
||||
<ContentPage.BindingContext>
|
||||
|
@ -11,22 +13,19 @@
|
|||
</ContentPage.BindingContext>
|
||||
|
||||
<StackLayout>
|
||||
<!-- Place new controls here -->
|
||||
<Label
|
||||
Text="Home Page!"
|
||||
HorizontalOptions="Center"
|
||||
VerticalOptions="CenterAndExpand" />
|
||||
<Label
|
||||
Text=""
|
||||
HorizontalOptions="Center"
|
||||
VerticalOptions="CenterAndExpand">
|
||||
|
||||
<Label.FontFamily>
|
||||
<OnPlatform x:TypeArguments="x:String"
|
||||
Android="FontAwesome.ttf#FontAwesome"
|
||||
iOS="FontAwesome" />
|
||||
</Label.FontFamily>
|
||||
</Label>
|
||||
<Button Text=""
|
||||
class="fa"
|
||||
HorizontalOptions="Start"></Button>
|
||||
<StackLayout VerticalOptions="CenterAndExpand">
|
||||
<Image Source="logo.png"
|
||||
VerticalOptions="Center" />
|
||||
<Label Text="{i18n:Translate LoginOrCreateNewAccount}"
|
||||
class="text-lg"
|
||||
HorizontalTextAlignment="Center"></Label>
|
||||
<Button Text="{i18n:Translate LogIn}"
|
||||
android:Button.UseDefaultShadow="false"></Button>
|
||||
<Button Text="{i18n:Translate CreateAccount}"></Button>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
|
||||
</ContentPage>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
@import "variables.scss";
|
||||
|
||||
__ContentPage {
|
||||
background-color: $white;
|
||||
// background-color: $white;
|
||||
}
|
||||
|
||||
StackLayout.list-cell {
|
||||
|
|
Loading…
Reference in a new issue