Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:trimble-oss/modus-mobile-maui-co…
Browse files Browse the repository at this point in the history
…mponents into 179-Alert-Dialogue

# Conflicts:
#	DemoApp/DemoApp/MainPage.xaml.cs
  • Loading branch information
Sofiya-kumar committed Aug 31, 2023
2 parents 62ec80c + e0dc453 commit 93fffe6
Show file tree
Hide file tree
Showing 35 changed files with 989 additions and 1,057 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>
22 changes: 12 additions & 10 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,27 +11,30 @@ public MainPage()
InitializeComponent();
ControlNames = new ObservableCollection<string>
{
"Accordion",
"Badge",
"Button",
"Card",
"CheckBox",
"Chips",
"DataGrid",
"Display Alert",
"Input",
"MultiLineInput",
"NumberInput",
"ListView",
"Modal",
"Toast",
"CheckBox",
"Card",
"PopupView",
"ProgressBar",
"RadioButton",
"Spinner",
"SegmentedControl",
"ListView",
"DataGrid",
"PopupView",
"Spinner",
"Switch",
"TabbedPage",
"Badge",
"Accordion",
"Chips",
"Switch",
"ProgressBar",
"Display Alert"
};
BindingContext = this;
}
Expand Down
12 changes: 6 additions & 6 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>
</resources>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<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
2 changes: 0 additions & 2 deletions DemoApp/DemoApp/Views/AccordionSamplePage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
Margin="10">
<Label Text="Size"
FontSize="Large"
FontAttributes="Bold"
HorizontalOptions="Start"
Margin="0,10,0,0" />
<modus:TMRadioButtonGroup x:Name="AccordionSize"
Expand All @@ -28,7 +27,6 @@
</modus:TMRadioButtonGroup>
<Label Text="Chevron Position"
FontSize="Large"
FontAttributes="Bold"
HorizontalOptions="Start"
Margin="0,10,0,0" />
<modus:TMRadioButtonGroup x:Name="PositionGroup"
Expand Down
92 changes: 0 additions & 92 deletions DemoApp/DemoApp/Views/ListViewPage.xaml

This file was deleted.

31 changes: 0 additions & 31 deletions DemoApp/DemoApp/Views/ListViewPage.xaml.cs

This file was deleted.

Loading

0 comments on commit 93fffe6

Please sign in to comment.