Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez <lluis@xamarin.com>2014-02-11 13:48:46 +0400
committerLluis Sanchez <lluis@xamarin.com>2014-02-11 13:48:46 +0400
commit572f9012a6cd92437ae7e7e0b660d4c02e1210e5 (patch)
treee052e24d1983ae87a0ffb51c6af09ee337b73baa /main/src/tools
parent133ac601c1b433dcc03b341615f3803cd5bbad43 (diff)
Remove unused classes
Use Xwt.Drawing.Color instead of HslColor
Diffstat (limited to 'main/src/tools')
-rw-r--r--main/src/tools/mdmonitor/InstrumentationViewerDialog.cs15
-rw-r--r--main/src/tools/mdmonitor/mdmonitor.csproj7
2 files changed, 12 insertions, 10 deletions
diff --git a/main/src/tools/mdmonitor/InstrumentationViewerDialog.cs b/main/src/tools/mdmonitor/InstrumentationViewerDialog.cs
index 7a4669d5a7..c7434c4eab 100644
--- a/main/src/tools/mdmonitor/InstrumentationViewerDialog.cs
+++ b/main/src/tools/mdmonitor/InstrumentationViewerDialog.cs
@@ -73,9 +73,9 @@ namespace Mono.Instrumentation.Monitor
{
base.OnRealized ();
- MonoDevelop.Components.HslColor c = Style.Background (Gtk.StateType.Normal);
- c.L -= 0.1;
- headerBox.ModifyBg (Gtk.StateType.Normal, c);
+ var c = Style.Background (Gtk.StateType.Normal).ToXwtColor ();
+ c.Light -= 0.1;
+ headerBox.ModifyBg (Gtk.StateType.Normal, c.ToGdkColor ());
}
@@ -323,15 +323,12 @@ namespace Mono.Instrumentation.Monitor
Gdk.Color cachedColor;
if (colors.TryGetValue (c, out cachedColor))
return cachedColor;
-
+
Random r = new Random (c.Name.GetHashCode ());
- HslColor col = new HslColor ();
int nc = c.Name.GetHashCode ();
if (nc < 0) nc = -nc;
- col.H = r.NextDouble ();
- col.S = r.NextDouble ();
- col.L = 0.3 + (r.NextDouble () * 0.3);
- Gdk.Color gc = col;
+ Xwt.Drawing.Color col = Xwt.Drawing.Color.FromHsl (r.NextDouble (), r.NextDouble (), 0.3 + (r.NextDouble () * 0.3));
+ Gdk.Color gc = col.ToGdkColor ();
colors [c] = gc;
return gc;
}
diff --git a/main/src/tools/mdmonitor/mdmonitor.csproj b/main/src/tools/mdmonitor/mdmonitor.csproj
index c81f19a810..4b61930fce 100644
--- a/main/src/tools/mdmonitor/mdmonitor.csproj
+++ b/main/src/tools/mdmonitor/mdmonitor.csproj
@@ -3,7 +3,7 @@
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.21022</ProductVersion>
+ <ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{D0B5AF2B-4BC1-4EB4-81D3-E5B85DDCE925}</ProjectGuid>
<OutputType>WinExe</OutputType>
@@ -96,6 +96,11 @@
<Project>{A2329308-3751-4DBD-9A75-5F7B8B024625}</Project>
<Name>Mono.TextEditor</Name>
</ProjectReference>
+ <ProjectReference Include="..\..\..\external\xwt\Xwt\Xwt.csproj">
+ <Project>{92494904-35FA-4DC9-BDE9-3A3E87AC49D3}</Project>
+ <Name>Xwt</Name>
+ <Private>False</Private>
+ </ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup>