Skip to content

Commit

Permalink
Modify DemoApp
Browse files Browse the repository at this point in the history
Modify AppIcon,SplashIcon
Modify Colors of Theme
Modfiy ListView to TMListView
Modify order of Controls
  • Loading branch information
ElishaSamPeterPrabhu committed Aug 30, 2023
1 parent 7480155 commit 4609f85
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 37 deletions.
4 changes: 2 additions & 2 deletions DemoApp/DemoApp/DemoApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@
</PropertyGroup>
<ItemGroup>
<!-- App Icon -->
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" />
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#0063a3" />

<!-- Splash Screen -->
<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" />
<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#0063a3" BaseSize="128,128"/>

<!-- Images -->
<MauiImage Include="Resources\Images\*" />
Expand Down
20 changes: 8 additions & 12 deletions DemoApp/DemoApp/MainPage.xaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:modus="clr-namespace:Trimble.Modus.Components;assembly=Trimble.Modus.Components"
Title="Controls Page"
x:Class="DemoApp.MainPage">
<ListView ItemsSource="{Binding ControlNames}"
ItemTapped="ItemTapped">
<ListView.ItemTemplate>

<modus:TMListView ItemsSource="{Binding ControlNames}"
ItemTapped="ItemTapped">
<modus:TMListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout HorizontalOptions="Center" VerticalOptions="Center">
<Label Text="{Binding}"
HorizontalOptions="Center"
VerticalOptions="Center" />
</StackLayout>
</ViewCell>
<modus:TextCell Title="{Binding}"></modus:TextCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</modus:TMListView.ItemTemplate>
</modus:TMListView>
</ContentPage>
28 changes: 14 additions & 14 deletions DemoApp/DemoApp/MainPage.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using DemoApp.Views;
using System.Collections.ObjectModel;
using Trimble.Modus.Components.Popup.Services;

namespace DemoApp
{
Expand All @@ -12,26 +11,27 @@ public MainPage()
InitializeComponent();
ControlNames = new ObservableCollection<string>
{
"Accordion",
"Badge",
"Button",
"Card",
"CheckBox",
"Chips",
"DataGrid",
"Input",
"MultiLineInput",
"NumberInput",
"ListView",
"Modal",
"Toast",
"CheckBox",
"Card",
"PopupView",
"ProgressBar",
"RadioButton",
"Spinner",
"SegmentedControl",
"ListView",
"DataGrid",
"PopupView",
"TabbedPage",
"Badge",
"Accordion",
"Chips",
"Spinner",
"Switch",
"ProgressBar"
"TabbedPage",
"Toast"

};
BindingContext = this;
}
Expand Down Expand Up @@ -100,7 +100,7 @@ private void ItemTapped(object sender, ItemTappedEventArgs e)
break;
case "Switch":
Navigation.PushAsync(new SwitchSamplePage());
break;
break;
default:
Console.WriteLine("Default Case");
break;
Expand Down
6 changes: 3 additions & 3 deletions DemoApp/DemoApp/Platforms/Android/Resources/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#512BD4</color>
<color name="colorPrimaryDark">#2B0B98</color>
<color name="colorAccent">#2B0B98</color>
<color name="colorPrimary">#0063a3</color>
<color name="colorPrimaryDark">#0063a3</color>
<color name="colorAccent">#0063a3</color>
</resources>
10 changes: 9 additions & 1 deletion DemoApp/DemoApp/Resources/AppIcon/appicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 11 additions & 1 deletion DemoApp/DemoApp/Resources/AppIcon/appiconfg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion DemoApp/DemoApp/Resources/Splash/splash.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions DemoApp/DemoApp/Resources/Styles/Colors.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">

<Color x:Key="Primary">#512BD4</Color>
<Color x:Key="Secondary">#DFD8F7</Color>
<Color x:Key="Tertiary">#2B0B98</Color>
<Color x:Key="Primary">#0063a3</Color>
<Color x:Key="Secondary">#0063a3</Color>
<Color x:Key="Tertiary">#0063a3</Color>
<Color x:Key="White">White</Color>
<Color x:Key="Black">Black</Color>
<Color x:Key="Gray100">#E1E1E1</Color>
Expand Down

0 comments on commit 4609f85

Please sign in to comment.