|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.ComponentModel.Composition;
using System.Diagnostics.CodeAnalysis;
using System.Windows.Media;
using Microsoft.CodeAnalysis.Host.Mef;
using Microsoft.VisualStudio.Text.Classification;
using Microsoft.VisualStudio.Utilities;
namespace Microsoft.CodeAnalysis.Editor.Implementation.InlineRename.HighlightTags
{
[Export(typeof(EditorFormatDefinition))]
[Name(RenameFieldBackgroundAndBorderTag.TagId)]
[UserVisible(true)]
[ExcludeFromCodeCoverage]
internal class RenameFieldBackgroundAndBorderTagDefinition : MarkerFormatDefinition
{
[ImportingConstructor]
[Obsolete(MefConstruction.ImportingConstructorMessage, error: true)]
public RenameFieldBackgroundAndBorderTagDefinition()
{
// The Border color should match the BackgroundColor from the
// InlineRenameFieldFormatDefinition.
this.Border = new Pen(new SolidColorBrush(Color.FromRgb(0xFF, 0xFF, 0xFF)), thickness: 2.0);
this.BackgroundColor = Color.FromRgb(0xd3, 0xf8, 0xd3);
this.DisplayName = EditorFeaturesResources.Inline_Rename_Field_Background_and_Border;
// Needs to show above highlight references, but below the resolved/unresolved rename
// conflict tags.
this.ZOrder = 1;
}
}
}
|