Test icone speaker
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
BIN
AideDeJeu/AideDeJeu.Android/Resources/drawable-hdpi/speaker.png
Normal file
|
After Width: | Height: | Size: 1 KiB |
|
After Width: | Height: | Size: 516 B |
BIN
AideDeJeu/AideDeJeu.Android/Resources/drawable-xhdpi/speaker.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 797 B |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 1 KiB |
BIN
AideDeJeu/AideDeJeu.Android/Resources/drawable/speaker.png
Normal file
|
After Width: | Height: | Size: 1 KiB |
BIN
AideDeJeu/AideDeJeu.Android/Resources/drawable/speaker_off.png
Normal file
|
After Width: | Height: | Size: 516 B |
BIN
AideDeJeu/AideDeJeu.UWP/speaker.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
AideDeJeu/AideDeJeu.UWP/speaker_off.png
Normal file
|
After Width: | Height: | Size: 1 KiB |
BIN
AideDeJeu/AideDeJeu.iOS/Media.xcassets/speaker.imageset/speaker.png
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
AideDeJeu/AideDeJeu.iOS/Media.xcassets/speaker_off.imageset/speaker_off.png
vendored
Normal file
|
After Width: | Height: | Size: 550 B |
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||