多项功能优化
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
|
||||
using Nice3point.Revit.Toolkit.External;
|
||||
|
||||
using UIFramework;
|
||||
|
||||
namespace Sai.RvKits.RvView;
|
||||
|
||||
[Autodesk.Revit.Attributes.Transaction(Autodesk.Revit.Attributes.TransactionMode.Manual)]
|
||||
@@ -13,6 +11,8 @@ public class SwitchBackgroundCmd : ExternalCommand
|
||||
public override void Execute()
|
||||
{
|
||||
var col = Application.BackgroundColor;
|
||||
Application.BackgroundColor = col.Red == 255 && col.Green == 255 && col.Blue == 255 ? new Color(32, 40, 49) : new Color(255, 255, 255);
|
||||
Application.BackgroundColor = col.Red == 255 && col.Green == 255 && col.Blue == 255
|
||||
? new Color(32, 40, 49)
|
||||
: new Color(255, 255, 255);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user