1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-10-29 22:45:44 +00:00

Test icone speaker

This commit is contained in:
Yan Maniez 2019-10-14 19:30:02 +02:00
parent f45537e3b0
commit 26333837cc
19 changed files with 56 additions and 10 deletions

View file

@ -768,6 +768,30 @@
<ItemGroup>
<AndroidResource Include="Resources\drawable-xxhdpi\battle_axe.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\speaker.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-hdpi\speaker.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-xhdpi\speaker.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-xxhdpi\speaker.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\speaker_off.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-hdpi\speaker_off.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-xhdpi\speaker_off.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-xxhdpi\speaker_off.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\battle_axe_.xml" />
</ItemGroup>

View file

@ -8478,25 +8478,31 @@ namespace AideDeJeu.Droid
public const int share = 2131165324;
// aapt resource value: 0x7F07008D
public const int spell_book = 2131165325;
public const int speaker = 2131165325;
// aapt resource value: 0x7F07008E
public const int splash = 2131165326;
public const int speaker_off = 2131165326;
// aapt resource value: 0x7F07008F
public const int stars_stack = 2131165327;
public const int spell_book = 2131165327;
// aapt resource value: 0x7F070090
public const int tooltip_frame_dark = 2131165328;
public const int splash = 2131165328;
// aapt resource value: 0x7F070091
public const int tooltip_frame_light = 2131165329;
public const int stars_stack = 2131165329;
// aapt resource value: 0x7F070092
public const int trash_can = 2131165330;
public const int tooltip_frame_dark = 2131165330;
// aapt resource value: 0x7F070093
public const int wooden_sign = 2131165331;
public const int tooltip_frame_light = 2131165331;
// aapt resource value: 0x7F070094
public const int trash_can = 2131165332;
// aapt resource value: 0x7F070095
public const int wooden_sign = 2131165333;
static Drawable()
{

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 516 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 797 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 516 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 550 B

View file

@ -32,6 +32,13 @@ namespace AideDeJeu.ViewModels
}
}
public string SpeakerIcon
{
get
{
return Speaking ? "speaker.png" : "speaker_off.png";
}
}
public bool Speaking
{
get
@ -60,6 +67,7 @@ namespace AideDeJeu.ViewModels
_CancellationTokenSource = new CancellationTokenSource();
OnPropertyChanged(nameof(Speaking));
OnPropertyChanged(nameof(NotSpeaking));
OnPropertyChanged(nameof(SpeakerIcon));
var options = new Xamarin.Essentials.SpeechOptions();
var locales = (await Xamarin.Essentials.TextToSpeech.GetLocalesAsync()).ToList();
if (item.Id.Contains("_vo.md"))
@ -83,6 +91,7 @@ namespace AideDeJeu.ViewModels
_CancellationTokenSource = null;
OnPropertyChanged(nameof(Speaking));
OnPropertyChanged(nameof(NotSpeaking));
OnPropertyChanged(nameof(SpeakerIcon));
}
}

View file

@ -24,7 +24,8 @@
<tools:BindableToolbarItem Name="Filter" Text="Filtrer" Order="Primary" Icon="funnel.png" IsVisible="{Binding Filter, Converter={StaticResource NullToFalseConverter}, Mode=OneWay}" Command="{Binding Main.ChangeFilterIsPresentedCommand, Mode=OneTime}" />
<ToolbarItem Name="AddToFavorites" Text="Ajouter aux favoris" Order="Primary" Icon="round_star.png" Command="{Binding Main.Navigator.AddToFavoritesCommand, Mode=OneTime}" CommandParameter="{Binding}" />
<ToolbarItem Name="Print" Text="Générer un PDF" Order="Secondary" Icon="scroll_unfurled.png" Command="{Binding Main.Navigator.GeneratePDFCommand, Mode=OneTime}" CommandParameter="{Binding Item.Markdown}" />
<ToolbarItem Name="Speak" Text="Écouter / Arrêter" Order="Secondary" Icon="scroll_unfurled.png" Command="{Binding Main.Speech.SpeakItemCommand, Mode=OneTime}" CommandParameter="{Binding Item}" />
<!--<ToolbarItem Name="Speak" Text="Écouter / Arrêter" Order="Secondary" Icon="speaker.png" Command="{Binding Main.Speech.SpeakItemCommand, Mode=OneTime}" CommandParameter="{Binding Item}" />-->
<ToolbarItem Name="Speak" Text="Écouter / Arrêter" Order="Secondary" Icon="{Binding Main.Speech.SpeakerIcon, Mode=OneWay}" Command="{Binding Main.Speech.SpeakItemCommand, Mode=OneTime}" CommandParameter="{Binding Item}" />
</ContentPage.ToolbarItems>
<Grid>
<Grid.RowDefinitions>

View file

@ -49,8 +49,12 @@ call convertone.bat share share
call convertone.bat cancel cancel
:nouveau
call convertone.bat scroll_unfurled scroll-unfurled
:nouveau
call convertone.bat speaker speaker
call convertone.bat speaker_off speaker-off
pause

View file

@ -0,0 +1 @@
<svg style="height: 512px; width: 512px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M0 0h512v512H0z" fill="#fff" fill-opacity="0"></path><g class="" style="touch-action: none;" transform="translate(0,0)"><path d="M275.5 96l-96 96h-96v128h96l96 96V96zm50.863 89.637l-12.726 12.726L371.273 256l-57.636 57.637 12.726 12.726L384 268.727l57.637 57.636 12.726-12.726L396.727 256l57.636-57.637-12.726-12.726L384 243.273l-57.637-57.636z" fill="#000" fill-opacity="1"></path></g></svg>

After

Width:  |  Height:  |  Size: 500 B

1
Data/Icons/speaker.svg Normal file
View file

@ -0,0 +1 @@
<svg style="height: 512px; width: 512px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M0 0h512v512H0z" fill="#fff" fill-opacity="0"></path><g class="" style="touch-action: none;" transform="translate(0,0)"><path d="M275.5 96l-96 96h-96v128h96l96 96V96zm51.46 27.668l-4.66 17.387c52.066 13.95 88.2 61.04 88.2 114.945 0 53.904-36.134 100.994-88.2 114.945l4.66 17.387C386.81 372.295 428.5 317.962 428.5 256c0-61.963-41.69-116.295-101.54-132.332zm-12.425 46.365l-4.658 17.387C340.96 195.748 362.5 223.822 362.5 256s-21.54 60.252-52.623 68.58l4.658 17.387C353.402 331.552 380.5 296.237 380.5 256c0-40.238-27.098-75.552-65.965-85.967zm-12.424 46.363l-4.657 17.387C307.55 236.49 314.5 245.547 314.5 256s-6.95 19.51-17.047 22.217l4.658 17.387c17.884-4.792 30.39-21.09 30.39-39.604 0-18.513-12.506-34.812-30.39-39.604z" fill="#000" fill-opacity="1"></path></g></svg>

After

Width:  |  Height:  |  Size: 879 B