@ -0,0 +1,63 @@
|
|||||||
|
###############################################################################
|
||||||
|
# Set default behavior to automatically normalize line endings.
|
||||||
|
###############################################################################
|
||||||
|
* text=auto
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# Set default behavior for command prompt diff.
|
||||||
|
#
|
||||||
|
# This is need for earlier builds of msysgit that does not have it on by
|
||||||
|
# default for csharp files.
|
||||||
|
# Note: This is only used by command line
|
||||||
|
###############################################################################
|
||||||
|
#*.cs diff=csharp
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# Set the merge driver for project and solution files
|
||||||
|
#
|
||||||
|
# Merging from the command prompt will add diff markers to the files if there
|
||||||
|
# are conflicts (Merging from VS is not affected by the settings below, in VS
|
||||||
|
# the diff markers are never inserted). Diff markers may cause the following
|
||||||
|
# file extensions to fail to load in VS. An alternative would be to treat
|
||||||
|
# these files as binary and thus will always conflict and require user
|
||||||
|
# intervention with every merge. To do so, just uncomment the entries below
|
||||||
|
###############################################################################
|
||||||
|
#*.sln merge=binary
|
||||||
|
#*.csproj merge=binary
|
||||||
|
#*.vbproj merge=binary
|
||||||
|
#*.vcxproj merge=binary
|
||||||
|
#*.vcproj merge=binary
|
||||||
|
#*.dbproj merge=binary
|
||||||
|
#*.fsproj merge=binary
|
||||||
|
#*.lsproj merge=binary
|
||||||
|
#*.wixproj merge=binary
|
||||||
|
#*.modelproj merge=binary
|
||||||
|
#*.sqlproj merge=binary
|
||||||
|
#*.wwaproj merge=binary
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# behavior for image files
|
||||||
|
#
|
||||||
|
# image files are treated as binary by default.
|
||||||
|
###############################################################################
|
||||||
|
#*.jpg binary
|
||||||
|
#*.png binary
|
||||||
|
#*.gif binary
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# diff behavior for common document formats
|
||||||
|
#
|
||||||
|
# Convert binary document formats to text before diffing them. This feature
|
||||||
|
# is only available from the command line. Turn it on by uncommenting the
|
||||||
|
# entries below.
|
||||||
|
###############################################################################
|
||||||
|
#*.doc diff=astextplain
|
||||||
|
#*.DOC diff=astextplain
|
||||||
|
#*.docx diff=astextplain
|
||||||
|
#*.DOCX diff=astextplain
|
||||||
|
#*.dot diff=astextplain
|
||||||
|
#*.DOT diff=astextplain
|
||||||
|
#*.pdf diff=astextplain
|
||||||
|
#*.PDF diff=astextplain
|
||||||
|
#*.rtf diff=astextplain
|
||||||
|
#*.RTF diff=astextplain
|
@ -0,0 +1,14 @@
|
|||||||
|
<?xml version = "1.0" encoding = "UTF-8" ?>
|
||||||
|
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
xmlns:local="clr-namespace:LivreLand"
|
||||||
|
x:Class="LivreLand.App">
|
||||||
|
<Application.Resources>
|
||||||
|
<ResourceDictionary>
|
||||||
|
<ResourceDictionary.MergedDictionaries>
|
||||||
|
<ResourceDictionary Source="Resources/Styles/Colors.xaml" />
|
||||||
|
<ResourceDictionary Source="Resources/Styles/Styles.xaml" />
|
||||||
|
</ResourceDictionary.MergedDictionaries>
|
||||||
|
</ResourceDictionary>
|
||||||
|
</Application.Resources>
|
||||||
|
</Application>
|
@ -0,0 +1,28 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<Shell
|
||||||
|
x:Class="LivreLand.AppShell"
|
||||||
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
xmlns:local="clr-namespace:LivreLand"
|
||||||
|
xmlns:view="clr-namespace:LivreLand.View"
|
||||||
|
Shell.FlyoutBehavior="Disabled"
|
||||||
|
Shell.NavBarIsVisible="False"
|
||||||
|
Shell.TabBarTitleColor="Red">
|
||||||
|
|
||||||
|
<TabBar>
|
||||||
|
<ShellContent Title="My Library"
|
||||||
|
ContentTemplate="{DataTemplate view:BibliothequeView}"
|
||||||
|
Icon="books_vertical_fill.png"/>
|
||||||
|
<ShellContent Title="My Lists"
|
||||||
|
ContentTemplate="{DataTemplate view:TousView}"
|
||||||
|
Icon="list_bullet.svg"/>
|
||||||
|
<ShellContent Title="My Readings"
|
||||||
|
ContentTemplate="{DataTemplate view:EmpruntsPretsView}"
|
||||||
|
Icon="bookmark_fill"/>
|
||||||
|
<ShellContent Title="Search"
|
||||||
|
ContentTemplate="{DataTemplate view:FiltrageDateView}"
|
||||||
|
Icon="magnifying_glass.png"/>
|
||||||
|
</TabBar>
|
||||||
|
|
||||||
|
|
||||||
|
</Shell>
|
@ -0,0 +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>
|
@ -0,0 +1,30 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>UIDeviceFamily</key>
|
||||||
|
<array>
|
||||||
|
<integer>1</integer>
|
||||||
|
<integer>2</integer>
|
||||||
|
</array>
|
||||||
|
<key>UIRequiredDeviceCapabilities</key>
|
||||||
|
<array>
|
||||||
|
<string>arm64</string>
|
||||||
|
</array>
|
||||||
|
<key>UISupportedInterfaceOrientations</key>
|
||||||
|
<array>
|
||||||
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
|
</array>
|
||||||
|
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||||
|
<array>
|
||||||
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
|
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
|
</array>
|
||||||
|
<key>XSAppIconAssets</key>
|
||||||
|
<string>Assets.xcassets/appicon.appiconset</string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
@ -0,0 +1,16 @@
|
|||||||
|
using System;
|
||||||
|
using Microsoft.Maui;
|
||||||
|
using Microsoft.Maui.Hosting;
|
||||||
|
|
||||||
|
namespace LivreLand;
|
||||||
|
|
||||||
|
class Program : MauiApplication
|
||||||
|
{
|
||||||
|
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
|
||||||
|
|
||||||
|
static void Main(string[] args)
|
||||||
|
{
|
||||||
|
var app = new Program();
|
||||||
|
app.Run(args);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
<maui:MauiWinUIApplication
|
||||||
|
x:Class="LivreLand.WinUI.App"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:maui="using:Microsoft.Maui"
|
||||||
|
xmlns:local="using:LivreLand.WinUI">
|
||||||
|
|
||||||
|
</maui:MauiWinUIApplication>
|
@ -0,0 +1,46 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Package
|
||||||
|
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
|
||||||
|
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
|
||||||
|
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
|
||||||
|
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
|
||||||
|
IgnorableNamespaces="uap rescap">
|
||||||
|
|
||||||
|
<Identity Name="maui-package-name-placeholder" Publisher="CN=User Name" Version="0.0.0.0" />
|
||||||
|
|
||||||
|
<mp:PhoneIdentity PhoneProductId="AD43D486-023C-4035-818C-138A5EAFC5AF" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
|
||||||
|
|
||||||
|
<Properties>
|
||||||
|
<DisplayName>$placeholder$</DisplayName>
|
||||||
|
<PublisherDisplayName>User Name</PublisherDisplayName>
|
||||||
|
<Logo>$placeholder$.png</Logo>
|
||||||
|
</Properties>
|
||||||
|
|
||||||
|
<Dependencies>
|
||||||
|
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
|
||||||
|
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
|
||||||
|
</Dependencies>
|
||||||
|
|
||||||
|
<Resources>
|
||||||
|
<Resource Language="x-generate" />
|
||||||
|
</Resources>
|
||||||
|
|
||||||
|
<Applications>
|
||||||
|
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="$targetentrypoint$">
|
||||||
|
<uap:VisualElements
|
||||||
|
DisplayName="$placeholder$"
|
||||||
|
Description="$placeholder$"
|
||||||
|
Square150x150Logo="$placeholder$.png"
|
||||||
|
Square44x44Logo="$placeholder$.png"
|
||||||
|
BackgroundColor="transparent">
|
||||||
|
<uap:DefaultTile Square71x71Logo="$placeholder$.png" Wide310x150Logo="$placeholder$.png" Square310x310Logo="$placeholder$.png" />
|
||||||
|
<uap:SplashScreen Image="$placeholder$.png" />
|
||||||
|
</uap:VisualElements>
|
||||||
|
</Application>
|
||||||
|
</Applications>
|
||||||
|
|
||||||
|
<Capabilities>
|
||||||
|
<rescap:Capability Name="runFullTrust" />
|
||||||
|
</Capabilities>
|
||||||
|
|
||||||
|
</Package>
|
@ -0,0 +1,15 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||||
|
<assemblyIdentity version="1.0.0.0" name="LivreLand.WinUI.app"/>
|
||||||
|
|
||||||
|
<application xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||||
|
<windowsSettings>
|
||||||
|
<!-- The combination of below two tags have the following effect:
|
||||||
|
1) Per-Monitor for >= Windows 10 Anniversary Update
|
||||||
|
2) System < Windows 10 Anniversary Update
|
||||||
|
-->
|
||||||
|
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/PM</dpiAware>
|
||||||
|
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, PerMonitor</dpiAwareness>
|
||||||
|
</windowsSettings>
|
||||||
|
</application>
|
||||||
|
</assembly>
|
@ -0,0 +1,32 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>LSRequiresIPhoneOS</key>
|
||||||
|
<true/>
|
||||||
|
<key>UIDeviceFamily</key>
|
||||||
|
<array>
|
||||||
|
<integer>1</integer>
|
||||||
|
<integer>2</integer>
|
||||||
|
</array>
|
||||||
|
<key>UIRequiredDeviceCapabilities</key>
|
||||||
|
<array>
|
||||||
|
<string>arm64</string>
|
||||||
|
</array>
|
||||||
|
<key>UISupportedInterfaceOrientations</key>
|
||||||
|
<array>
|
||||||
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
|
</array>
|
||||||
|
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||||
|
<array>
|
||||||
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
|
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
|
</array>
|
||||||
|
<key>XSAppIconAssets</key>
|
||||||
|
<string>Assets.xcassets/appicon.appiconset</string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"profiles": {
|
||||||
|
"Windows Machine": {
|
||||||
|
"commandName": "MsixPackage",
|
||||||
|
"nativeDebugging": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
After Width: | Height: | Size: 56 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 785 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1015 B |
After Width: | Height: | Size: 703 B |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 560 B |
After Width: | Height: | Size: 108 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 714 B |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 934 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 761 B |
After Width: | Height: | Size: 564 B |
After Width: | Height: | Size: 7.3 KiB |
After Width: | Height: | Size: 889 B |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 167 B |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 921 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 2.3 KiB |
@ -0,0 +1,15 @@
|
|||||||
|
Any raw assets you want to be deployed with your application can be placed in
|
||||||
|
this directory (and child directories). Deployment of the asset to your application
|
||||||
|
is automatically handled by the following `MauiAsset` Build Action within your `.csproj`.
|
||||||
|
|
||||||
|
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
|
||||||
|
|
||||||
|
These files will be deployed with you package and will be accessible using Essentials:
|
||||||
|
|
||||||
|
async Task LoadMauiAsset()
|
||||||
|
{
|
||||||
|
using var stream = await FileSystem.OpenAppPackageFileAsync("AboutAssets.txt");
|
||||||
|
using var reader = new StreamReader(stream);
|
||||||
|
|
||||||
|
var contents = reader.ReadToEnd();
|
||||||
|
}
|
After Width: | Height: | Size: 1.8 KiB |
@ -0,0 +1,54 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<?xaml-comp compile="true" ?>
|
||||||
|
<ResourceDictionary
|
||||||
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
|
||||||
|
|
||||||
|
<Color x:Key="Gray">#e1e1e1</Color>
|
||||||
|
<Color x:Key="TextGray">#5b5b5b</Color>
|
||||||
|
<Color x:Key="LightGray">#f8f8f8</Color>
|
||||||
|
<Color x:Key="HeaderGray">#f2f0f6</Color>
|
||||||
|
<Color x:Key="HeaderSeparatorGray">#c9c9cb</Color>
|
||||||
|
|
||||||
|
<Color x:Key="PopupBackground">#f5f5f5</Color>
|
||||||
|
|
||||||
|
<Color x:Key="PinkOrange">#fd0342</Color>
|
||||||
|
|
||||||
|
<Color x:Key="Primary">#512BD4</Color>
|
||||||
|
<Color x:Key="Secondary">#DFD8F7</Color>
|
||||||
|
<Color x:Key="Tertiary">#2B0B98</Color>
|
||||||
|
<Color x:Key="White">White</Color>
|
||||||
|
<Color x:Key="Black">Black</Color>
|
||||||
|
<Color x:Key="Gray100">#E1E1E1</Color>
|
||||||
|
<Color x:Key="Gray200">#C8C8C8</Color>
|
||||||
|
<Color x:Key="Gray300">#ACACAC</Color>
|
||||||
|
<Color x:Key="Gray400">#919191</Color>
|
||||||
|
<Color x:Key="Gray500">#6E6E6E</Color>
|
||||||
|
<Color x:Key="Gray600">#404040</Color>
|
||||||
|
<Color x:Key="Gray900">#212121</Color>
|
||||||
|
<Color x:Key="Gray950">#141414</Color>
|
||||||
|
<SolidColorBrush x:Key="PrimaryBrush" Color="{StaticResource Primary}"/>
|
||||||
|
<SolidColorBrush x:Key="SecondaryBrush" Color="{StaticResource Secondary}"/>
|
||||||
|
<SolidColorBrush x:Key="TertiaryBrush" Color="{StaticResource Tertiary}"/>
|
||||||
|
<SolidColorBrush x:Key="WhiteBrush" Color="{StaticResource White}"/>
|
||||||
|
<SolidColorBrush x:Key="BlackBrush" Color="{StaticResource Black}"/>
|
||||||
|
<SolidColorBrush x:Key="Gray100Brush" Color="{StaticResource Gray100}"/>
|
||||||
|
<SolidColorBrush x:Key="Gray200Brush" Color="{StaticResource Gray200}"/>
|
||||||
|
<SolidColorBrush x:Key="Gray300Brush" Color="{StaticResource Gray300}"/>
|
||||||
|
<SolidColorBrush x:Key="Gray400Brush" Color="{StaticResource Gray400}"/>
|
||||||
|
<SolidColorBrush x:Key="Gray500Brush" Color="{StaticResource Gray500}"/>
|
||||||
|
<SolidColorBrush x:Key="Gray600Brush" Color="{StaticResource Gray600}"/>
|
||||||
|
<SolidColorBrush x:Key="Gray900Brush" Color="{StaticResource Gray900}"/>
|
||||||
|
<SolidColorBrush x:Key="Gray950Brush" Color="{StaticResource Gray950}"/>
|
||||||
|
|
||||||
|
<Color x:Key="Yellow100Accent">#F7B548</Color>
|
||||||
|
<Color x:Key="Yellow200Accent">#FFD590</Color>
|
||||||
|
<Color x:Key="Yellow300Accent">#FFE5B9</Color>
|
||||||
|
<Color x:Key="Cyan100Accent">#28C2D1</Color>
|
||||||
|
<Color x:Key="Cyan200Accent">#7BDDEF</Color>
|
||||||
|
<Color x:Key="Cyan300Accent">#C3F2F4</Color>
|
||||||
|
<Color x:Key="Blue100Accent">#3E8EED</Color>
|
||||||
|
<Color x:Key="Blue200Accent">#72ACF1</Color>
|
||||||
|
<Color x:Key="Blue300Accent">#A7CBF6</Color>
|
||||||
|
|
||||||
|
</ResourceDictionary>
|
@ -0,0 +1,461 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<?xaml-comp compile="true" ?>
|
||||||
|
<ResourceDictionary
|
||||||
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
|
||||||
|
|
||||||
|
<Style TargetType="ActivityIndicator">
|
||||||
|
<Setter Property="Color" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="IndicatorView">
|
||||||
|
<Setter Property="IndicatorColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}"/>
|
||||||
|
<Setter Property="SelectedIndicatorColor" Value="{AppThemeBinding Light={StaticResource Gray950}, Dark={StaticResource Gray100}}"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Border">
|
||||||
|
<Setter Property="Stroke" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" />
|
||||||
|
<Setter Property="StrokeShape" Value="Rectangle"/>
|
||||||
|
<Setter Property="StrokeThickness" Value="1"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="BoxView">
|
||||||
|
<Setter Property="Color" Value="{AppThemeBinding Light={StaticResource Gray950}, Dark={StaticResource Gray200}}" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Button">
|
||||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Primary}}" />
|
||||||
|
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||||
|
<Setter Property="FontFamily" Value="OpenSansRegular"/>
|
||||||
|
<Setter Property="FontSize" Value="14"/>
|
||||||
|
<Setter Property="CornerRadius" Value="8"/>
|
||||||
|
<Setter Property="Padding" Value="14,10"/>
|
||||||
|
<Setter Property="MinimumHeightRequest" Value="44"/>
|
||||||
|
<Setter Property="MinimumWidthRequest" Value="44"/>
|
||||||
|
<Setter Property="VisualStateManager.VisualStateGroups">
|
||||||
|
<VisualStateGroupList>
|
||||||
|
<VisualStateGroup x:Name="CommonStates">
|
||||||
|
<VisualState x:Name="Normal" />
|
||||||
|
<VisualState x:Name="Disabled">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray950}, Dark={StaticResource Gray200}}" />
|
||||||
|
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray600}}" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateGroupList>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="CheckBox">
|
||||||
|
<Setter Property="Color" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||||
|
<Setter Property="MinimumHeightRequest" Value="44"/>
|
||||||
|
<Setter Property="MinimumWidthRequest" Value="44"/>
|
||||||
|
<Setter Property="VisualStateManager.VisualStateGroups">
|
||||||
|
<VisualStateGroupList>
|
||||||
|
<VisualStateGroup x:Name="CommonStates">
|
||||||
|
<VisualState x:Name="Normal" />
|
||||||
|
<VisualState x:Name="Disabled">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter Property="Color" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateGroupList>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="DatePicker">
|
||||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" />
|
||||||
|
<Setter Property="BackgroundColor" Value="Transparent" />
|
||||||
|
<Setter Property="FontFamily" Value="OpenSansRegular"/>
|
||||||
|
<Setter Property="FontSize" Value="14"/>
|
||||||
|
<Setter Property="MinimumHeightRequest" Value="44"/>
|
||||||
|
<Setter Property="MinimumWidthRequest" Value="44"/>
|
||||||
|
<Setter Property="VisualStateManager.VisualStateGroups">
|
||||||
|
<VisualStateGroupList>
|
||||||
|
<VisualStateGroup x:Name="CommonStates">
|
||||||
|
<VisualState x:Name="Normal" />
|
||||||
|
<VisualState x:Name="Disabled">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateGroupList>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Editor">
|
||||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}" />
|
||||||
|
<Setter Property="BackgroundColor" Value="Transparent" />
|
||||||
|
<Setter Property="FontFamily" Value="OpenSansRegular"/>
|
||||||
|
<Setter Property="FontSize" Value="14" />
|
||||||
|
<Setter Property="PlaceholderColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" />
|
||||||
|
<Setter Property="MinimumHeightRequest" Value="44"/>
|
||||||
|
<Setter Property="MinimumWidthRequest" Value="44"/>
|
||||||
|
<Setter Property="VisualStateManager.VisualStateGroups">
|
||||||
|
<VisualStateGroupList>
|
||||||
|
<VisualStateGroup x:Name="CommonStates">
|
||||||
|
<VisualState x:Name="Normal" />
|
||||||
|
<VisualState x:Name="Disabled">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateGroupList>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Entry">
|
||||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}" />
|
||||||
|
<Setter Property="BackgroundColor" Value="Transparent" />
|
||||||
|
<Setter Property="FontFamily" Value="OpenSansRegular"/>
|
||||||
|
<Setter Property="FontSize" Value="14" />
|
||||||
|
<Setter Property="PlaceholderColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" />
|
||||||
|
<Setter Property="MinimumHeightRequest" Value="44"/>
|
||||||
|
<Setter Property="MinimumWidthRequest" Value="44"/>
|
||||||
|
<Setter Property="VisualStateManager.VisualStateGroups">
|
||||||
|
<VisualStateGroupList>
|
||||||
|
<VisualStateGroup x:Name="CommonStates">
|
||||||
|
<VisualState x:Name="Normal" />
|
||||||
|
<VisualState x:Name="Disabled">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateGroupList>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Frame">
|
||||||
|
<Setter Property="HasShadow" Value="False" />
|
||||||
|
<Setter Property="BorderColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray950}}" />
|
||||||
|
<Setter Property="CornerRadius" Value="8" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="ImageButton">
|
||||||
|
<Setter Property="Opacity" Value="1" />
|
||||||
|
<Setter Property="BorderColor" Value="Transparent"/>
|
||||||
|
<Setter Property="BorderWidth" Value="0"/>
|
||||||
|
<Setter Property="CornerRadius" Value="0"/>
|
||||||
|
<Setter Property="MinimumHeightRequest" Value="44"/>
|
||||||
|
<Setter Property="MinimumWidthRequest" Value="44"/>
|
||||||
|
<Setter Property="VisualStateManager.VisualStateGroups">
|
||||||
|
<VisualStateGroupList>
|
||||||
|
<VisualStateGroup x:Name="CommonStates">
|
||||||
|
<VisualState x:Name="Normal" />
|
||||||
|
<VisualState x:Name="Disabled">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter Property="Opacity" Value="0.5" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateGroupList>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Label">
|
||||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" />
|
||||||
|
<Setter Property="BackgroundColor" Value="Transparent" />
|
||||||
|
<Setter Property="FontFamily" Value="OpenSansRegular" />
|
||||||
|
<Setter Property="FontSize" Value="14" />
|
||||||
|
<Setter Property="VisualStateManager.VisualStateGroups">
|
||||||
|
<VisualStateGroupList>
|
||||||
|
<VisualStateGroup x:Name="CommonStates">
|
||||||
|
<VisualState x:Name="Normal" />
|
||||||
|
<VisualState x:Name="Disabled">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateGroupList>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Label" x:Key="HeaderTitle">
|
||||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"/>
|
||||||
|
<Setter Property="FontSize" Value="Medium"/>
|
||||||
|
<Setter Property="FontAttributes" Value="Bold"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Label" x:Key="HomeTitle">
|
||||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"/>
|
||||||
|
<Setter Property="FontSize" Value="40"/>
|
||||||
|
<Setter Property="FontAttributes" Value="Bold"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Label" x:Key="DetailsLivreTitle">
|
||||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"/>
|
||||||
|
<Setter Property="FontSize" Value="Small"/>
|
||||||
|
<Setter Property="FontAttributes" Value="Bold"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Label" x:Key="DetailsLivreBody">
|
||||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource TextGray}, Dark={StaticResource White}}"/>
|
||||||
|
<Setter Property="FontSize" Value="Body"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Label" x:Key="DetailsButtonBody">
|
||||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource TextGray}, Dark={StaticResource White}}"/>
|
||||||
|
<Setter Property="FontSize" Value="Medium"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Label" x:Key="MasterTitleBookText">
|
||||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"/>
|
||||||
|
<Setter Property="FontSize" Value="Medium"/>
|
||||||
|
<Setter Property="FontAttributes" Value="Bold"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Label" x:Key="MasterAuthorBookText">
|
||||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"/>
|
||||||
|
<Setter Property="FontSize" Value="Small"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Label" x:Key="MasterStateBookText">
|
||||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource TextGray}, Dark={StaticResource White}}"/>
|
||||||
|
<Setter Property="FontSize" Value="Micro"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Label" x:Key="HomeButtonText">
|
||||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"/>
|
||||||
|
<Setter Property="FontSize" Value="Medium"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Label" x:Key="HeaderCollectionViewText">
|
||||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource TextGray}, Dark={StaticResource White}}"/>
|
||||||
|
<Setter Property="FontSize" Value="Medium"/>
|
||||||
|
<Setter Property="FontAttributes" Value="Bold"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="ListView">
|
||||||
|
<Setter Property="SeparatorColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" />
|
||||||
|
<Setter Property="RefreshControlColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource Gray200}}" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Picker">
|
||||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" />
|
||||||
|
<Setter Property="TitleColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource Gray200}}" />
|
||||||
|
<Setter Property="BackgroundColor" Value="Transparent" />
|
||||||
|
<Setter Property="FontFamily" Value="OpenSansRegular"/>
|
||||||
|
<Setter Property="FontSize" Value="14"/>
|
||||||
|
<Setter Property="MinimumHeightRequest" Value="44"/>
|
||||||
|
<Setter Property="MinimumWidthRequest" Value="44"/>
|
||||||
|
<Setter Property="VisualStateManager.VisualStateGroups">
|
||||||
|
<VisualStateGroupList>
|
||||||
|
<VisualStateGroup x:Name="CommonStates">
|
||||||
|
<VisualState x:Name="Normal" />
|
||||||
|
<VisualState x:Name="Disabled">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
<Setter Property="TitleColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateGroupList>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="ProgressBar">
|
||||||
|
<Setter Property="ProgressColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||||
|
<Setter Property="VisualStateManager.VisualStateGroups">
|
||||||
|
<VisualStateGroupList>
|
||||||
|
<VisualStateGroup x:Name="CommonStates">
|
||||||
|
<VisualState x:Name="Normal" />
|
||||||
|
<VisualState x:Name="Disabled">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter Property="ProgressColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateGroupList>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="RadioButton">
|
||||||
|
<Setter Property="BackgroundColor" Value="Transparent"/>
|
||||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}" />
|
||||||
|
<Setter Property="FontFamily" Value="OpenSansRegular"/>
|
||||||
|
<Setter Property="FontSize" Value="14"/>
|
||||||
|
<Setter Property="MinimumHeightRequest" Value="44"/>
|
||||||
|
<Setter Property="MinimumWidthRequest" Value="44"/>
|
||||||
|
<Setter Property="VisualStateManager.VisualStateGroups">
|
||||||
|
<VisualStateGroupList>
|
||||||
|
<VisualStateGroup x:Name="CommonStates">
|
||||||
|
<VisualState x:Name="Normal" />
|
||||||
|
<VisualState x:Name="Disabled">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateGroupList>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="RefreshView">
|
||||||
|
<Setter Property="RefreshColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource Gray200}}" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="SearchBar">
|
||||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource Gray500}}" />
|
||||||
|
<Setter Property="Placeholder" Value="Rechercher" />
|
||||||
|
<Setter Property="PlaceholderColor" Value="{StaticResource Gray500}" />
|
||||||
|
<Setter Property="CancelButtonColor" Value="{StaticResource Gray500}" />
|
||||||
|
<Setter Property="BackgroundColor" Value="Transparent" />
|
||||||
|
<Setter Property="FontFamily" Value="OpenSansRegular" />
|
||||||
|
<Setter Property="FontSize" Value="14" />
|
||||||
|
<Setter Property="MinimumHeightRequest" Value="44"/>
|
||||||
|
<Setter Property="MinimumWidthRequest" Value="44"/>
|
||||||
|
<Setter Property="VisualStateManager.VisualStateGroups">
|
||||||
|
<VisualStateGroupList>
|
||||||
|
<VisualStateGroup x:Name="CommonStates">
|
||||||
|
<VisualState x:Name="Normal" />
|
||||||
|
<VisualState x:Name="Disabled">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
<Setter Property="PlaceholderColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateGroupList>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="SearchHandler">
|
||||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" />
|
||||||
|
<Setter Property="PlaceholderColor" Value="{StaticResource Gray500}" />
|
||||||
|
<Setter Property="BackgroundColor" Value="Transparent" />
|
||||||
|
<Setter Property="FontFamily" Value="OpenSansRegular" />
|
||||||
|
<Setter Property="FontSize" Value="14" />
|
||||||
|
<Setter Property="VisualStateManager.VisualStateGroups">
|
||||||
|
<VisualStateGroupList>
|
||||||
|
<VisualStateGroup x:Name="CommonStates">
|
||||||
|
<VisualState x:Name="Normal" />
|
||||||
|
<VisualState x:Name="Disabled">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
<Setter Property="PlaceholderColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateGroupList>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Shadow">
|
||||||
|
<Setter Property="Radius" Value="15" />
|
||||||
|
<Setter Property="Opacity" Value="0.5" />
|
||||||
|
<Setter Property="Brush" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource White}}" />
|
||||||
|
<Setter Property="Offset" Value="10,10" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Slider">
|
||||||
|
<Setter Property="MinimumTrackColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||||
|
<Setter Property="MaximumTrackColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray600}}" />
|
||||||
|
<Setter Property="ThumbColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||||
|
<Setter Property="VisualStateManager.VisualStateGroups">
|
||||||
|
<VisualStateGroupList>
|
||||||
|
<VisualStateGroup x:Name="CommonStates">
|
||||||
|
<VisualState x:Name="Normal" />
|
||||||
|
<VisualState x:Name="Disabled">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter Property="MinimumTrackColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}"/>
|
||||||
|
<Setter Property="MaximumTrackColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}"/>
|
||||||
|
<Setter Property="ThumbColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}"/>
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateGroupList>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="SwipeItem">
|
||||||
|
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Black}}" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Switch">
|
||||||
|
<Setter Property="OnColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||||
|
<Setter Property="ThumbColor" Value="{StaticResource White}" />
|
||||||
|
<Setter Property="VisualStateManager.VisualStateGroups">
|
||||||
|
<VisualStateGroupList>
|
||||||
|
<VisualStateGroup x:Name="CommonStates">
|
||||||
|
<VisualState x:Name="Normal" />
|
||||||
|
<VisualState x:Name="Disabled">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter Property="OnColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
<Setter Property="ThumbColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
<VisualState x:Name="On">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter Property="OnColor" Value="{AppThemeBinding Light={StaticResource Secondary}, Dark={StaticResource Gray200}}" />
|
||||||
|
<Setter Property="ThumbColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
<VisualState x:Name="Off">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter Property="ThumbColor" Value="{AppThemeBinding Light={StaticResource Gray400}, Dark={StaticResource Gray500}}" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateGroupList>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="TimePicker">
|
||||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" />
|
||||||
|
<Setter Property="BackgroundColor" Value="Transparent"/>
|
||||||
|
<Setter Property="FontFamily" Value="OpenSansRegular"/>
|
||||||
|
<Setter Property="FontSize" Value="14"/>
|
||||||
|
<Setter Property="MinimumHeightRequest" Value="44"/>
|
||||||
|
<Setter Property="MinimumWidthRequest" Value="44"/>
|
||||||
|
<Setter Property="VisualStateManager.VisualStateGroups">
|
||||||
|
<VisualStateGroupList>
|
||||||
|
<VisualStateGroup x:Name="CommonStates">
|
||||||
|
<VisualState x:Name="Normal" />
|
||||||
|
<VisualState x:Name="Disabled">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateGroupList>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Page" ApplyToDerivedTypes="True">
|
||||||
|
<Setter Property="Padding" Value="0"/>
|
||||||
|
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Black}}" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Shell" ApplyToDerivedTypes="True">
|
||||||
|
<Setter Property="Shell.BackgroundColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource Gray950}}" />
|
||||||
|
<Setter Property="Shell.ForegroundColor" Value="{OnPlatform WinUI={StaticResource Primary}, Default={StaticResource White}}" />
|
||||||
|
<Setter Property="Shell.TitleColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource White}}" />
|
||||||
|
<Setter Property="Shell.DisabledColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray950}}" />
|
||||||
|
<Setter Property="Shell.UnselectedColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray200}}" />
|
||||||
|
<Setter Property="Shell.NavBarHasShadow" Value="False" />
|
||||||
|
<Setter Property="Shell.TabBarBackgroundColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Black}}" />
|
||||||
|
<Setter Property="Shell.TabBarForegroundColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||||
|
<Setter Property="Shell.TabBarTitleColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||||
|
<Setter Property="Shell.TabBarUnselectedColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource Gray200}}" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="NavigationPage">
|
||||||
|
<Setter Property="BarBackgroundColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource Gray950}}" />
|
||||||
|
<Setter Property="BarTextColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource White}}" />
|
||||||
|
<Setter Property="IconColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource White}}" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="TabbedPage">
|
||||||
|
<Setter Property="BarBackgroundColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Gray950}}" />
|
||||||
|
<Setter Property="BarTextColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||||
|
<Setter Property="UnselectedTabColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray950}}" />
|
||||||
|
<Setter Property="SelectedTabColor" Value="{AppThemeBinding Light={StaticResource Gray950}, Dark={StaticResource Gray200}}" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
</ResourceDictionary>
|
@ -0,0 +1,126 @@
|
|||||||
|
<?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:view="clr-namespace:LivreLand.View"
|
||||||
|
xmlns:contentView="clr-namespace:LivreLand.View.ContentViews"
|
||||||
|
x:Class="LivreLand.View.ALirePlusTardView"
|
||||||
|
Title="ALirePlusTardView">
|
||||||
|
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="10"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<view:HeaderPage HeaderTitle="A lire plus tard"
|
||||||
|
HeaderBackButtonText="Mes livres"
|
||||||
|
HeaderPlusButtonVisible="True"
|
||||||
|
HeaderSwitchButtonVisible="True"
|
||||||
|
Grid.Row="0"/>
|
||||||
|
<ScrollView Grid.Row="2">
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="40"/>
|
||||||
|
<RowDefinition Height="10"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid BackgroundColor="{AppThemeBinding Light={StaticResource HeaderGray}, Dark={StaticResource Gray900}}"
|
||||||
|
Grid.Row="0">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="10"/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Label Text="A lire plus tard"
|
||||||
|
VerticalOptions="Center"
|
||||||
|
Style="{StaticResource HeaderCollectionViewText}"
|
||||||
|
Grid.Column="1"/>
|
||||||
|
</Grid>
|
||||||
|
<CollectionView ItemsSource="{Binding ALirePlusTardBooks}"
|
||||||
|
SelectionMode="Single"
|
||||||
|
SelectionChanged="OnSelectionChanged"
|
||||||
|
Grid.Row="2">
|
||||||
|
<CollectionView.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<VerticalStackLayout Margin="10"
|
||||||
|
Spacing="20">
|
||||||
|
<VisualStateManager.VisualStateGroups x:Name="SelectionStates">
|
||||||
|
<VisualStateGroup>
|
||||||
|
<VisualState x:Name="Selected">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter Property="BackgroundColor" Value="Transparent" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateManager.VisualStateGroups>
|
||||||
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="10"/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid Grid.Column="0"
|
||||||
|
Grid.RowSpan="5">
|
||||||
|
<Border Padding="-5,-5,-5,1"
|
||||||
|
Margin="10,0,0,0"
|
||||||
|
HeightRequest="100"
|
||||||
|
WidthRequest="62"
|
||||||
|
HorizontalOptions="Center"
|
||||||
|
Stroke="{StaticResource Gray}"
|
||||||
|
StrokeShape="RoundRectangle 3"
|
||||||
|
StrokeThickness="3">
|
||||||
|
<Border HorizontalOptions="Center"
|
||||||
|
Stroke="{StaticResource Gray}"
|
||||||
|
StrokeShape="RoundRectangle 3"
|
||||||
|
StrokeThickness="3">
|
||||||
|
<Image Source="couverture_la_horde_du_contrevent.png"
|
||||||
|
Aspect="AspectFill"
|
||||||
|
Grid.Column="0"
|
||||||
|
Grid.RowSpan="5"/>
|
||||||
|
</Border>
|
||||||
|
</Border>
|
||||||
|
<Image Source="bookmark_red.png"
|
||||||
|
HeightRequest="10"
|
||||||
|
WidthRequest="10"
|
||||||
|
Margin="0,97,20,0"
|
||||||
|
VerticalOptions="End"/>
|
||||||
|
</Grid>
|
||||||
|
<Label Text="{Binding Title}"
|
||||||
|
Style="{StaticResource MasterTitleBookText}"
|
||||||
|
Grid.Column="2"
|
||||||
|
Grid.Row="0"/>
|
||||||
|
<Label Text="{Binding Author}"
|
||||||
|
Style="{StaticResource MasterAuthorBookText}"
|
||||||
|
Grid.Column="2"
|
||||||
|
Grid.Row="1"/>
|
||||||
|
<Label Text="{Binding State}"
|
||||||
|
Style="{StaticResource MasterStateBookText}"
|
||||||
|
Grid.Column="2"
|
||||||
|
Grid.Row="2"/>
|
||||||
|
<contentView:StarNotationView Grid.Column="2"
|
||||||
|
Grid.Row="4"/>
|
||||||
|
</Grid>
|
||||||
|
<contentView:SeparatorCutStartView/>
|
||||||
|
</VerticalStackLayout>
|
||||||
|
</DataTemplate>
|
||||||
|
</CollectionView.ItemTemplate>
|
||||||
|
</CollectionView>
|
||||||
|
</Grid>
|
||||||
|
</ScrollView>
|
||||||
|
<Grid HorizontalOptions="End"
|
||||||
|
VerticalOptions="Center"
|
||||||
|
Grid.RowSpan="3">
|
||||||
|
<contentView:AlphabetVerticalMenuView/>
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</ContentPage>
|
@ -0,0 +1,22 @@
|
|||||||
|
using LivreLand.Model;
|
||||||
|
|
||||||
|
namespace LivreLand.View;
|
||||||
|
|
||||||
|
public partial class ALirePlusTardView : ContentPage
|
||||||
|
{
|
||||||
|
public List<BookModel> ALirePlusTardBooks { get; set; } = new List<BookModel>()
|
||||||
|
{
|
||||||
|
new BookModel("La horde du contrevent","Alain Damasio","Non lu", 0),
|
||||||
|
};
|
||||||
|
|
||||||
|
public ALirePlusTardView()
|
||||||
|
{
|
||||||
|
BindingContext = this;
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnSelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||||
|
{
|
||||||
|
App.Current.MainPage.Navigation.PushAsync(new DetailsLivreView());
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,144 @@
|
|||||||
|
<?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:view="clr-namespace:LivreLand.View"
|
||||||
|
xmlns:contentView="clr-namespace:LivreLand.View.ContentViews"
|
||||||
|
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
||||||
|
x:Class="LivreLand.View.BibliothequeView"
|
||||||
|
x:Name="this"
|
||||||
|
Title="BibliothequeView">
|
||||||
|
|
||||||
|
<ContentPage.Behaviors>
|
||||||
|
<toolkit:StatusBarBehavior>
|
||||||
|
<toolkit:StatusBarBehavior.StatusBarColor>
|
||||||
|
<AppThemeBinding Light="{StaticResource Black}"/>
|
||||||
|
</toolkit:StatusBarBehavior.StatusBarColor>
|
||||||
|
</toolkit:StatusBarBehavior>
|
||||||
|
</ContentPage.Behaviors>
|
||||||
|
|
||||||
|
<Grid BindingContext="{x:Reference this}">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="10"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<view:HeaderHome Grid.Row="0"/>
|
||||||
|
<ScrollView Grid.Row="2">
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="10"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="20"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="20"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<Label Text="Mes Livres"
|
||||||
|
Margin="10,0,0,0"
|
||||||
|
Style="{StaticResource HomeTitle}"
|
||||||
|
Grid.Row="0"/>
|
||||||
|
|
||||||
|
<VerticalStackLayout Grid.Row="2">
|
||||||
|
<VerticalStackLayout.BackgroundColor>
|
||||||
|
<AppThemeBinding Light="{StaticResource LightGray}" Dark="{StaticResource Black}" />
|
||||||
|
</VerticalStackLayout.BackgroundColor>
|
||||||
|
|
||||||
|
<contentView:SeparatorEntireView/>
|
||||||
|
|
||||||
|
<!--Tous-->
|
||||||
|
<contentView:HomeButtonView ButtonTitle="Tous"
|
||||||
|
ButtonIcon="tray_2_fill.png"
|
||||||
|
ButtonNumber="45"
|
||||||
|
ButtonRedIconVisible="False"
|
||||||
|
ButtonBlackIconVisible="True"
|
||||||
|
ButtonTappedCommand="{Binding TousNavigationCommand}"/>
|
||||||
|
|
||||||
|
<contentView:SeparatorCutStartView/>
|
||||||
|
|
||||||
|
<!--En prêt-->
|
||||||
|
<contentView:HomeButtonView ButtonTitle="En prêt"
|
||||||
|
ButtonIcon="person_badge_clock_fill.png"
|
||||||
|
ButtonNumber="1"
|
||||||
|
ButtonRedIconVisible="False"
|
||||||
|
ButtonBlackIconVisible="True"
|
||||||
|
ButtonTappedCommand="{Binding EmpruntsPretsNavigationCommand}"/>
|
||||||
|
|
||||||
|
<contentView:SeparatorCutStartView/>
|
||||||
|
|
||||||
|
<!--À lire plus tard-->
|
||||||
|
<contentView:HomeButtonView ButtonTitle="À lire plus tard"
|
||||||
|
ButtonIcon="arrow_forward.png"
|
||||||
|
ButtonRedIconVisible="False"
|
||||||
|
ButtonBlackIconVisible="True"
|
||||||
|
ButtonTappedCommand="{Binding ALirePlusTardNavigationCommand}"/>
|
||||||
|
|
||||||
|
<contentView:SeparatorCutStartView/>
|
||||||
|
|
||||||
|
<!--Statut de lecture-->
|
||||||
|
<contentView:HomeButtonView ButtonTitle="Statut de lecture"
|
||||||
|
ButtonIcon="eyeglasses.png"
|
||||||
|
ButtonRedIconVisible="False"
|
||||||
|
ButtonBlackIconVisible="True"
|
||||||
|
ButtonTappedCommand="{Binding StatutLectureNavigationCommand}"/>
|
||||||
|
|
||||||
|
<contentView:SeparatorCutStartView/>
|
||||||
|
|
||||||
|
<!--Favoris-->
|
||||||
|
<contentView:HomeButtonView ButtonTitle="Favoris"
|
||||||
|
ButtonIcon="heart_fill.png"
|
||||||
|
ButtonRedIconVisible="False"
|
||||||
|
ButtonBlackIconVisible="True"
|
||||||
|
ButtonTappedCommand="{Binding FavorisNavigationCommand}"/>
|
||||||
|
|
||||||
|
<contentView:SeparatorEntireView/>
|
||||||
|
</VerticalStackLayout>
|
||||||
|
|
||||||
|
<Label Text="Filtres"
|
||||||
|
Margin="10,0,0,0"
|
||||||
|
Style="{StaticResource HeaderTitle}"
|
||||||
|
Grid.Row="4"/>
|
||||||
|
|
||||||
|
<VerticalStackLayout Grid.Row="6">
|
||||||
|
<VerticalStackLayout.BackgroundColor>
|
||||||
|
<AppThemeBinding Light="{StaticResource LightGray}" Dark="{StaticResource Black}" />
|
||||||
|
</VerticalStackLayout.BackgroundColor>
|
||||||
|
|
||||||
|
<contentView:SeparatorEntireView/>
|
||||||
|
|
||||||
|
<!--Auteur-->
|
||||||
|
<contentView:HomeButtonView ButtonTitle="Auteur"
|
||||||
|
ButtonIcon="person_fill.png"
|
||||||
|
ButtonRedIconVisible="False"
|
||||||
|
ButtonBlackIconVisible="True"
|
||||||
|
ButtonTappedCommand="{Binding AuteurNavigationCommand}"/>
|
||||||
|
|
||||||
|
<contentView:SeparatorCutStartView/>
|
||||||
|
|
||||||
|
<!--Date de publication-->
|
||||||
|
<contentView:HomeButtonView ButtonTitle="Date de publication"
|
||||||
|
ButtonIcon="calendar.png"
|
||||||
|
ButtonRedIconVisible="False"
|
||||||
|
ButtonBlackIconVisible="True"
|
||||||
|
ButtonTappedCommand="{Binding DatePublicationNavigationCommand}"/>
|
||||||
|
|
||||||
|
<contentView:SeparatorCutStartView/>
|
||||||
|
|
||||||
|
<!--Note-->
|
||||||
|
<contentView:HomeButtonView ButtonTitle="Note"
|
||||||
|
ButtonIcon="sparkles.png"
|
||||||
|
ButtonRedIconVisible="False"
|
||||||
|
ButtonBlackIconVisible="True"
|
||||||
|
ButtonTappedCommand="{Binding NoteNavigationCommand}"/>
|
||||||
|
|
||||||
|
<contentView:SeparatorEntireView/>
|
||||||
|
</VerticalStackLayout>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
</ScrollView>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</ContentPage>
|
@ -0,0 +1,69 @@
|
|||||||
|
using System.Windows.Input;
|
||||||
|
|
||||||
|
namespace LivreLand.View;
|
||||||
|
|
||||||
|
public partial class BibliothequeView : ContentPage
|
||||||
|
{
|
||||||
|
public ICommand TousNavigationCommand { get; }
|
||||||
|
public ICommand EmpruntsPretsNavigationCommand { get; }
|
||||||
|
public ICommand ALirePlusTardNavigationCommand { get; }
|
||||||
|
public ICommand StatutLectureNavigationCommand { get; }
|
||||||
|
public ICommand FavorisNavigationCommand { get; }
|
||||||
|
public ICommand AuteurNavigationCommand { get; }
|
||||||
|
public ICommand DatePublicationNavigationCommand { get; }
|
||||||
|
public ICommand NoteNavigationCommand { get; }
|
||||||
|
|
||||||
|
public BibliothequeView()
|
||||||
|
{
|
||||||
|
TousNavigationCommand = new Command(TousNavigation);
|
||||||
|
EmpruntsPretsNavigationCommand = new Command(EmpruntsPretsNavigation);
|
||||||
|
ALirePlusTardNavigationCommand = new Command(ALirePlusTardNavigation);
|
||||||
|
StatutLectureNavigationCommand = new Command(StatutLectureNavigation);
|
||||||
|
FavorisNavigationCommand = new Command(FavorisNavigation);
|
||||||
|
AuteurNavigationCommand = new Command(AuteurNavigation);
|
||||||
|
DatePublicationNavigationCommand = new Command(DatePublicationNavigation);
|
||||||
|
NoteNavigationCommand = new Command(NoteNavigation);
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
//Gestion de la navigation temporaire
|
||||||
|
private async void TousNavigation()
|
||||||
|
{
|
||||||
|
await App.Current.MainPage.Navigation.PushAsync(new TousView());
|
||||||
|
}
|
||||||
|
|
||||||
|
private async void EmpruntsPretsNavigation()
|
||||||
|
{
|
||||||
|
await App.Current.MainPage.Navigation.PushAsync(new EmpruntsPretsView());
|
||||||
|
}
|
||||||
|
|
||||||
|
private async void ALirePlusTardNavigation()
|
||||||
|
{
|
||||||
|
await App.Current.MainPage.Navigation.PushAsync(new ALirePlusTardView());
|
||||||
|
}
|
||||||
|
|
||||||
|
private async void StatutLectureNavigation()
|
||||||
|
{
|
||||||
|
await App.Current.MainPage.Navigation.PushAsync(new StatutLectureView());
|
||||||
|
}
|
||||||
|
|
||||||
|
private async void AuteurNavigation()
|
||||||
|
{
|
||||||
|
await App.Current.MainPage.Navigation.PushAsync(new FiltrageAuteurView());
|
||||||
|
}
|
||||||
|
|
||||||
|
private async void FavorisNavigation()
|
||||||
|
{
|
||||||
|
await App.Current.MainPage.Navigation.PushAsync(new FavorisView());
|
||||||
|
}
|
||||||
|
|
||||||
|
private async void DatePublicationNavigation()
|
||||||
|
{
|
||||||
|
await App.Current.MainPage.Navigation.PushAsync(new FiltrageDateView());
|
||||||
|
}
|
||||||
|
|
||||||
|
private async void NoteNavigation()
|
||||||
|
{
|
||||||
|
await App.Current.MainPage.Navigation.PushAsync(new FiltrageNoteView());
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,37 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
xmlns:contentView="clr-namespace:LivreLand.View.ContentViews"
|
||||||
|
x:Class="LivreLand.View.ContentViews.AlphabetVerticalMenuView">
|
||||||
|
|
||||||
|
<VerticalStackLayout Margin="0,0,5,0"
|
||||||
|
Spacing="-4">
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="A"/>
|
||||||
|
<!--<contentView:LetterVerticalMenuView ButtonLetter="B"/>-->
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="C"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="D"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="E"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="F"/>
|
||||||
|
<!--<contentView:LetterVerticalMenuView ButtonLetter="G"/>-->
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="H"/>
|
||||||
|
<!--<contentView:LetterVerticalMenuView ButtonLetter="I"/>-->
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="J"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="K"/>
|
||||||
|
<!--<contentView:LetterVerticalMenuView ButtonLetter="L"/>-->
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="M"/>
|
||||||
|
<!--<contentView:LetterVerticalMenuView ButtonLetter="N"/>-->
|
||||||
|
<!--<contentView:LetterVerticalMenuView ButtonLetter="O"/>-->
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="P"/>
|
||||||
|
<!--<contentView:LetterVerticalMenuView ButtonLetter="Q"/>-->
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="R"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="S"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="T"/>
|
||||||
|
<!--<contentView:LetterVerticalMenuView ButtonLetter="U"/>-->
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="V"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="W"/>
|
||||||
|
<!--<contentView:LetterVerticalMenuView ButtonLetter="X"/>-->
|
||||||
|
<!--<contentView:LetterVerticalMenuView ButtonLetter="Y"/>-->
|
||||||
|
<!--<contentView:LetterVerticalMenuView ButtonLetter="Z"/>-->
|
||||||
|
</VerticalStackLayout>
|
||||||
|
|
||||||
|
</ContentView>
|
@ -0,0 +1,9 @@
|
|||||||
|
namespace LivreLand.View.ContentViews;
|
||||||
|
|
||||||
|
public partial class AlphabetVerticalMenuView : ContentView
|
||||||
|
{
|
||||||
|
public AlphabetVerticalMenuView()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,31 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
||||||
|
x:Class="LivreLand.View.ContentViews.DetailsLivreButtonView"
|
||||||
|
x:Name="this">
|
||||||
|
|
||||||
|
<Grid BindingContext="{x:Reference this}"
|
||||||
|
Margin="10">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="10"/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Image Source="{Binding ButtonIcon}"
|
||||||
|
MaximumHeightRequest="20"
|
||||||
|
MaximumWidthRequest="20"
|
||||||
|
Grid.Column="0">
|
||||||
|
<Image.Behaviors>
|
||||||
|
<toolkit:IconTintColorBehavior TintColor="Red"/>
|
||||||
|
</Image.Behaviors>
|
||||||
|
</Image>
|
||||||
|
<Label Text="{Binding ButtonTitle}"
|
||||||
|
Style="{StaticResource DetailsButtonBody}"
|
||||||
|
TextColor="Red"
|
||||||
|
VerticalOptions="Center"
|
||||||
|
Grid.Column="2"/>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</ContentView>
|
@ -0,0 +1,23 @@
|
|||||||
|
namespace LivreLand.View.ContentViews;
|
||||||
|
|
||||||
|
public partial class DetailsLivreButtonView : ContentView
|
||||||
|
{
|
||||||
|
public static readonly BindableProperty ButtonTitleProperty = BindableProperty.Create(nameof(ButtonTitle), typeof(string), typeof(DetailsLivreButtonView), string.Empty);
|
||||||
|
public string ButtonTitle
|
||||||
|
{
|
||||||
|
get => (string)GetValue(DetailsLivreButtonView.ButtonTitleProperty);
|
||||||
|
set => SetValue(DetailsLivreButtonView.ButtonTitleProperty, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static readonly BindableProperty ButtonIconProperty = BindableProperty.Create(nameof(ButtonIcon), typeof(string), typeof(DetailsLivreButtonView), string.Empty);
|
||||||
|
public string ButtonIcon
|
||||||
|
{
|
||||||
|
get => (string)GetValue(DetailsLivreButtonView.ButtonIconProperty);
|
||||||
|
set => SetValue(DetailsLivreButtonView.ButtonIconProperty, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetailsLivreButtonView()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,43 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
x:Class="LivreLand.View.ContentViews.EmpruntsPretsButtonView">
|
||||||
|
|
||||||
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="4*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Border Grid.Column="1">
|
||||||
|
<Grid BackgroundColor="{StaticResource Gray}"
|
||||||
|
Grid.Column="1">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Button x:Name="pretsClicked"
|
||||||
|
Text="Prêts"
|
||||||
|
TextColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"
|
||||||
|
BackgroundColor="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Black}}"
|
||||||
|
Clicked="OnPretsClicked"
|
||||||
|
Margin="2"
|
||||||
|
Grid.Column="0"/>
|
||||||
|
<Button x:Name="empruntsButton"
|
||||||
|
Text="Emprunts"
|
||||||
|
TextColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"
|
||||||
|
BackgroundColor="Transparent"
|
||||||
|
Clicked="OnEmpruntsClicked"
|
||||||
|
Margin="2"
|
||||||
|
Grid.Column="1"/>
|
||||||
|
</Grid>
|
||||||
|
<Border.StrokeShape>
|
||||||
|
<RoundRectangle CornerRadius="10" />
|
||||||
|
</Border.StrokeShape>
|
||||||
|
</Border>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
|
||||||
|
</ContentView>
|
@ -0,0 +1,46 @@
|
|||||||
|
namespace LivreLand.View.ContentViews;
|
||||||
|
|
||||||
|
public partial class EmpruntsPretsButtonView : ContentView
|
||||||
|
{
|
||||||
|
public EmpruntsPretsButtonView()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnPretsClicked(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (App.Current.PlatformAppTheme == AppTheme.Light)
|
||||||
|
{
|
||||||
|
pretsClicked.BackgroundColor = Colors.Transparent;
|
||||||
|
pretsClicked.IsEnabled = false;
|
||||||
|
empruntsButton.BackgroundColor = Colors.White;
|
||||||
|
empruntsButton.IsEnabled = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
pretsClicked.BackgroundColor = Colors.Transparent;
|
||||||
|
pretsClicked.IsEnabled = false;
|
||||||
|
empruntsButton.BackgroundColor = Colors.Black;
|
||||||
|
empruntsButton.IsEnabled = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnEmpruntsClicked(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (App.Current.PlatformAppTheme == AppTheme.Light)
|
||||||
|
{
|
||||||
|
pretsClicked.BackgroundColor = Colors.White;
|
||||||
|
pretsClicked.IsEnabled = true;
|
||||||
|
empruntsButton.BackgroundColor = Colors.Transparent;
|
||||||
|
empruntsButton.IsEnabled = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
pretsClicked.BackgroundColor = Colors.Black;
|
||||||
|
pretsClicked.IsEnabled = true;
|
||||||
|
empruntsButton.BackgroundColor = Colors.Transparent;
|
||||||
|
empruntsButton.IsEnabled = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,59 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
||||||
|
x:Class="LivreLand.View.ContentViews.HomeButtonView"
|
||||||
|
x:Name="this">
|
||||||
|
|
||||||
|
<Grid BindingContext="{x:Reference this}"
|
||||||
|
Margin="10">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="10"/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="5"/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="10"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Image Source="{Binding ButtonIcon}"
|
||||||
|
MaximumHeightRequest="20"
|
||||||
|
MaximumWidthRequest="20"
|
||||||
|
IsVisible="{Binding ButtonRedIconVisible}"
|
||||||
|
Grid.Column="0">
|
||||||
|
<Image.Behaviors>
|
||||||
|
<toolkit:IconTintColorBehavior TintColor="{StaticResource PinkOrange}"/>
|
||||||
|
</Image.Behaviors>
|
||||||
|
</Image>
|
||||||
|
<Image Source="{Binding ButtonIcon}"
|
||||||
|
MaximumHeightRequest="20"
|
||||||
|
MaximumWidthRequest="20"
|
||||||
|
IsVisible="{Binding ButtonBlackIconVisible}"
|
||||||
|
Grid.Column="0">
|
||||||
|
<Image.Behaviors>
|
||||||
|
<toolkit:IconTintColorBehavior TintColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"/>
|
||||||
|
</Image.Behaviors>
|
||||||
|
</Image>
|
||||||
|
<Label Text="{Binding ButtonTitle}"
|
||||||
|
VerticalOptions="Center"
|
||||||
|
Style="{StaticResource HomeButtonText}"
|
||||||
|
Grid.Column="2"/>
|
||||||
|
<Label Text="{Binding ButtonNumber, FallbackValue=' '}"
|
||||||
|
VerticalOptions="Center"
|
||||||
|
Style="{StaticResource DetailsButtonBody}"
|
||||||
|
Grid.Column="4"/>
|
||||||
|
<Image Source="chevron_right.png"
|
||||||
|
MaximumHeightRequest="15"
|
||||||
|
MaximumWidthRequest="15"
|
||||||
|
Grid.Column="6">
|
||||||
|
<Image.Behaviors>
|
||||||
|
<toolkit:IconTintColorBehavior TintColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"/>
|
||||||
|
</Image.Behaviors>
|
||||||
|
</Image>
|
||||||
|
<Grid.GestureRecognizers>
|
||||||
|
<TapGestureRecognizer Command="{Binding ButtonTappedCommand}"/>
|
||||||
|
</Grid.GestureRecognizers>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</ContentView>
|
@ -0,0 +1,54 @@
|
|||||||
|
using Microsoft.Maui.Graphics;
|
||||||
|
using System.Windows.Input;
|
||||||
|
|
||||||
|
namespace LivreLand.View.ContentViews;
|
||||||
|
|
||||||
|
public partial class HomeButtonView : ContentView
|
||||||
|
{
|
||||||
|
public static readonly BindableProperty ButtonTitleProperty = BindableProperty.Create(nameof(ButtonTitle), typeof(string), typeof(HomeButtonView), string.Empty);
|
||||||
|
public string ButtonTitle
|
||||||
|
{
|
||||||
|
get => (string)GetValue(HomeButtonView.ButtonTitleProperty);
|
||||||
|
set => SetValue(HomeButtonView.ButtonTitleProperty, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static readonly BindableProperty ButtonIconProperty = BindableProperty.Create(nameof(ButtonIcon), typeof(string), typeof(HomeButtonView), string.Empty);
|
||||||
|
public string ButtonIcon
|
||||||
|
{
|
||||||
|
get => (string)GetValue(HomeButtonView.ButtonIconProperty);
|
||||||
|
set => SetValue(HomeButtonView.ButtonIconProperty, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static readonly BindableProperty ButtonNumberProperty = BindableProperty.Create(nameof(ButtonNumber), typeof(string), typeof(HomeButtonView), string.Empty);
|
||||||
|
public string ButtonNumber
|
||||||
|
{
|
||||||
|
get => (string)GetValue(HomeButtonView.ButtonNumberProperty);
|
||||||
|
set => SetValue(HomeButtonView.ButtonNumberProperty, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static readonly BindableProperty ButtonRedIconVisibleProperty = BindableProperty.Create(nameof(ButtonRedIconVisible), typeof(Boolean), typeof(HomeButtonView), true);
|
||||||
|
public Boolean ButtonRedIconVisible
|
||||||
|
{
|
||||||
|
get => (Boolean)GetValue(HomeButtonView.ButtonRedIconVisibleProperty);
|
||||||
|
set => SetValue(HomeButtonView.ButtonRedIconVisibleProperty, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static readonly BindableProperty ButtonBlackIconVisibleProperty = BindableProperty.Create(nameof(ButtonBlackIconVisible), typeof(Boolean), typeof(HomeButtonView), true);
|
||||||
|
public Boolean ButtonBlackIconVisible
|
||||||
|
{
|
||||||
|
get => (Boolean)GetValue(HomeButtonView.ButtonBlackIconVisibleProperty);
|
||||||
|
set => SetValue(HomeButtonView.ButtonBlackIconVisibleProperty, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static readonly BindableProperty ButtonTappedCommandProperty = BindableProperty.Create(nameof(ButtonTappedCommand), typeof(ICommand), typeof(HomeButtonView));
|
||||||
|
public ICommand ButtonTappedCommand
|
||||||
|
{
|
||||||
|
get { return (ICommand)GetValue(ButtonTappedCommandProperty); }
|
||||||
|
set { SetValue(ButtonTappedCommandProperty, value); }
|
||||||
|
}
|
||||||
|
|
||||||
|
public HomeButtonView()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
x:Class="LivreLand.View.ContentViews.LetterVerticalMenuView"
|
||||||
|
x:Name="this">
|
||||||
|
|
||||||
|
<Grid BindingContext="{x:Reference this}">
|
||||||
|
<Label x:Name="letterText"
|
||||||
|
Text="{Binding ButtonLetter}"
|
||||||
|
TextColor="{StaticResource Blue100Accent}"/>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</ContentView>
|
@ -0,0 +1,24 @@
|
|||||||
|
using CommunityToolkit.Maui.Views;
|
||||||
|
|
||||||
|
namespace LivreLand.View.ContentViews;
|
||||||
|
|
||||||
|
public partial class LetterVerticalMenuView : ContentView
|
||||||
|
{
|
||||||
|
public static readonly BindableProperty ButtonLetterProperty = BindableProperty.Create(nameof(ButtonLetter), typeof(string), typeof(LetterVerticalMenuView), string.Empty);
|
||||||
|
public string ButtonLetter
|
||||||
|
{
|
||||||
|
get => (string)GetValue(LetterVerticalMenuView.ButtonLetterProperty);
|
||||||
|
set => SetValue(LetterVerticalMenuView.ButtonLetterProperty, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public LetterVerticalMenuView()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnLetterTapped(object sender, TappedEventArgs e)
|
||||||
|
{
|
||||||
|
var plusPopup = new PopupLetterView(letterText.Text);
|
||||||
|
App.Current.MainPage.ShowPopup(plusPopup);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,127 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<toolkit:Popup xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
xmlns:contentView="clr-namespace:LivreLand.View.ContentViews"
|
||||||
|
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
||||||
|
x:Class="LivreLand.View.ContentViews.PopupHomePlusButtonView"
|
||||||
|
HorizontalOptions="End"
|
||||||
|
VerticalOptions="Start"
|
||||||
|
Color="Transparent">
|
||||||
|
|
||||||
|
<Border>
|
||||||
|
<Grid BackgroundColor="{AppThemeBinding Light={StaticResource PopupBackground}, Dark={StaticResource Black}}">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="10"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<Grid Grid.Row="0"
|
||||||
|
Margin="10,5,10,5">
|
||||||
|
<Label Text="Ajouter un livre"
|
||||||
|
Style="{StaticResource MasterStateBookText}"/>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<contentView:SeparatorEntireView Grid.Row="1"/>
|
||||||
|
|
||||||
|
<Grid Grid.Row="2"
|
||||||
|
Margin="10,5,10,5">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="9*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Label Text="Scanner un code-barres"
|
||||||
|
Style="{StaticResource HomeButtonText}"
|
||||||
|
Grid.Column="0"/>
|
||||||
|
<Image Source="qr_bar_code_fill.png"
|
||||||
|
HeightRequest="20"
|
||||||
|
WidthRequest="20"
|
||||||
|
Grid.Column="1">
|
||||||
|
<Image.Behaviors>
|
||||||
|
<toolkit:IconTintColorBehavior TintColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"/>
|
||||||
|
</Image.Behaviors>
|
||||||
|
</Image>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<contentView:SeparatorEntireView Grid.Row="3"/>
|
||||||
|
|
||||||
|
<Grid Grid.Row="4"
|
||||||
|
Margin="10,5,10,5">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="9*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Label Text="Scanner des codes-barres"
|
||||||
|
LineBreakMode="WordWrap"
|
||||||
|
MaxLines="2"
|
||||||
|
Style="{StaticResource HomeButtonText}"
|
||||||
|
Grid.Column="0"/>
|
||||||
|
<Image Source="bar_code_fill.png"
|
||||||
|
HeightRequest="20"
|
||||||
|
WidthRequest="20"
|
||||||
|
Grid.Column="1">
|
||||||
|
<Image.Behaviors>
|
||||||
|
<toolkit:IconTintColorBehavior TintColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"/>
|
||||||
|
</Image.Behaviors>
|
||||||
|
</Image>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<Grid BackgroundColor="{DynamicResource Gray}"
|
||||||
|
Grid.Row="5"/>
|
||||||
|
|
||||||
|
<Grid Grid.Row="6"
|
||||||
|
Margin="10,5,10,5">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="9*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Label Text="Rechercher en ligne"
|
||||||
|
Style="{StaticResource HomeButtonText}"
|
||||||
|
Grid.Column="0"/>
|
||||||
|
<Image Source="magnifying_glass.png"
|
||||||
|
HeightRequest="20"
|
||||||
|
WidthRequest="20"
|
||||||
|
Grid.Column="1">
|
||||||
|
<Image.Behaviors>
|
||||||
|
<toolkit:IconTintColorBehavior TintColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"/>
|
||||||
|
</Image.Behaviors>
|
||||||
|
</Image>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<contentView:SeparatorEntireView Grid.Row="7"/>
|
||||||
|
|
||||||
|
<Grid Grid.Row="8"
|
||||||
|
Margin="10,5,10,5">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="9*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Label Text="Saisir l'ISBN"
|
||||||
|
Style="{StaticResource HomeButtonText}"
|
||||||
|
Grid.Column="0"/>
|
||||||
|
<Image Source="keyboard_fill.png"
|
||||||
|
HeightRequest="20"
|
||||||
|
WidthRequest="20"
|
||||||
|
Grid.Column="1">
|
||||||
|
<Image.Behaviors>
|
||||||
|
<toolkit:IconTintColorBehavior TintColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"/>
|
||||||
|
</Image.Behaviors>
|
||||||
|
</Image>
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
<Border.StrokeShape>
|
||||||
|
<RoundRectangle CornerRadius="10" />
|
||||||
|
</Border.StrokeShape>
|
||||||
|
</Border>
|
||||||
|
|
||||||
|
</toolkit:Popup>
|
@ -0,0 +1,12 @@
|
|||||||
|
using CommunityToolkit.Maui.Views;
|
||||||
|
|
||||||
|
namespace LivreLand.View.ContentViews;
|
||||||
|
|
||||||
|
public partial class PopupHomePlusButtonView : Popup
|
||||||
|
{
|
||||||
|
public PopupHomePlusButtonView()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
Size = new Size(0.8 * (DeviceDisplay.Current.MainDisplayInfo.Width / DeviceDisplay.Current.MainDisplayInfo.Density), 0.5 * (DeviceDisplay.Current.MainDisplayInfo.Width / DeviceDisplay.Current.MainDisplayInfo.Density));
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<toolkit:Popup xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
||||||
|
x:Class="LivreLand.View.ContentViews.PopupLetterView">
|
||||||
|
|
||||||
|
<Grid BackgroundColor="{StaticResource HeaderGray}">
|
||||||
|
<Label Style="{StaticResource HomeTitle}"/>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</toolkit:Popup>
|
@ -0,0 +1,11 @@
|
|||||||
|
using CommunityToolkit.Maui.Views;
|
||||||
|
|
||||||
|
namespace LivreLand.View.ContentViews;
|
||||||
|
|
||||||
|
public partial class PopupLetterView : Popup
|
||||||
|
{
|
||||||
|
public PopupLetterView(string letter)
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|