Merge pull request #88 from Tichau/feature/icons

New icons for tree view manipulation actions.
This commit is contained in:
Adrien Allard authored and GitHub committed 2019-07-12 16:22:59 +02:00
commit 2ce2a67341
15 files changed
+313 -12

No files matched your search

@@ -402,6 +402,18 @@
<ItemGroup>
<Resource Include="Resources\FolderIcon.ico" />
</ItemGroup>
<ItemGroup>
<Resource Include="Resources\UpIcon.ico" />
</ItemGroup>
<ItemGroup>
<Resource Include="Resources\DownIcon.ico" />
</ItemGroup>
<ItemGroup>
<Resource Include="Resources\PresetIcon.ico" />
</ItemGroup>
<ItemGroup>
<Resource Include="Resources\DeleteIcon.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>copy /Y "$(SolutionDir)Middleware\ffmpeg\$(PlatformName)\ffmpeg.exe" "$(TargetDir)ffmpeg.exe"
Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

@@ -1,6 +1,14 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Style x:Key="EnableDisableImageStyle" TargetType="{x:Type Image}">
<Style.Triggers>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Opacity" Value="0.25"/>
</Trigger>
</Style.Triggers>
</Style>
<!-- Donation button style -->
<Style x:Key="ShadowStyle">
@@ -131,23 +131,36 @@
</TreeView>
<DockPanel Grid.Row="1" Margin="0,5,0,0" HorizontalAlignment="Center">
<Button HorizontalAlignment="Left" Width="25" Margin="0,0,2,0"
<Button Width="25" Margin="2,0"
ToolTip="{x:Static project:Resources.MoveUpSelectedPreset}"
Command="{Binding MovePresetUpCommand}">
<Image Source="{Binding Source=/FileConverter;component/Resources/UpIcon.ico, Converter={StaticResource IcoFileSizeSelector}, ConverterParameter=48}"
Style="{StaticResource EnableDisableImageStyle}"/>
</Button>
<Button Width="25" Margin="0,0,2,0"
ToolTip="{x:Static project:Resources.CreateANewFolder}"
Command="{Binding CreateFolderCommand}">
<Image Source="{Binding Source=/FileConverter;component/Resources/FolderIcon.ico, Converter={StaticResource IcoFileSizeSelector}, ConverterParameter=48}" />
<Image Source="{Binding Source=/FileConverter;component/Resources/FolderIcon.ico, Converter={StaticResource IcoFileSizeSelector}, ConverterParameter=48}"
Style="{StaticResource EnableDisableImageStyle}"/>
</Button>
<Button Content="^" HorizontalAlignment="Left" Width="25" Margin="2,0"
ToolTip="{x:Static project:Resources.MoveUpSelectedPreset}"
Command="{Binding MovePresetUpCommand}"/>
<Button Content="+" HorizontalAlignment="Left" Width="25" Margin="2,0"
<Button Width="25" Margin="2,0"
ToolTip="{x:Static project:Resources.AddNewPreset}"
Command="{Binding AddNewPresetCommand}"/>
<Button Content="-" HorizontalAlignment="Left" Width="25" Margin="2,0"
Command="{Binding AddNewPresetCommand}">
<Image Source="{Binding Source=/FileConverter;component/Resources/PresetIcon.ico, Converter={StaticResource IcoFileSizeSelector}, ConverterParameter=48}"
Style="{StaticResource EnableDisableImageStyle}"/>
</Button>
<Button Width="25" Margin="2,0"
ToolTip="{x:Static project:Resources.RemoveSelectedPreset}"
Command="{Binding RemoveSelectedPresetCommand}"/>
<Button Content="v" HorizontalAlignment="Left" Width="25" Margin="2,0,0,0"
Command="{Binding RemoveSelectedPresetCommand}">
<Image Source="{Binding Source=/FileConverter;component/Resources/DeleteIcon.ico, Converter={StaticResource IcoFileSizeSelector}, ConverterParameter=48}"
Style="{StaticResource EnableDisableImageStyle}"/>
</Button>
<Button Width="25" Margin="2,0,0,0"
ToolTip="{x:Static project:Resources.MoveDownSelectedPreset}"
Command="{Binding MovePresetDownCommand}"/>
Command="{Binding MovePresetDownCommand}">
<Image Source="{Binding Source=/FileConverter;component/Resources/DownIcon.ico, Converter={StaticResource IcoFileSizeSelector}, ConverterParameter=48}"
Style="{StaticResource EnableDisableImageStyle}"/>
</Button>
<TextBlock Margin="5,5,0,0">
<Hyperlink CommandParameter="https://github.com/Tichau/FileConverter/wiki/How-to-create-a-new-custom-preset%3F" Command="{Binding OpenUrlCommand, Mode=OneWay}" Foreground="#1E6BB8"><x:Static Member="project:Resources.Help" /></Hyperlink>
</TextBlock>
+1 -1
View File
@@ -11,7 +11,7 @@
- Added: Display conversion progress on the Windows taskbar item.
- Added: Display estimated remaining time for each jobs.
- Added: Support tif input extension (only tiff was handled) (github issue #29).
- Added: Icons on context menu elements.
- Added: Icons on context menu elements and conversion preset list actions.
- Added: Remove the need to ask administrator privileges to edit File Converter settings (github issue #4 #30 #32).
- Added: Highlight in red elements that contains errors in the preset list.
- Added: "Say thanks" button if you can't donate and want to keep my motivation up :).
Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

+92
View File
@@ -0,0 +1,92 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="256"
height="256"
viewBox="0 0 256.00001 256.00001"
id="svg2"
version="1.1"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
sodipodi:docname="DeleteIcon.svg"
inkscape:export-filename="C:\Users\Adrien\Documents\GitHub\FileConverter\Resources\FailIcon.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<defs
id="defs4" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="2"
inkscape:cx="208.1541"
inkscape:cy="4.358179"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
units="px"
inkscape:window-width="2848"
inkscape:window-height="1955"
inkscape:window-x="139"
inkscape:window-y="-13"
inkscape:window-maximized="1" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Calque 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-796.3622)">
<flowRoot
xml:space="preserve"
id="flowRoot4348"
style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#f44336;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
transform="translate(0,1004.3622)"><flowRegion
id="flowRegion4350"><rect
id="rect4352"
width="24"
height="44.75"
x="12"
y="2.625"
style="fill:#f44336;fill-opacity:1" /></flowRegion><flowPara
id="flowPara4354"
style="font-size:40px;line-height:1.25">!</flowPara></flowRoot> <path
style="fill:none;stroke:#d32f2f;stroke-width:9.75045013;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 36.375052,843.1122 H 219.62495 v 0"
id="path845"
inkscape:connector-curvature="0" />
<path
style="fill:#d32f2f;fill-opacity:1;stroke:none;stroke-width:10.07606792;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 53,859.3622 v 21.6875 24.4375 92.1875 c 0,12.0153 9.672176,21.6875 21.6875,21.6875 h 106.625 c 12.01532,0 21.6875,-9.6722 21.6875,-21.6875 V 905.4872 881.0497 859.3622 H 181.3125 74.6875 Z m 41.523438,29.58789 c 4.700845,0 8.486332,4.06374 8.486332,9.11133 v 87.31445 c 0,5.0476 -3.785487,9.11133 -8.486332,9.11133 -4.700846,0 -8.484375,-4.06373 -8.484376,-9.11133 v -87.31445 c 0,-5.04759 3.78353,-9.11133 8.484376,-9.11133 z M 158,889.59267 c 4.70085,0 8.48438,4.06373 8.48438,9.11133 v 87.3164 c 0,5.0476 -3.78353,9.11133 -8.48438,9.11133 -4.70085,0 -8.48438,-4.06373 -8.48438,-9.11133 V 898.704 c 0,-5.0476 3.78353,-9.11133 8.48438,-9.11133 z"
id="rect881"
inkscape:connector-curvature="0" />
<rect
style="fill:#d32f2f;fill-opacity:1;stroke:none;stroke-width:16.16783905;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect964"
width="39.355076"
height="21.25"
x="108.32246"
y="821.23718"
ry="6" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.9 KiB

+90
View File
@@ -0,0 +1,90 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="50mm"
height="50mm"
viewBox="0 0 50 50"
version="1.1"
id="svg3760"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
sodipodi:docname="DownIcon.svg"
inkscape:export-filename="C:\Users\Adrien\Documents\GitHub\FileConverter\Resources\Icons\PresetCategory.png"
inkscape:export-xdpi="11.82"
inkscape:export-ydpi="11.82">
<defs
id="defs3754">
<inkscape:perspective
sodipodi:type="inkscape:persp3d"
inkscape:vp_x="0 : 25 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_z="50 : 25 : 1"
inkscape:persp3d-origin="25 : 16.666667 : 1"
id="perspective841" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1.4142136"
inkscape:cx="172.41254"
inkscape:cy="286.1731"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="2848"
inkscape:window-height="1955"
inkscape:window-x="139"
inkscape:window-y="-13"
inkscape:window-maximized="1"
showguides="false" />
<metadata
id="metadata3757">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-247)">
<g
id="g854"
transform="rotate(-180,24.964377,271.68016)">
<path
sodipodi:nodetypes="cccc"
inkscape:connector-curvature="0"
id="path839"
d="M 23.977864,258.20547 3.7041666,281.78646 H 46.0375 Z"
style="fill:#0171bb;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<g
transform="translate(-4.2664061,3.3403645)"
style="fill:#004b82;fill-opacity:1"
id="g5144">
<path
sodipodi:nodetypes="ccccc"
inkscape:connector-curvature="0"
id="path849"
d="m 28.24427,254.86511 22.059636,23.58099 -5.858425,7.9e-4 -18.889554,-20.37188 z"
style="fill:#004b82;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.9 KiB

