<?xml version="1.0" encoding="UTF-8" ?>
<ResourceDictionary 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"
                    xmlns:converters="clr-namespace:BookReader.Converters">

    <!-- Converters from CommunityToolkit -->
    <toolkit:InvertedBoolConverter x:Key="InvertedBoolConverter" />
    <toolkit:IsStringNotNullOrEmptyConverter x:Key="IsNotNullOrEmptyConverter" />

    <!-- Custom Converters -->
    <converters:ProgressToWidthConverter x:Key="ProgressToWidthConverter" />
    <converters:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter" />
    <converters:ByteArrayToImageSourceConverter x:Key="ByteArrayToImageConverter" />

    <!-- Colors -->
    <Color x:Key="PrimaryBrown">#5D4037</Color>
    <Color x:Key="DarkBrown">#3E2723</Color>
    <Color x:Key="LightBrown">#8D6E63</Color>
    <Color x:Key="ShelfColor">#6D4C41</Color>
    <Color x:Key="AccentGreen">#4CAF50</Color>
    <Color x:Key="TextPrimary">#EFEBE9</Color>
    <Color x:Key="TextSecondary">#A1887F</Color>

    <!-- Styles -->
    <Style TargetType="NavigationPage">
        <Setter Property="BarBackgroundColor" Value="{StaticResource DarkBrown}" />
        <Setter Property="BarTextColor" Value="White" />
    </Style>

    <Style TargetType="Shell">
        <Setter Property="Shell.BackgroundColor" Value="{StaticResource DarkBrown}" />
        <Setter Property="Shell.ForegroundColor" Value="White" />
        <Setter Property="Shell.TitleColor" Value="White" />
    </Style>

</ResourceDictionary>