How to correctly declare an icon for a ribbon action?

While building a Trados Studio plugin I can't seem to get the icon to display for my ribbon action.

I've added an icon to the project's properties..

Screenshot of Trados Studio's Resources.resx window showing the 'settings' icon added under the Icons tab.

I have then referenced this on my implementation of AbstractViewControllerAction...

[Action("SupertextTerminologyProviderSettings_Projects",
    ContextByType = typeof(ProjectsController),
    Description = "...",
    Name = "Terminology Provider Settings",
    Icon = "settings")]
[ActionLayout(typeof(SupertextRibbonGroup), 2, DisplayType.Normal)]
public class ProjectsViewSettingsAction : AbstractViewControllerAction<AbstractViewController>
{
    protected override void Execute()
    {
        // ...
    }
}

But the icon doesn't appear...

Screenshot of Trados Studio ribbon with a missing icon for 'Terminology Provider Settings' in the Add-Ins tab.

What have I missed?



Generated Image Alt-Text
[edited by: Trados AI at 1:07 PM (GMT 0) on 5 Mar 2024]