+86
View File
@@ -0,0 +1,86 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="50mm"
height="50mm"
viewBox="0 0 50 50"
version="1.1"
id="svg3760"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
sodipodi:docname="UpIcon.svg"
inkscape:export-filename="C:\Users\Adrien\Documents\GitHub\FileConverter\Resources\Icons\PresetCategory.png"
inkscape:export-xdpi="11.82"
inkscape:export-ydpi="11.82">
<defs
id="defs3754">
<inkscape:perspective
sodipodi:type="inkscape:persp3d"
inkscape:vp_x="0 : 25 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_z="50 : 25 : 1"
inkscape:persp3d-origin="25 : 16.666667 : 1"
id="perspective841" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1.4142136"
inkscape:cx="172.41254"
inkscape:cy="286.1731"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="2848"
inkscape:window-height="1955"
inkscape:window-x="139"
inkscape:window-y="-13"
inkscape:window-maximized="1"
showguides="false" />
<metadata
id="metadata3757">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-247)">
<path
style="fill:#0171bb;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 23.977864,258.20547 3.7041666,281.78646 H 46.0375 Z"
id="path839"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccc" />
<g
id="g5144"
style="fill:#004b82;fill-opacity:1"
transform="translate(-4.2664061,3.3403645)">
<path
style="fill:#004b82;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 28.24427,254.86511 22.059636,23.58099 -5.858425,7.9e-4 -18.889554,-20.37188 z"
id="path849"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccc" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB