BililiveRecorder/BililiveRecorder.WPF/Resources/ConverterResources.xaml
Genteure 6df6b96b2a update ui
添加直播状态图标
添加复制主播名、房间号的右键菜单
调整高级设置 Cookie Textbox
2020-12-12 23:19:47 +08:00

27 lines
1.8 KiB
XML

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:c="clr-namespace:BililiveRecorder.WPF.Converters">
<c:MultiBoolToValueConverter x:Key="MultiBoolToVisibilityCollapsedConverter" TrueValue="{x:Static Visibility.Visible}" FalseValue="{x:Static Visibility.Collapsed}"/>
<c:BoolToValueConverter x:Key="BooleanToVisibilityCollapsedConverter" TrueValue="{x:Static Visibility.Visible}" FalseValue="{x:Static Visibility.Collapsed}" />
<c:BoolToValueConverter x:Key="InvertBooleanToVisibilityCollapsedConverter" TrueValue="{x:Static Visibility.Collapsed}" FalseValue="{x:Static Visibility.Visible}" />
<c:BoolToValueConverter x:Key="BooleanToVisibilityHiddenConverter" TrueValue="{x:Static Visibility.Visible}" FalseValue="{x:Static Visibility.Hidden}" />
<c:BoolToValueConverter x:Key="BooleanToLiveStatusColorBrushConverter">
<c:BoolToValueConverter.FalseValue>
<SolidColorBrush Color="#999999"/>
</c:BoolToValueConverter.FalseValue>
<c:BoolToValueConverter.TrueValue>
<SolidColorBrush Color="Red"/>
</c:BoolToValueConverter.TrueValue>
</c:BoolToValueConverter>
<c:BoolToValueConverter x:Key="BooleanToLiveStatusTooltipConverter" TrueValue="直播中" FalseValue="未开播"/>
<c:BooleanInverterConverter x:Key="BooleanInverterConverter"/>
<c:ClipEnabledToBooleanConverter x:Key="ClipEnabledToBooleanConverter"/>
<c:EnumToBooleanConverter x:Key="EnumToBooleanConverter"/>
<c:IsNullToVisibilityConverter x:Key="IsNullToVisibilityCollapsedConverter"/>
<c:PercentageToColorBrushConverter x:Key="PercentageToColorBrushConverter"/>
<c:ShortRoomIdToVisibilityConverter x:Key="ShortRoomIdToVisibilityConverter"/>
</ResourceDictionary>