1
0
mirror of https://github.com/chylex/IntelliJ-Colored-Icons.git synced 2025-08-02 08:59:11 +02:00

Add code style & reformat SVGs

This commit is contained in:
chylex 2020-11-15 14:21:49 +01:00
parent 02f8ef538e
commit 24d16c648a
10 changed files with 121 additions and 26 deletions

1
.gitignore vendored
View File

@ -1,5 +1,4 @@
/.idea/$CACHE_FILE$
/.idea/codeStyles/
/.idea/dictionaries/
/.idea/inspectionProfiles/
/.idea/uiDesigner.xml

View File

@ -0,0 +1,79 @@
<component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173">
<option name="AUTODETECT_INDENTS" value="false" />
<option name="LINE_SEPARATOR" value="&#10;" />
<option name="RIGHT_MARGIN" value="999" />
<option name="FORMATTER_TAGS_ENABLED" value="true" />
<JavaCodeStyleSettings>
<option name="INSERT_INNER_CLASS_IMPORTS" value="true" />
<option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="99" />
<option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="99" />
<option name="PACKAGES_TO_USE_IMPORT_ON_DEMAND">
<value />
</option>
<option name="IMPORT_LAYOUT_TABLE">
<value>
<package name="" withSubpackages="true" static="false" />
<package name="javax" withSubpackages="true" static="false" />
<package name="java" withSubpackages="true" static="false" />
<package name="" withSubpackages="true" static="true" />
</value>
</option>
</JavaCodeStyleSettings>
<XML>
<option name="XML_ATTRIBUTE_WRAP" value="0" />
<option name="XML_TEXT_WRAP" value="0" />
</XML>
<codeStyleSettings language="JAVA">
<option name="RIGHT_MARGIN" value="999" />
<option name="BLANK_LINES_AFTER_PACKAGE" value="0" />
<option name="BLANK_LINES_BEFORE_IMPORTS" value="0" />
<option name="ELSE_ON_NEW_LINE" value="true" />
<option name="SPACE_WITHIN_ARRAY_INITIALIZER_BRACES" value="true" />
<option name="SPACE_AFTER_TYPE_CAST" value="false" />
<option name="SPACE_BEFORE_WHILE_PARENTHESES" value="false" />
<option name="SPACE_BEFORE_FOR_PARENTHESES" value="false" />
<option name="SPACE_BEFORE_TRY_PARENTHESES" value="false" />
<option name="SPACE_BEFORE_CATCH_PARENTHESES" value="false" />
<option name="SPACE_BEFORE_SWITCH_PARENTHESES" value="false" />
<option name="SPACE_BEFORE_SYNCHRONIZED_PARENTHESES" value="false" />
<option name="SPACE_BEFORE_CLASS_LBRACE" value="false" />
<option name="SPACE_BEFORE_METHOD_LBRACE" value="false" />
<option name="SPACE_BEFORE_IF_LBRACE" value="false" />
<option name="SPACE_BEFORE_ELSE_LBRACE" value="false" />
<option name="SPACE_BEFORE_WHILE_LBRACE" value="false" />
<option name="SPACE_BEFORE_FOR_LBRACE" value="false" />
<option name="SPACE_BEFORE_DO_LBRACE" value="false" />
<option name="SPACE_BEFORE_SWITCH_LBRACE" value="false" />
<option name="SPACE_BEFORE_TRY_LBRACE" value="false" />
<option name="SPACE_BEFORE_CATCH_LBRACE" value="false" />
<option name="SPACE_BEFORE_FINALLY_LBRACE" value="false" />
<option name="SPACE_BEFORE_SYNCHRONIZED_LBRACE" value="false" />
<option name="SPACE_BEFORE_ELSE_KEYWORD" value="false" />
<option name="SPACE_BEFORE_WHILE_KEYWORD" value="false" />
<option name="SPACE_BEFORE_CATCH_KEYWORD" value="false" />
<option name="SPACE_BEFORE_FINALLY_KEYWORD" value="false" />
<option name="KEEP_SIMPLE_METHODS_IN_ONE_LINE" value="true" />
<option name="KEEP_SIMPLE_LAMBDAS_IN_ONE_LINE" value="true" />
<option name="KEEP_SIMPLE_CLASSES_IN_ONE_LINE" value="true" />
<option name="IF_BRACE_FORCE" value="3" />
<option name="DOWHILE_BRACE_FORCE" value="3" />
<option name="WHILE_BRACE_FORCE" value="3" />
<option name="FOR_BRACE_FORCE" value="3" />
<indentOptions>
<option name="CONTINUATION_INDENT_SIZE" value="4" />
<option name="USE_TAB_CHARACTER" value="true" />
<option name="SMART_TABS" value="true" />
<option name="KEEP_INDENTS_ON_EMPTY_LINES" value="true" />
</indentOptions>
</codeStyleSettings>
<codeStyleSettings language="XML">
<indentOptions>
<option name="INDENT_SIZE" value="2" />
<option name="TAB_SIZE" value="2" />
<option name="SMART_TABS" value="true" />
<option name="KEEP_INDENTS_ON_EMPTY_LINES" value="true" />
</indentOptions>
</codeStyleSettings>
</code_scheme>
</component>

