add icons to new features

This commit is contained in:
2024-10-03 10:51:30 +02:00
parent 690355266c
commit 07a94cfa5f
7 changed files with 66 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ internal class ClearDirectLinkFeature : PluginFunction, IPluginFeatureProvider<C
public ClearDirectLinkFeature() : base(FeatureTypes.ActionsContextMenu, "origin.cleardirectlink", FeatureNamesLangRes.ClearDirectLinkFeature)
{
Icon = AppGlobals.Symbols.GetSvgImage(AppSymbols.broom, Pilz.UI.Symbols.SymbolSize.Small);
}
protected override object? ExecuteFunction(PluginFunctionParameter? @params)

View File

@@ -12,6 +12,7 @@ internal class UpdateDirectLinkFeature : PluginFunction, IPluginFeatureProvider<
public UpdateDirectLinkFeature() : base(FeatureTypes.ActionsContextMenu, "origin.updatedirectlink", FeatureNamesLangRes.UpdateDirectLinkFeature)
{
Icon = AppGlobals.Symbols.GetSvgImage(AppSymbols.renew, Pilz.UI.Symbols.SymbolSize.Small);
}
protected override object? ExecuteFunction(PluginFunctionParameter? @params)

View File

@@ -10,6 +10,7 @@ internal class ClearDirectLinksFeature : PluginFunction, IPluginFeatureProvider<
public ClearDirectLinksFeature() : base(FeatureTypes.Tools, "origin.cleardirectlinks", FeatureNamesLangRes.ClearDirectLinksFeature)
{
Icon = AppGlobals.Symbols.GetSvgImage(AppSymbols.broom, Pilz.UI.Symbols.SymbolSize.Small);
}
protected override object? ExecuteFunction(PluginFunctionParameter? @params)

View File

@@ -10,6 +10,7 @@ internal class UpdateDirectLinksFeature : PluginFunction, IPluginFeatureProvider
public UpdateDirectLinksFeature() : base(FeatureTypes.Tools, "origin.updatedirectlinks", FeatureNamesLangRes.UpdateDirectLinksFeature)
{
Icon = AppGlobals.Symbols.GetSvgImage(AppSymbols.renew, Pilz.UI.Symbols.SymbolSize.Small);
}
protected override object? ExecuteFunction(PluginFunctionParameter? @params)

View File

@@ -33,4 +33,6 @@ public enum AppSymbols
eye,
invisible,
heart_with_pulse,
broom,
renew,
}

View File

@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="240" height="240">
<linearGradient id="_mrS6zdlYNXjKXndQNmOka" x1="24" x2="24" y1="1.206" y2="19.206" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#eba600" />
<stop offset="1" stop-color="#c28200" />
</linearGradient>
<path fill="url(#_mrS6zdlYNXjKXndQNmOka)" d="M27,19h-6V4c0-1.657,1.343-3,3-3h0c1.657,0,3,1.343,3,3V19z" />
<rect width="6" height="5" x="21" y="13" fill="#16528c" />
<linearGradient id="_mrS6zdlYNXjKXndQNmOkb" x1="24" x2="24" y1="44.265" y2="23.765" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#ffcf54" />
<stop offset=".261" stop-color="#fdcb4d" />
<stop offset=".639" stop-color="#f7c13a" />
<stop offset="1" stop-color="#f0b421" />
</linearGradient>
<path fill="url(#_mrS6zdlYNXjKXndQNmOkb)" d="M38,24H10C8.706,34.353,6,43,6,43s7.647,2,18,2s18-2,18-2S39.294,34.353,38,24z" />
<linearGradient id="_mrS6zdlYNXjKXndQNmOkc" x1="16.669" x2="16.669" y1="44.687" y2="34.602" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#eba600" />
<stop offset="1" stop-color="#c28200" />
</linearGradient>
<path fill="url(#_mrS6zdlYNXjKXndQNmOkc)" d="M18,44.778V34c-0.471,3.767-1.809,7.705-2.663,10.546C16.18,44.633,17.074,44.711,18,44.778z" />
<linearGradient id="_mrS6zdlYNXjKXndQNmOkd" x1="32.392" x2="32.392" y1="44.307" y2="29.756" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#eba600" />
<stop offset="1" stop-color="#c28200" />
</linearGradient>
<path fill="url(#_mrS6zdlYNXjKXndQNmOkd)" d="M33.784,44.42C32.922,41.117,31.747,34.974,31,29v15.701C31.982,44.619,32.907,44.523,33.784,44.42z" />
<linearGradient id="_mrS6zdlYNXjKXndQNmOke" x1="22.142" x2="25.491" y1="15.701" y2="27.791" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#0d61a9" />
<stop offset="1" stop-color="#16528c" />
</linearGradient>
<path fill="url(#_mrS6zdlYNXjKXndQNmOke)" d="M38,24H10v-2.77c0-1.369,0.919-2.57,2.247-2.905C14.551,17.744,18.565,17,24,17s9.449,0.744,11.753,1.325C37.081,18.659,38,19.861,38,21.23V24z" />
</svg>

View File

