Skip to content

Commit b1eb31b

Browse files
committed
Facelift of the Main Addon icons
Added icons for settings and deployment actions Changed config window style to Fixed size since the window components do not conform if window is resized.
1 parent d0e9406 commit b1eb31b

13 files changed

+21
-6
lines changed

RevitPythonShell/ConfigureCommandsForm.Designer.cs

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

RevitPythonShell/ConfigureCommandsForm.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@
122122

123123
The StartupScript is run once when Revit starts up in the IExternalApplication.OnStartup event. Use this to customize the RibbonPanel and set up event handlers for the IdlingEvent and similar nifty things.</value>
124124
</data>
125+
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
126+
<value>True</value>
127+
</metadata>
125128
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
126129
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
127130
<value>
202 Bytes
Loading
340 Bytes
Loading
296 Bytes
Loading
466 Bytes
Loading
365 Bytes
Loading
594 Bytes
Loading
514 Bytes
Loading
908 Bytes
Loading

RevitPythonShell/Resources/Thumbs.db

16 KB
Binary file not shown.

RevitPythonShell/RevitPythonShell.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,14 @@
235235
<ItemGroup>
236236
<Resource Include="Images\Number.png" />
237237
<Resource Include="Images\Paragraph.png" />
238+
<EmbeddedResource Include="Resources\Console-16.png" />
239+
<EmbeddedResource Include="Resources\Console-32.png" />
240+
<EmbeddedResource Include="Resources\Deployment-16.png" />
241+
<EmbeddedResource Include="Resources\Deployment-32.png" />
242+
<EmbeddedResource Include="Resources\Python-16.png" />
243+
<EmbeddedResource Include="Resources\Python-32.png" />
244+
<EmbeddedResource Include="Resources\Settings-16.png" />
245+
<EmbeddedResource Include="Resources\Settings-32.png" />
238246
<Content Include="startup.py" />
239247
<None Include="Examples\HelloWorld.iss" />
240248
<Content Include="init.py" />

RevitPythonShell/RevitPythonShellApplication.cs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,9 @@ private static void ExecuteStartupScript(UIControlledApplication uiControlledApp
8080
private static void BuildRibbonPanel(UIControlledApplication application, string dllfullpath)
8181
{
8282
var assembly = typeof(RevitPythonShellApplication).Assembly;
83-
var largeImage = GetEmbeddedPng(assembly, "RevitPythonShell.Resources.PythonConsole32x32.png");
84-
var smallImage = GetEmbeddedPng(assembly, "RevitPythonShell.Resources.PythonConsole16x16.png");
83+
var smallImage = GetEmbeddedPng(assembly, "RevitPythonShell.Resources.Python-16.png");
84+
var largeImage = GetEmbeddedPng(assembly, "RevitPythonShell.Resources.Python-32.png");
85+
8586

8687
RibbonPanel ribbonPanel = application.CreateRibbonPanel("RevitPythonShell");
8788
var splitButton = ribbonPanel.AddItem(new SplitButtonData("splitButtonRevitPythonShell", "RevitPythonShell")) as SplitButton;
@@ -110,17 +111,17 @@ private static void BuildRibbonPanel(UIControlledApplication application, string
110111
"Configure...",
111112
assembly.Location,
112113
"RevitPythonShell.ConfigureCommand");
113-
pbdConfigure.Image = smallImage;
114-
pbdConfigure.LargeImage = largeImage;
114+
pbdConfigure.Image = GetEmbeddedPng(assembly, "RevitPythonShell.Resources.Settings-16.png");
115+
pbdConfigure.LargeImage = GetEmbeddedPng(assembly, "RevitPythonShell.Resources.Settings-32.png");
115116
splitButton.AddPushButton(pbdConfigure);
116117

117118
PushButtonData pbdDeployRpsAddin = new PushButtonData(
118119
"DeployRpsAddin",
119120
"Deploy RpsAddin",
120121
assembly.Location,
121122
"RevitPythonShell.DeployRpsAddinCommand");
122-
pbdDeployRpsAddin.Image = smallImage;
123-
pbdDeployRpsAddin.LargeImage = largeImage;
123+
pbdDeployRpsAddin.Image = GetEmbeddedPng(assembly, "RevitPythonShell.Resources.Deployment-16.png");
124+
pbdDeployRpsAddin.LargeImage = GetEmbeddedPng(assembly, "RevitPythonShell.Resources.Deployment-32.png");
124125
splitButton.AddPushButton(pbdDeployRpsAddin);
125126

126127
var commands = GetCommands(GetSettings()).ToList();

0 commit comments

Comments
 (0)