View File

@ -0,0 +1,5 @@
<component name="ProjectCodeStyleConfiguration">
<state>
<option name="USE_PER_PROJECT_SETTINGS" value="true" />
</state>
</component>

View File

@ -61,7 +61,7 @@ final class FixSVGs{
System.out.println("Updated file: " + file);
}
FileUtils.writeLines(file, encoding, lines);
FileUtils.writeLines(file, encoding, lines, "\n");
}
System.out.println("Total updated files: " + changedFiles);

View File

@ -1,7 +1,7 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<g fill="none" fill-rule="evenodd">
<rect width="6" height="1" x="5" y="12" fill="#6E6E6E"/>
<path fill="#6E6E6E" d="M5.5,14 L10.5,14 L10.5,14 C10.5,14.5522847 10.0522847,15 9.5,15 L6.5,15 C5.94771525,15 5.5,14.5522847 5.5,14 Z"/>
<path fill="#EDA200" d="M13,5.2 C13,9.2 11,8.96875 11,11 L5,11 C5,9.03125 3,9.2 3,5.2 C3,2.991 5.23878906,1 8,1 C10.76125,1 13,2.99103125 13,5.2 Z"/>
</g>
<g fill="none" fill-rule="evenodd">
<rect width="6" height="1" x="5" y="12" fill="#6E6E6E"/>
<path fill="#6E6E6E" d="M5.5,14 L10.5,14 L10.5,14 C10.5,14.5522847 10.0522847,15 9.5,15 L6.5,15 C5.94771525,15 5.5,14.5522847 5.5,14 Z"/>
<path fill="#EDA200" d="M13,5.2 C13,9.2 11,8.96875 11,11 L5,11 C5,9.03125 3,9.2 3,5.2 C3,2.991 5.23878906,1 8,1 C10.76125,1 13,2.99103125 13,5.2 Z"/>
</g>
</svg>

Before

(image error) Size: 493 B

After

(image error) Size: 509 B

View File

@ -1,7 +1,7 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<g fill="none" fill-rule="evenodd">
<rect width="6" height="1" x="5" y="12" fill="#AFB1B3"/>
<path fill="#AFB1B3" d="M5.5,14 L10.5,14 L10.5,14 C10.5,14.5522847 10.0522847,15 9.5,15 L6.5,15 C5.94771525,15 5.5,14.5522847 5.5,14 Z"/>
<path fill="#F0A732" d="M13,5.2 C13,9.2 11,8.96875 11,11 L5,11 C5,9.03125 3,9.2 3,5.2 C3,2.991 5.23878906,1 8,1 C10.76125,1 13,2.99103125 13,5.2 Z"/>
</g>
<g fill="none" fill-rule="evenodd">
<rect width="6" height="1" x="5" y="12" fill="#AFB1B3"/>
<path fill="#AFB1B3" d="M5.5,14 L10.5,14 L10.5,14 C10.5,14.5522847 10.0522847,15 9.5,15 L6.5,15 C5.94771525,15 5.5,14.5522847 5.5,14 Z"/>
<path fill="#F0A732" d="M13,5.2 C13,9.2 11,8.96875 11,11 L5,11 C5,9.03125 3,9.2 3,5.2 C3,2.991 5.23878906,1 8,1 C10.76125,1 13,2.99103125 13,5.2 Z"/>
</g>
</svg>