@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="240" height="240">
<linearGradient id="2oz8eBjuNR7A1ADmHf2vja" x1="41.018" x2="45.176" y1="228" y2="228" gradientTransform="matrix(1 0 0 -1 0 254)" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#3537b0" />
<stop offset="1" stop-color="#4646cf" />
</linearGradient>
<path fill="url(#2oz8eBjuNR7A1ADmHf2vja)" d="M43,11h-3v30h3c1.105,0,2-0.895,2-2V13C45,11.895,44.105,11,43,11z" />
<path fill="#5286ff" d="M41,39V9c0-1.105-0.895-2-2-2H5C3.895,7,3,7.895,3,9v30c0,1.105,0.895,2,2,2h38C41.895,41,41,40.105,41,39z" />
<path fill="#fff" d="M37,17H7c-0.552,0-1-0.448-1-1v-2c0-0.552,0.448-1,1-1h30c0.552,0,1,0.448,1,1v2C38,16.552,37.552,17,37,17z" />
<path fill="#fff" d="M19,36H7c-0.552,0-1-0.448-1-1V22c0-0.552,0.448-1,1-1h12c0.552,0,1,0.448,1,1v13C20,35.552,19.552,36,19,36z" />
<path fill="#fff" d="M38,24H24v-2c0-0.552,0.448-1,1-1h12c0.552,0,1,0.448,1,1V24z" />
<rect width="14" height="3" x="24" y="24" fill="#e6eeff" />
<rect width="14" height="3" x="24" y="27" fill="#ccdcff" />
<rect width="14" height="3" x="24" y="30" fill="#b3cbff" />
<path fill="#9abaff" d="M37,36H25c-0.552,0-1-0.448-1-1v-2h14v2C38,35.552,37.552,36,37,36z" />
<radialGradient id="2oz8eBjuNR7A1ADmHf2vjb" cx="37.925" cy="38.053" r="11.954" gradientUnits="userSpaceOnUse">
<stop offset="0" />
<stop offset="1" stop-opacity="0" />
</radialGradient>
<path fill="url(#2oz8eBjuNR7A1ADmHf2vjb)" d="M38,26c-6.617,0-12,5.383-12,12c0,1.037,0.146,2.039,0.395,3H43c1.105,0,2-0.895,2-2V28.273C43.027,26.849,40.614,26,38,26z" />
<linearGradient id="2oz8eBjuNR7A1ADmHf2vjc" x1="27.766" x2="43.124" y1="226.234" y2="210.876" gradientTransform="matrix(1 0 0 -1 0 254)" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#05acb3" />
<stop offset="1" stop-color="#038387" />
</linearGradient>
<path fill="url(#2oz8eBjuNR7A1ADmHf2vjc)" d="M48,38c0,5.522-4.478,10-10,10s-10-4.478-10-10s4.478-10,10-10S48,32.478,48,38z" />
<path d="M38.01,44.537c-1.727,0-3.36-0.633-4.603-1.781c-2.416-2.237-2.83-5.982-1.026-8.709l-0.279-0.279c-0.385-0.385-0.498-0.958-0.29-1.46c0.207-0.502,0.692-0.826,1.236-0.826h3.034c0.816,0,1.481,0.665,1.481,1.481v3.034c0,0.739-0.602,1.34-1.342,1.34c-0.346,0-0.674-0.133-0.925-0.374c-0.123,0.401-0.157,0.827-0.098,1.245c0.114,0.8,0.556,1.496,1.244,1.958c0.457,0.308,0.998,0.47,1.564,0.47s1.107-0.162,1.564-0.47c0.696-0.468,1.143-1.172,1.257-1.982c0.114-0.803-0.117-1.618-0.634-2.234c-0.46-0.55-0.43-1.343,0.071-1.844l0.857-0.857c0.254-0.254,0.605-0.399,0.966-0.399c0.387,0,0.755,0.165,1.009,0.454c2.407,2.735,2.188,6.977-0.489,9.455C41.367,43.905,39.734,44.537,38.01,44.537z" opacity=".05" />
<path d="M38.009,44.037c-1.6,0-3.113-0.586-4.262-1.648c-2.363-2.188-2.644-5.861-0.715-8.396l-0.577-0.578c-0.241-0.241-0.313-0.6-0.182-0.915c0.13-0.314,0.434-0.518,0.774-0.518h3.034c0.541,0,0.981,0.44,0.981,0.981v3.034c0,0.463-0.378,0.84-0.842,0.84c-0.222,0-0.432-0.088-0.591-0.247l-0.495-0.495c-0.384,0.653-0.54,1.425-0.432,2.184c0.135,0.942,0.652,1.76,1.46,2.303c0.539,0.362,1.177,0.555,1.844,0.555s1.305-0.192,1.844-0.555c0.814-0.548,1.338-1.374,1.473-2.327c0.134-0.943-0.138-1.9-0.745-2.626c-0.293-0.35-0.275-0.853,0.041-1.169l0.857-0.857c0.161-0.161,0.384-0.253,0.612-0.253c0.243,0,0.475,0.104,0.634,0.284c2.229,2.534,2.025,6.462-0.454,8.758C41.121,43.452,39.608,44.037,38.009,44.037L38.009,44.037z" opacity=".07" />
<path fill="#fff" d="M42.35,33.964c-0.134-0.153-0.375-0.153-0.519-0.009l-0.857,0.857c-0.136,0.136-0.134,0.348-0.011,0.495c1.425,1.703,1.148,4.357-0.833,5.689c-1.268,0.853-2.978,0.853-4.246,0c-1.979-1.331-2.237-3.971-0.815-5.673l0.914,0.914c0.214,0.214,0.579,0.062,0.579-0.24v-3.034c0-0.266-0.216-0.482-0.482-0.482h-3.034c-0.302,0-0.453,0.365-0.24,0.579l0.898,0.898c-2.061,2.322-1.949,5.907,0.38,8.063c2.182,2.02,5.66,2.021,7.843,0.001C44.253,39.873,44.393,36.287,42.35,33.964z" />
</svg>