-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is considered a major update to the MakeIcon project. It not only adds a proper screen for previewing the selected images to be used for the icon but also changes the style of the icon of the application. However, the biggest change in this version is the change from in license from MIT to Apache. Despite being more verbose, it clearly states that any contribution to the project goes under the same license, which could be a source of misunderstanding with the MIT. Details of the reason can be read on the NOTICE file.
- Loading branch information
Showing
27 changed files
with
974 additions
and
461 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop"> | ||
|
||
<PropertyGroup> | ||
<OutputType>WinExe</OutputType> | ||
<TargetFramework>net5.0-windows</TargetFramework> | ||
<UseWPF>true</UseWPF> | ||
<AssemblyName>MakeIcon</AssemblyName> | ||
<RootNamespace>Lmpessoa.MakeIcon</RootNamespace> | ||
<Version>2.0.0</Version> | ||
<Authors>Leonardo Pessoa</Authors> | ||
<NeutralLanguage>en-gb</NeutralLanguage> | ||
<PackageProjectUrl>https://www.github.com/Lmpessoa/MakeIcon/</PackageProjectUrl> | ||
<RepositoryUrl>https://www.github.com/Lmpessoa/MakeIcon/</RepositoryUrl> | ||
<Description>A simple application to build Windows 10 compatible ICO icon files from multiple PNG image files.</Description> | ||
<Copyright>Copyright © 2019 Leonardo Pessoa</Copyright> | ||
<ApplicationIcon>..\Resources\MakeIcon.ico</ApplicationIcon> | ||
<PackageLicenseFile>LICENSE</PackageLicenseFile> | ||
<PackageIcon>MakeIcon.ico</PackageIcon> | ||
<PackageTags>icons windows-10 ico</PackageTags> | ||
<SignAssembly>true</SignAssembly> | ||
<AssemblyOriginatorKeyFile>..\..\Lmpessoa.pfx</AssemblyOriginatorKeyFile> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Remove="Program.cs" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Remove="help-icon.png" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="System.Drawing.Common" Version="5.0.1" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Include="..\LICENSE"> | ||
<Pack>True</Pack> | ||
<PackagePath></PackagePath> | ||
</None> | ||
<None Include="..\Resources\MakeIcon.ico"> | ||
<Pack>True</Pack> | ||
<PackagePath></PackagePath> | ||
</None> | ||
<None Include="Program.cs" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Resource Include="help-icon.png" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<Application x:Class="Lmpessoa.MakeIcon.App" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="clr-namespace:Lmpessoa.MakeIcon" | ||
x:ClassModifier="internal" | ||
StartupUri="MainWindow.xaml"> | ||
<Application.Resources> | ||
<ResourceDictionary> | ||
<ResourceDictionary.MergedDictionaries> | ||
<ResourceDictionary Source="Resources/Themes/Dark.xaml"/> | ||
</ResourceDictionary.MergedDictionaries> | ||
</ResourceDictionary> | ||
</Application.Resources> | ||
</Application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Copyright (c) 2021 Leonardo Pessoa | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
using System.Windows; | ||
|
||
namespace Lmpessoa.MakeIcon { | ||
|
||
internal partial class App : Application { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright (c) 2019 Leonardo Pessoa | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
using System.Windows; | ||
|
||
[assembly: ThemeInfo( | ||
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located | ||
//(used if a resource is not found in the page, | ||
// or application resource dictionaries) | ||
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located | ||
//(used if a resource is not found in the page, | ||
// app, or any theme specific resource dictionaries) | ||
)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<Window x:Class="Lmpessoa.MakeIcon.MainWindow" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:local="clr-namespace:Lmpessoa.MakeIcon" | ||
mc:Ignorable="d" | ||
x:ClassModifier="internal" | ||
Title="MainWindow" Height="400" Width="470" | ||
WindowStyle="None" | ||
WindowStartupLocation="CenterScreen" | ||
ScrollViewer.VerticalScrollBarVisibility="Disabled" | ||
AllowDrop="True" ResizeMode="CanMinimize" | ||
Background="{DynamicResource WindowBorder}" Drop="Window_DropFiles" DragOver="Window_DragOver"> | ||
<Window.Resources> | ||
<ResourceDictionary> | ||
<ResourceDictionary.MergedDictionaries> | ||
<ResourceDictionary Source="Resources/SystemButtonStyles.xaml"/> | ||
<ResourceDictionary Source="Resources/MainWindowStyles.xaml"/> | ||
</ResourceDictionary.MergedDictionaries> | ||
</ResourceDictionary> | ||
</Window.Resources> | ||
<Window.InputBindings> | ||
<KeyBinding Modifiers="Ctrl" Key="S" Command="{x:Static local:MainWindow.SaveAsCommand}"/> | ||
<KeyBinding Key="Delete" Command="{x:Static local:MainWindow.RemoveImageCommand}"/> | ||
<KeyBinding Key="Esc" Command="{x:Static local:MainWindow.ClearSelectionCommand}"/> | ||
<KeyBinding Key="Tab" Command="{x:Static local:MainWindow.SelectNextCommand}"/> | ||
</Window.InputBindings> | ||
<Window.CommandBindings> | ||
<CommandBinding Command="{x:Static local:MainWindow.ClearSelectionCommand}" Executed="ClearSelection"/> | ||
<CommandBinding Command="{x:Static local:MainWindow.RemoveImageCommand}" Executed="RemoveSelection"/> | ||
<CommandBinding Command="{x:Static local:MainWindow.SelectNextCommand}" Executed="SelectNext"/> | ||
<CommandBinding Command="{x:Static local:MainWindow.SaveAsCommand}" Executed="SaveAs_Click"/> | ||
</Window.CommandBindings> | ||
<DockPanel Margin="1" Background="{DynamicResource WindowBackground}"> | ||
<DockPanel DockPanel.Dock="Top" Height="34"> | ||
<StackPanel DockPanel.Dock="Right" Orientation="Horizontal"> | ||
<Button Style="{StaticResource SystemButton}" Content="" ToolTip="Change Theme" Click="ChangeTheme_Click"/> | ||
<Button Style="{StaticResource SystemButton}" Content="" FontSize="9" ToolTip="Minimize" Click="Minimize_Click"/> | ||
<Button Style="{StaticResource CloseSystemButton}" Content="" FontSize="12" ToolTip="Close" Click="Close_Click"/> | ||
</StackPanel> | ||
<Label MouseLeftButtonDown="TitlePanel_MouseLeftButtonDown"/> | ||
</DockPanel> | ||
<Button Style="{StaticResource SaveAsButton}" DockPanel.Dock="Bottom" Content="Save as..." HorizontalAlignment="Stretch" Height="24" Click="SaveAs_Click"/> | ||
<Grid ScrollViewer.VerticalScrollBarVisibility="Disabled"> | ||
<Label Content="256 x 256" HorizontalAlignment="Left" Margin="118,256,0,0" VerticalAlignment="Top" | ||
Tag="{x:Reference Icon256}" MouseLeftButtonDown="Label_Click"/> | ||
<Button x:Name="Icon256" Style="{StaticResource Icon}" Margin="10,0,0,0" Height="256" Width="256" | ||
BorderBrush="{DynamicResource IconBorder}" Click="ImageSelect" IsTabStop="False" Focusable="False"/> | ||
|
||
<Label Content="128 x 128" HorizontalAlignment="Left" Margin="364,145,0,0" VerticalAlignment="Top" | ||
Tag="{x:Reference Icon128}" MouseLeftButtonDown="Label_Click"/> | ||
<Button x:Name="Icon128" Style="{StaticResource Icon}" Margin="330,17,0,0" Height="128" Width="128" | ||
BorderBrush="{DynamicResource IconBorder}" Click="ImageSelect" IsTabStop="False" Focusable="False"/> | ||
|
||
<Label Content="64 x 64" HorizontalAlignment="Left" Margin="298,230,0,0" VerticalAlignment="Top" | ||
Tag="{x:Reference Icon64}" MouseLeftButtonDown="Label_Click"/> | ||
<Button x:Name="Icon64" Style="{StaticResource Icon}" Margin="290,167,0,0" Height="64" Width="64" | ||
BorderBrush="{DynamicResource IconBorder}" Click="ImageSelect" IsTabStop="False" Focusable="False"/> | ||
|
||
<Label Content="48 x 48" HorizontalAlignment="Left" Margin="384,230,0,0" VerticalAlignment="Top" | ||
Tag="{x:Reference Icon48}" MouseLeftButtonDown="Label_Click"/> | ||
<Button x:Name="Icon48" Style="{StaticResource Icon}" Margin="384,182,0,0" Height="48" Width="48" | ||
BorderBrush="{DynamicResource IconBorder}" Click="ImageSelect" IsTabStop="False" Focusable="False"/> | ||
|
||
<Label Content="32 x 32" HorizontalAlignment="Left" Margin="363,292,0,0" VerticalAlignment="Top" | ||
Tag="{x:Reference Icon32}" MouseLeftButtonDown="Label_Click"/> | ||
<Button x:Name="Icon32" Style="{StaticResource Icon}" Margin="371,260,0,0" Height="32" Width="32" | ||
BorderBrush="{DynamicResource IconBorder}" Click="ImageSelect" IsTabStop="False" Focusable="False"/> | ||
|
||
<Label Content="16 x 16" HorizontalAlignment="Left" Margin="309,310,0,0" VerticalAlignment="Top" | ||
Tag="{x:Reference Icon16}" MouseLeftButtonDown="Label_Click"/> | ||
<Button x:Name="Icon16" Style="{StaticResource Icon}" Margin="325,294,0,0" Height="16" Width="16" | ||
BorderBrush="{DynamicResource IconBorder}" Click="ImageSelect" IsTabStop="False" Focusable="False"/> | ||
|
||
<TextBlock x:Name="HelpTip" FontSize="11" TextWrapping="Wrap" Margin="0,0,178,33" Background="{DynamicResource {x:Static SystemColors.InfoBrushKey}}" | ||
VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="272" Padding="10,5" ScrollViewer.VerticalScrollBarVisibility="Disabled" Visibility="Hidden"> | ||
Drag the desired PNG images files onto this window to add them to your icon and press the "Save as..." button below to save it to as an ICO file. | ||
<LineBreak/><LineBreak/> | ||
You can also remove an image previously included from the icon by clicking on a desired image and pressing the DELETE key. | ||
</TextBlock> | ||
<Image Margin="10,310,433,5" Stretch="Uniform" Source="help-icon.png" Width="25" Height="25" MouseLeave="Help_MouseLeave" MouseEnter="Help_MouseEnter"/> | ||
</Grid> | ||
</DockPanel> | ||
</Window> |
Oops, something went wrong.