Before

(image error) Size: 493 B

After

(image error) Size: 509 B

View File

@ -1,7 +1,7 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<g fill="none" fill-rule="evenodd">
<path fill="#6E6E6E" d="M2 6L6 6 6 10 2 10 2 6zM3 7L3 9 5 9 5 7 3 7zM10 6L14 6 14 10 10 10 10 6zM11 7L11 9 13 9 13 7 11 7z"/>
<path fill="#389fd6" d="M3.08355828,15.3584902 L3.04061597,15.3584902 L3.04061597,11.1743889 L4.42008602,12.5538301 C5.3309178,11.5966356 6.61717583,11 8.04278474,11 C10.5872696,11 12.6878304,12.9006761 13.0021688,15.3597218 L11.4838618,15.3597218 C11.1819841,13.7338101 9.75616032,12.5026584 8.04278474,12.5026584 C7.03206436,12.5026584 6.12140684,12.9310772 5.48250276,13.6162246 L7.2248048,15.3584902 L4.60193651,15.3584902 C4.60186016,15.3589007 4.60178387,15.3593113 4.60170764,15.3597218 L3.08340071,15.3597218 C3.08345318,15.3593113 3.08350571,15.3589007 3.08355829,15.3584902 Z" transform="rotate(180 8.021 13.18)"/>
<path fill="#389fd6" d="M3.08355828,4.85849024 L3.04061597,4.85849024 L3.04061597,0.674388872 L4.42008602,2.05383009 C5.3309178,1.09663562 6.61717583,0.5 8.04278474,0.5 C10.5872696,0.5 12.6878304,2.40067606 13.0021688,4.8597218 L11.4838618,4.8597218 C11.1819841,3.23381015 9.75616032,2.00265838 8.04278474,2.00265838 C7.03206436,2.00265838 6.12140684,2.43107715 5.48250276,3.11622463 L7.2248048,4.85849024 L4.60193651,4.85849024 C4.60186016,4.85890074 4.60178387,4.85931126 4.60170764,4.8597218 L3.08340071,4.8597218 C3.08345318,4.85931127 3.08350571,4.85890075 3.08355829,4.85849024 Z"/>
</g>
<g fill="none" fill-rule="evenodd">
<path fill="#6E6E6E" d="M2 6L6 6 6 10 2 10 2 6zM3 7L3 9 5 9 5 7 3 7zM10 6L14 6 14 10 10 10 10 6zM11 7L11 9 13 9 13 7 11 7z"/>
<path fill="#389fd6" d="M3.08355828,15.3584902 L3.04061597,15.3584902 L3.04061597,11.1743889 L4.42008602,12.5538301 C5.3309178,11.5966356 6.61717583,11 8.04278474,11 C10.5872696,11 12.6878304,12.9006761 13.0021688,15.3597218 L11.4838618,15.3597218 C11.1819841,13.7338101 9.75616032,12.5026584 8.04278474,12.5026584 C7.03206436,12.5026584 6.12140684,12.9310772 5.48250276,13.6162246 L7.2248048,15.3584902 L4.60193651,15.3584902 C4.60186016,15.3589007 4.60178387,15.3593113 4.60170764,15.3597218 L3.08340071,15.3597218 C3.08345318,15.3593113 3.08350571,15.3589007 3.08355829,15.3584902 Z" transform="rotate(180 8.021 13.18)"/>
<path fill="#389fd6" d="M3.08355828,4.85849024 L3.04061597,4.85849024 L3.04061597,0.674388872 L4.42008602,2.05383009 C5.3309178,1.09663562 6.61717583,0.5 8.04278474,0.5 C10.5872696,0.5 12.6878304,2.40067606 13.0021688,4.8597218 L11.4838618,4.8597218 C11.1819841,3.23381015 9.75616032,2.00265838 8.04278474,2.00265838 C7.03206436,2.00265838 6.12140684,2.43107715 5.48250276,3.11622463 L7.2248048,4.85849024 L4.60193651,4.85849024 C4.60186016,4.85890074 4.60178387,4.85931126 4.60170764,4.8597218 L3.08340071,4.8597218 C3.08345318,4.85931127 3.08350571,4.85890075 3.08355829,4.85849024 Z"/>
</g>
</svg>

