Add Fonts
This commit is contained in:
Родитель
467402ce3f
Коммит
0fccfe33d4
|
@ -115,92 +115,68 @@
|
|||
Value="{AppThemeBinding Dark={StaticResource TextPrimaryColorDark}, Light={StaticResource TextPrimaryColorLight}}" />
|
||||
</Style>
|
||||
|
||||
<OnPlatform x:Key="FaSolidFont"
|
||||
x:TypeArguments="x:String">
|
||||
<On Platform="iOS"
|
||||
Value="FontAwesome5Free-Solid" />
|
||||
<On Platform="Android"
|
||||
Value="FontAwesomeSolid.otf#Regular" />
|
||||
</OnPlatform>
|
||||
|
||||
<OnPlatform x:Key="FaRegularFont"
|
||||
x:TypeArguments="x:String">
|
||||
<On Platform="iOS"
|
||||
Value="FontAwesome5Free-Regular" />
|
||||
<On Platform="Android"
|
||||
Value="FontAwesomeRegular.otf#Regular" />
|
||||
</OnPlatform>
|
||||
|
||||
<OnPlatform x:Key="FaBrandsFont"
|
||||
x:TypeArguments="x:String">
|
||||
<On Platform="iOS"
|
||||
Value="FontAwesome5Brands-Regular" />
|
||||
<On Platform="Android"
|
||||
Value="FontAwesomeBrands.otf#Regular" />
|
||||
</OnPlatform>
|
||||
|
||||
<FontImage x:Key="PlayIcon"
|
||||
FontFamily="{StaticResource FaSolidFont}"
|
||||
FontFamily="FaSolidFont"
|
||||
Glyph=""/>
|
||||
|
||||
<FontImage x:Key="ExchangeIcon"
|
||||
FontFamily="{StaticResource FaSolidFont}"
|
||||
FontFamily="FaSolidFont"
|
||||
Glyph="" />
|
||||
|
||||
<FontImage x:Key="CalendarIcon"
|
||||
FontFamily="{StaticResource FaRegularFont}"
|
||||
FontFamily="FaRegularFont"
|
||||
Glyph="" />
|
||||
|
||||
<FontImage x:Key="BookIcon"
|
||||
FontFamily="{StaticResource FaSolidFont}"
|
||||
FontFamily="FaSolidFont"
|
||||
Glyph="" />
|
||||
|
||||
<FontImage x:Key="FlagIcon"
|
||||
FontFamily="{StaticResource FaSolidFont}"
|
||||
FontFamily="FaSolidFont"
|
||||
Glyph="" />
|
||||
|
||||
<FontImage x:Key="CommentIcon"
|
||||
FontFamily="{StaticResource FaSolidFont}"
|
||||
FontFamily="FaSolidFont"
|
||||
Glyph="" />
|
||||
|
||||
<FontImage x:Key="SendIcon"
|
||||
FontFamily="{StaticResource FaSolidFont}"
|
||||
FontFamily="FaSolidFont"
|
||||
Glyph="" />
|
||||
|
||||
<FontImage x:Key="SortIcon"
|
||||
FontFamily="{StaticResource FaSolidFont}"
|
||||
FontFamily="FaSolidFont"
|
||||
Glyph="" />
|
||||
|
||||
<FontImage x:Key="UndoIcon"
|
||||
FontFamily="{StaticResource FaSolidFont}"
|
||||
FontFamily="FaSolidFont"
|
||||
Glyph="" />
|
||||
|
||||
<FontImage x:Key="CubeIcon"
|
||||
FontFamily="{StaticResource FaSolidFont}"
|
||||
FontFamily="FaSolidFont"
|
||||
Glyph="" />
|
||||
|
||||
<FontImage x:Key="ToolsIcon"
|
||||
FontFamily="{StaticResource FaSolidFont}"
|
||||
FontFamily="FaSolidFont"
|
||||
Glyph="" />
|
||||
|
||||
<FontImage x:Key="WrenchIcon"
|
||||
FontFamily="{StaticResource FaSolidFont}"
|
||||
FontFamily="FaSolidFont"
|
||||
Glyph="" />
|
||||
|
||||
<FontImage x:Key="GlobeIcon"
|
||||
FontFamily="{StaticResource FaSolidFont}"
|
||||
FontFamily="FaSolidFont"
|
||||
Glyph="" />
|
||||
|
||||
<FontImage x:Key="RulerIcon"
|
||||
FontFamily="{StaticResource FaSolidFont}"
|
||||
FontFamily="FaSolidFont"
|
||||
Glyph="" />
|
||||
|
||||
<FontImage x:Key="CheckerIcon"
|
||||
FontFamily="{StaticResource FaSolidFont}"
|
||||
FontFamily="FaSolidFont"
|
||||
Glyph="" />
|
||||
|
||||
<FontImage x:Key="RefreshIcon"
|
||||
FontFamily="{StaticResource FaSolidFont}"
|
||||
FontFamily="FaSolidFont"
|
||||
Glyph="" />
|
||||
<toolkit:InvertedBoolConverter x:Key="InvertedBoolConverter" />
|
||||
</Application.Resources>
|
||||
|
|
|
@ -21,6 +21,9 @@ public static class MauiProgram
|
|||
.UseMauiCommunityToolkit()
|
||||
.ConfigureFonts(fonts =>
|
||||
{
|
||||
fonts.AddFont("FontAwesomeRegular.otf", "FaRegularFont");
|
||||
fonts.AddFont("FontAwesomeSolid.otf", "FaSolidFont");
|
||||
fonts.AddFont("FontAwesomeBrands.otf", "FaBrandsFont");
|
||||
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
|
||||
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
|
||||
});
|
||||
|
|
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
|
@ -153,67 +153,67 @@
|
|||
</OnPlatform>
|
||||
|
||||
<FontImage x:Key="PlayIcon"
|
||||
FontFamily="{StaticResource FaSolidFont}"
|
||||
FontFamily="FaSolidFont"
|
||||
Glyph=""/>
|
||||
|
||||
<FontImage x:Key="ExchangeIcon"
|
||||
FontFamily="{StaticResource FaSolidFont}"
|
||||
FontFamily="FaSolidFont"
|
||||
Glyph="" />
|
||||
|
||||
<FontImage x:Key="CalendarIcon"
|
||||
FontFamily="{StaticResource FaRegularFont}"
|
||||
FontFamily="FaRegularFont"
|
||||
Glyph="" />
|
||||
|
||||
<FontImage x:Key="BookIcon"
|
||||
FontFamily="{StaticResource FaSolidFont}"
|
||||
FontFamily="FaSolidFont"
|
||||
Glyph="" />
|
||||
|
||||
<FontImage x:Key="FlagIcon"
|
||||
FontFamily="{StaticResource FaSolidFont}"
|
||||
FontFamily="FaSolidFont"
|
||||
Glyph="" />
|
||||
|
||||
<FontImage x:Key="CommentIcon"
|
||||
FontFamily="{StaticResource FaSolidFont}"
|
||||
FontFamily="FaSolidFont"
|
||||
Glyph="" />
|
||||
|
||||
<FontImage x:Key="SendIcon"
|
||||
FontFamily="{StaticResource FaSolidFont}"
|
||||
FontFamily="FaSolidFont"
|
||||
Glyph="" />
|
||||
|
||||
<FontImage x:Key="SortIcon"
|
||||
FontFamily="{StaticResource FaSolidFont}"
|
||||
FontFamily="FaSolidFont"
|
||||
Glyph="" />
|
||||
|
||||
<FontImage x:Key="UndoIcon"
|
||||
FontFamily="{StaticResource FaSolidFont}"
|
||||
FontFamily="FaSolidFont"
|
||||
Glyph="" />
|
||||
|
||||
<FontImage x:Key="CubeIcon"
|
||||
FontFamily="{StaticResource FaSolidFont}"
|
||||
FontFamily="FaSolidFont"
|
||||
Glyph="" />
|
||||
|
||||
<FontImage x:Key="ToolsIcon"
|
||||
FontFamily="{StaticResource FaSolidFont}"
|
||||
FontFamily="FaSolidFont"
|
||||
Glyph="" />
|
||||
|
||||
<FontImage x:Key="WrenchIcon"
|
||||
FontFamily="{StaticResource FaSolidFont}"
|
||||
FontFamily="FaSolidFont"
|
||||
Glyph="" />
|
||||
|
||||
<FontImage x:Key="GlobeIcon"
|
||||
FontFamily="{StaticResource FaSolidFont}"
|
||||
FontFamily="FaSolidFont"
|
||||
Glyph="" />
|
||||
|
||||
<FontImage x:Key="RulerIcon"
|
||||
FontFamily="{StaticResource FaSolidFont}"
|
||||
FontFamily="FaSolidFont"
|
||||
Glyph="" />
|
||||
|
||||
<FontImage x:Key="CheckerIcon"
|
||||
FontFamily="{StaticResource FaSolidFont}"
|
||||
FontFamily="FaSolidFont"
|
||||
Glyph="" />
|
||||
|
||||
<FontImage x:Key="RefreshIcon"
|
||||
FontFamily="{StaticResource FaSolidFont}"
|
||||
FontFamily="FaSolidFont"
|
||||
Glyph="" />
|
||||
<xct:InvertedBoolConverter x:Key="InvertedBoolConverter" />
|
||||
<xct:IsNotNullOrEmptyConverter x:Key="IsNotNullOrEmptyConverter" />
|
||||
|
|
Загрузка…
Ссылка в новой задаче