mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 02:18:27 +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();
|
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 {
|
||||||
|
|
Loading…
Reference in a new issue