Before

(image error) Size: 1.5 KiB

After

(image error) Size: 1.5 KiB

View File

@ -1,7 +1,7 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<g fill="none" fill-rule="evenodd">
<path fill="#AFB1B3" d="M2 6L6 6 6 10 2 10 2 6zM3 7L3 9 5 9 5 7 3 7zM10 6L14 6 14 10 10 10 10 6zM11 7L11 9 13 9 13 7 11 7z"/>
<path fill="#3592c4" d="M3.08355828,15.3584902 L3.04061597,15.3584902 L3.04061597,11.1743889 L4.42008602,12.5538301 C5.3309178,11.5966356 6.61717583,11 8.04278474,11 C10.5872696,11 12.6878304,12.9006761 13.0021688,15.3597218 L11.4838618,15.3597218 C11.1819841,13.7338101 9.75616032,12.5026584 8.04278474,12.5026584 C7.03206436,12.5026584 6.12140684,12.9310772 5.48250276,13.6162246 L7.2248048,15.3584902 L4.60193651,15.3584902 C4.60186016,15.3589007 4.60178387,15.3593113 4.60170764,15.3597218 L3.08340071,15.3597218 C3.08345318,15.3593113 3.08350571,15.3589007 3.08355829,15.3584902 Z" transform="rotate(180 8.021 13.18)"/>
<path fill="#3592c4" d="M3.08355828,4.85849024 L3.04061597,4.85849024 L3.04061597,0.674388872 L4.42008602,2.05383009 C5.3309178,1.09663562 6.61717583,0.5 8.04278474,0.5 C10.5872696,0.5 12.6878304,2.40067606 13.0021688,4.8597218 L11.4838618,4.8597218 C11.1819841,3.23381015 9.75616032,2.00265838 8.04278474,2.00265838 C7.03206436,2.00265838 6.12140684,2.43107715 5.48250276,3.11622463 L7.2248048,4.85849024 L4.60193651,4.85849024 C4.60186016,4.85890074 4.60178387,4.85931126 4.60170764,4.8597218 L3.08340071,4.8597218 C3.08345318,4.85931127 3.08350571,4.85890075 3.08355829,4.85849024 Z"/>
</g>
<g fill="none" fill-rule="evenodd">
<path fill="#AFB1B3" d="M2 6L6 6 6 10 2 10 2 6zM3 7L3 9 5 9 5 7 3 7zM10 6L14 6 14 10 10 10 10 6zM11 7L11 9 13 9 13 7 11 7z"/>
<path fill="#3592c4" d="M3.08355828,15.3584902 L3.04061597,15.3584902 L3.04061597,11.1743889 L4.42008602,12.5538301 C5.3309178,11.5966356 6.61717583,11 8.04278474,11 C10.5872696,11 12.6878304,12.9006761 13.0021688,15.3597218 L11.4838618,15.3597218 C11.1819841,13.7338101 9.75616032,12.5026584 8.04278474,12.5026584 C7.03206436,12.5026584 6.12140684,12.9310772 5.48250276,13.6162246 L7.2248048,15.3584902 L4.60193651,15.3584902 C4.60186016,15.3589007 4.60178387,15.3593113 4.60170764,15.3597218 L3.08340071,15.3597218 C3.08345318,15.3593113 3.08350571,15.3589007 3.08355829,15.3584902 Z" transform="rotate(180 8.021 13.18)"/>
<path fill="#3592c4" d="M3.08355828,4.85849024 L3.04061597,4.85849024 L3.04061597,0.674388872 L4.42008602,2.05383009 C5.3309178,1.09663562 6.61717583,0.5 8.04278474,0.5 C10.5872696,0.5 12.6878304,2.40067606 13.0021688,4.8597218 L11.4838618,4.8597218 C11.1819841,3.23381015 9.75616032,2.00265838 8.04278474,2.00265838 C7.03206436,2.00265838 6.12140684,2.43107715 5.48250276,3.11622463 L7.2248048,4.85849024 L4.60193651,4.85849024 C4.60186016,4.85890074 4.60178387,4.85931126 4.60170764,4.8597218 L3.08340071,4.8597218 C3.08345318,4.85931127 3.08350571,4.85890075 3.08355829,4.85849024 Z"/>
</g>
</svg>

