mirror of
https://github.com/Tichau/FileConverter.git
synced 2026-11-24 11:32:21 +01:00
Add SayThanks button
This commit is contained in:
1 parent
1d26e7097d
commit
22e788a159
5 files changed
+89
-1
No files matched your search
@@ -324,6 +324,9 @@
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\ItchIO-icon.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\SayThanks-Icon.png" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>copy /Y "$(SolutionDir)Middleware\ffmpeg\$(PlatformName)\ffmpeg.exe" "$(TargetDir)ffmpeg.exe"
|
||||
|
||||
+10
-1
@@ -19,7 +19,7 @@ namespace FileConverter.Properties {
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
public class Resources {
|
||||
@@ -994,6 +994,15 @@ namespace FileConverter.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Say Thanks!.
|
||||
/// </summary>
|
||||
public static string SayThanksButtonTitle {
|
||||
get {
|
||||
return ResourceManager.GetString("SayThanksButtonTitle", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Scale :.
|
||||
/// </summary>
|
||||
|
||||
@@ -544,4 +544,7 @@ use maj for uppercase version</value>
|
||||
<data name="WebsiteButtonDescription" xml:space="preserve">
|
||||
<value>Open File Converter website</value>
|
||||
</data>
|
||||
<data name="SayThanksButtonTitle" xml:space="preserve">
|
||||
<value>Say Thanks!</value>
|
||||
</data>
|
||||
</root>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
@@ -84,6 +84,71 @@
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<!-- SayThanks button style -->
|
||||
|
||||
<Style x:Key="SayThanksFocusVisual">
|
||||
<Setter Property="Control.Background" Value="#E5E5E5"></Setter>
|
||||
<Setter Property="Control.Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Control}">
|
||||
<Grid Margin="3 2">
|
||||
<Rectangle Name="r1" StrokeThickness="1" Stroke="Black" StrokeDashArray="2 2"/>
|
||||
<Border Name="border" Width="{TemplateBinding ActualWidth}" Height="{TemplateBinding ActualHeight}" CornerRadius="2" BorderThickness="1" />
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="SayThanksButton" TargetType="Button">
|
||||
<Setter Property="OverridesDefaultStyle" Value="True"/>
|
||||
<Setter Property="FocusVisualStyle" Value="{StaticResource SayThanksFocusVisual}" />
|
||||
<Setter Property="Background" Value="#E5E5E5"/>
|
||||
<Setter Property="Foreground" Value="#3AC025"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="Button">
|
||||
<Border Name="border" BorderThickness="1" Padding="4,2" BorderBrush="#404040" CornerRadius="3" Background="{TemplateBinding Background}">
|
||||
<Grid>
|
||||
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Name="contentShadow" Style="{StaticResource ShadowStyle}">
|
||||
<ContentPresenter.RenderTransform>
|
||||
<TranslateTransform X="1.0" Y="1.0" />
|
||||
</ContentPresenter.RenderTransform>
|
||||
</ContentPresenter>
|
||||
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Name="content"/>
|
||||
</Grid>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter TargetName="border" Property="BorderBrush" Value="#303030" />
|
||||
<Setter Property="Foreground" Value="#3AC025" />
|
||||
<Setter Property="Background" Value="#CCCCCC"/>
|
||||
</Trigger>
|
||||
<Trigger Property="IsPressed" Value="True">
|
||||
<Setter TargetName="border" Property="BorderBrush" Value="#202020" />
|
||||
<Setter Property="Background" Value="#BBBBBB"/>
|
||||
<Setter TargetName="content" Property="RenderTransform" >
|
||||
<Setter.Value>
|
||||
<TranslateTransform Y="1.0" />
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Trigger>
|
||||
<Trigger Property="IsDefaulted" Value="True">
|
||||
<Setter TargetName="border" Property="BorderBrush" Value="#FF282828" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsFocused" Value="True">
|
||||
<Setter TargetName="border" Property="BorderBrush" Value="#FF282828" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled" Value="False">
|
||||
<Setter TargetName="border" Property="Opacity" Value="0.7" />
|
||||
<Setter Property="Foreground" Value="Gray" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<generic:CultureInfoToStringConverter x:Key="CultureInfoToString"/>
|
||||
<generic:ObjectToLocalizedString x:Key="ObjectToLocalizedString"/>
|
||||
<generic:DoubleToTimeString x:Key="DoubleToTimeString"/>
|
||||
@@ -1010,6 +1075,14 @@
|
||||
</DockPanel>
|
||||
</Button.Content>
|
||||
</Button>
|
||||
<Button Style="{StaticResource SayThanksButton}" Margin="5,0,5,0" Command="{Binding OpenUrlCommand, ElementName=window, Mode=OneWay}" CommandParameter="https://saythanks.io/to/Tichau">
|
||||
<Button.Content>
|
||||
<DockPanel>
|
||||
<Image Source="/FileConverter;component/Resources/SayThanks-icon.png"></Image>
|
||||
<Label Content="{x:Static project:Resources.SayThanksButtonTitle}" Margin="5,0,5,0" Foreground="DimGray" FontWeight="Bold" FontSize="14"/>
|
||||
</DockPanel>
|
||||
</Button.Content>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,0,0,0">
|
||||
|
||||
Reference in new issue
Block a user