Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

Commit

Permalink
Merge pull request #13 from mwagenfuehr/fix/icons_not_showing
Browse files Browse the repository at this point in the history
Replace every usage of "fa:ToText" with "fa:IconImage" as Button-Content
  • Loading branch information
OnkelMato authored Jun 27, 2019
2 parents 655969e + bb0ca0e commit bc134a4
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 17 deletions.
12 changes: 8 additions & 4 deletions NWaveform.App/ChannelsView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,16 @@
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal">
<Button cal:Message.Attach="Play"
Content="{fa:ToText Play}" ToolTip="Play" Style="{StaticResource ProminentButton}"
Visibility="{Binding IsPlaying, Converter={StaticResource InverseBoolToVisible}}" />
ToolTip="Play" Style="{StaticResource ProminentButton}"
Visibility="{Binding IsPlaying, Converter={StaticResource InverseBoolToVisible}}" >
<fa:IconImage Icon="Play"/>
</Button>

<Button cal:Message.Attach="Pause"
Content="{fa:ToText Pause}" ToolTip="Pause" Style="{StaticResource ProminentButton}"
Visibility="{Binding IsPlaying, Converter={StaticResource BoolToVisible}}" />
ToolTip="Pause" Style="{StaticResource ProminentButton}"
Visibility="{Binding IsPlaying, Converter={StaticResource BoolToVisible}}" >
<fa:IconImage Icon="Pause"/>
</Button>
</StackPanel>

<ListBox Grid.Row="1" x:Name="Channels" HorizontalContentAlignment="Stretch" IsTabStop="False">
Expand Down
43 changes: 30 additions & 13 deletions NWaveform.WPF/Views/WaveFormPlayerView.xaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<UserControl x:Class="NWaveform.Views.WaveformPlayerView"
<UserControl x:Class="NWaveform.Views.WaveformPlayerView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Expand Down Expand Up @@ -151,33 +151,50 @@
</Label>

<Button cal:Message.Attach="Stop"
Content="{fa:ToText Stop}" ToolTip="Stop" />
ToolTip="Stop" >
<fa:IconImage Icon="Stop"/>
</Button>

<ToggleButton cal:Message.Attach="ToggleLoop" Visibility="{Binding CanLoop, Converter={StaticResource BoolToVisible}}"
Content="{fa:ToText Redo}" ToolTip="Toggle Loop" IsThreeState="False" IsChecked="{Binding IsLooping,Mode=OneWay}" />
ToolTip="Toggle Loop" IsThreeState="False" IsChecked="{Binding IsLooping,Mode=OneWay}" >
<fa:IconImage Icon="Redo"/>
</ToggleButton>

<Button cal:Message.Attach="Slower"
Visibility="{Binding SupportsRate, Converter={StaticResource BoolToVisible}}"
Content="{fa:ToText AngleDoubleLeft}" ToolTip="Slower" />
ToolTip="Slower" >
<fa:IconImage Icon="AngleDoubleLeft"/>
</Button>

<Button cal:Message.Attach="Play"
Content="{fa:ToText Play}" ToolTip="Play" Style="{StaticResource ProminentButton}"
Visibility="{Binding IsPlaying, Converter={StaticResource InverseBoolToVisible}}" />
ToolTip="Play" Style="{StaticResource ProminentButton}"
Visibility="{Binding IsPlaying, Converter={StaticResource InverseBoolToVisible}}" >
<fa:IconImage Icon="Play"/>
</Button>

<Button cal:Message.Attach="Pause"
Content="{fa:ToText Pause}" ToolTip="Pause" Style="{StaticResource ProminentButton}"
Visibility="{Binding IsPlaying, Converter={StaticResource BoolToVisible}}" />
ToolTip="Pause" Style="{StaticResource ProminentButton}"
Visibility="{Binding IsPlaying, Converter={StaticResource BoolToVisible}}" >
<fa:IconImage Icon="Pause"/>
</Button>

<Button cal:Message.Attach="Faster"
Visibility="{Binding SupportsRate, Converter={StaticResource BoolToVisible}}"
Content="{fa:ToText AngleDoubleRight}" ToolTip="Faster" />
ToolTip="Faster" >
<fa:IconImage Icon="AngleDoubleRight"/>
</Button>

<Button cal:Message.Attach="Mute"
Content="{fa:ToText VolumeOff}" ToolTip="Mute"
Visibility="{Binding CanMute, Converter={StaticResource BoolToVisible}}" />
ToolTip="Mute"
Visibility="{Binding CanMute, Converter={StaticResource BoolToVisible}}" >
<fa:IconImage Icon="VolumeOff"/>
</Button>

<Button cal:Message.Attach="UnMute"
Content="{fa:ToText VolumeUp}" ToolTip="Unmute"
Visibility="{Binding CanMute, Converter={StaticResource InverseBoolToVisible}}" />
ToolTip="Unmute"
Visibility="{Binding CanMute, Converter={StaticResource InverseBoolToVisible}}" >
<fa:IconImage Icon="VolumeUp"/>
</Button>

<nWaveform:FormattedSlider VerticalAlignment="Center" MinWidth="95"
Value="{Binding Volume}" Minimum="0" Maximum="1"
Expand Down

0 comments on commit bc134a4

Please sign in to comment.