Before

(image error) Size: 1.5 KiB

After

(image error) Size: 1.5 KiB

View File

@ -10,7 +10,13 @@
</g>
</g>
<defs>
<linearGradient id="_Linear1" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-1.97385,3.03451,-3.03451,-1.97385,14.5096,13.0365)"><stop offset="0" style="stop-color:#2684ff;stop-opacity:1"/><stop offset="1" style="stop-color:#0042a4;stop-opacity:1"/></linearGradient>
<linearGradient id="_Linear2" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(3.03451,-1.97385,-1.97385,-3.03451,10.5619,12.0345)"><stop offset="0" style="stop-color:#2684ff;stop-opacity:1"/><stop offset="1" style="stop-color:#0042a4;stop-opacity:1"/></linearGradient>
<linearGradient id="_Linear1" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-1.97385,3.03451,-3.03451,-1.97385,14.5096,13.0365)">
<stop offset="0" style="stop-color:#2684ff;stop-opacity:1"/>
<stop offset="1" style="stop-color:#0042a4;stop-opacity:1"/>
</linearGradient>
<linearGradient id="_Linear2" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(3.03451,-1.97385,-1.97385,-3.03451,10.5619,12.0345)">
<stop offset="0" style="stop-color:#2684ff;stop-opacity:1"/>
<stop offset="1" style="stop-color:#0042a4;stop-opacity:1"/>
</linearGradient>
</defs>
</svg>

Before

(image error) Size: 1.5 KiB

After

(image error) Size: 1.6 KiB

View File

@ -10,7 +10,13 @@
</g>
</g>
<defs>
<linearGradient id="_Linear1" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-1.97385,3.03451,-3.03451,-1.97385,14.5096,13.0365)"><stop offset="0" style="stop-color:#2684ff;stop-opacity:1"/><stop offset="1" style="stop-color:#0042a4;stop-opacity:1"/></linearGradient>
<linearGradient id="_Linear2" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(3.03451,-1.97385,-1.97385,-3.03451,10.5619,12.0345)"><stop offset="0" style="stop-color:#2684ff;stop-opacity:1"/><stop offset="1" style="stop-color:#0042a4;stop-opacity:1"/></linearGradient>
<linearGradient id="_Linear1" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-1.97385,3.03451,-3.03451,-1.97385,14.5096,13.0365)">
<stop offset="0" style="stop-color:#2684ff;stop-opacity:1"/>
<stop offset="1" style="stop-color:#0042a4;stop-opacity:1"/>
</linearGradient>
<linearGradient id="_Linear2" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(3.03451,-1.97385,-1.97385,-3.03451,10.5619,12.0345)">
<stop offset="0" style="stop-color:#2684ff;stop-opacity:1"/>
<stop offset="1" style="stop-color:#0042a4;stop-opacity:1"/>
</linearGradient>
</defs>
</svg>

Before

(image error) Size: 1.5 KiB

After

(image error) Size: 1.6 KiB