mirror of
https://github.com/bitwarden/mobile
synced 2025-12-17 08:43:21 +00:00
home page buttons
This commit is contained in:
@@ -28,7 +28,7 @@ namespace Bit.App
|
|||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
SetCulture();
|
SetCulture();
|
||||||
ThemeManager.SetTheme("light");
|
ThemeManager.SetTheme("light");
|
||||||
MainPage = new TabsPage();
|
MainPage = new HomePage();
|
||||||
|
|
||||||
ServiceContainer.Resolve<MobilePlatformUtilsService>("platformUtilsService").Init();
|
ServiceContainer.Resolve<MobilePlatformUtilsService>("platformUtilsService").Init();
|
||||||
_broadcasterService.Subscribe<DialogDetails>("showDialog", async (details) =>
|
_broadcasterService.Subscribe<DialogDetails>("showDialog", async (details) =>
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
x:Class="Bit.App.Pages.HomePage"
|
x:Class="Bit.App.Pages.HomePage"
|
||||||
xmlns:pages="clr-namespace:Bit.App.Pages"
|
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"
|
x:DataType="pages:HomeViewModel"
|
||||||
Title="{Binding PageTitle}">
|
Title="{Binding PageTitle}">
|
||||||
<ContentPage.BindingContext>
|
<ContentPage.BindingContext>
|
||||||
@@ -11,22 +13,19 @@
|
|||||||
</ContentPage.BindingContext>
|
</ContentPage.BindingContext>
|
||||||
|
|
||||||
<StackLayout>
|
<StackLayout>
|
||||||
<!-- Place new controls here -->
|
<Button Text=""
|
||||||
<Label
|
class="fa"
|
||||||
Text="Home Page!"
|
HorizontalOptions="Start"></Button>
|
||||||
HorizontalOptions="Center"
|
<StackLayout VerticalOptions="CenterAndExpand">
|
||||||
VerticalOptions="CenterAndExpand" />
|
<Image Source="logo.png"
|
||||||
<Label
|
VerticalOptions="Center" />
|
||||||
Text=""
|
<Label Text="{i18n:Translate LoginOrCreateNewAccount}"
|
||||||
HorizontalOptions="Center"
|
class="text-lg"
|
||||||
VerticalOptions="CenterAndExpand">
|
HorizontalTextAlignment="Center"></Label>
|
||||||
|
<Button Text="{i18n:Translate LogIn}"
|
||||||
<Label.FontFamily>
|
android:Button.UseDefaultShadow="false"></Button>
|
||||||
<OnPlatform x:TypeArguments="x:String"
|
<Button Text="{i18n:Translate CreateAccount}"></Button>
|
||||||
Android="FontAwesome.ttf#FontAwesome"
|
</StackLayout>
|
||||||
iOS="FontAwesome" />
|
|
||||||
</Label.FontFamily>
|
|
||||||
</Label>
|
|
||||||
</StackLayout>
|
</StackLayout>
|
||||||
|
|
||||||
</ContentPage>
|
</ContentPage>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
@import "variables.scss";
|
@import "variables.scss";
|
||||||
|
|
||||||
__ContentPage {
|
__ContentPage {
|
||||||
background-color: $white;
|
// background-color: $white;
|
||||||
}
|
}
|
||||||
|
|
||||||
StackLayout.list-cell {
|
StackLayout.list-cell {
|
||||||
|
|||||||
Reference in New Issue
Block a user