Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/working'
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinPerris committed Jan 5, 2016
2 parents 3a9b910 + e6056f6 commit d1911c8
Show file tree
Hide file tree
Showing 153 changed files with 16,371 additions and 0 deletions.
28 changes: 28 additions & 0 deletions DarkUI.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.23107.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DarkUI", "DarkUI\DarkUI.csproj", "{F19472F5-8C44-4C51-A8A0-B9DE5F555255}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Example", "Example\Example.csproj", "{FA334815-6D78-4E9A-9F4D-6C8A58222A57}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F19472F5-8C44-4C51-A8A0-B9DE5F555255}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F19472F5-8C44-4C51-A8A0-B9DE5F555255}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F19472F5-8C44-4C51-A8A0-B9DE5F555255}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F19472F5-8C44-4C51-A8A0-B9DE5F555255}.Release|Any CPU.Build.0 = Release|Any CPU
{FA334815-6D78-4E9A-9F4D-6C8A58222A57}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FA334815-6D78-4E9A-9F4D-6C8A58222A57}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FA334815-6D78-4E9A-9F4D-6C8A58222A57}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FA334815-6D78-4E9A-9F4D-6C8A58222A57}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
85 changes: 85 additions & 0 deletions DarkUI/Collections/ObservableList.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
using System;
using System.Collections.Generic;
using System.Linq;

namespace DarkUI.Collections
{
public class ObservableList<T> : List<T>, IDisposable
{
#region Field Region

private bool _disposed;

#endregion

#region Event Region

public event EventHandler<ObservableListModified<T>> ItemsAdded;
public event EventHandler<ObservableListModified<T>> ItemsRemoved;

#endregion

#region Destructor Region

~ObservableList()
{
Dispose(false);
}

#endregion

#region Dispose Region

public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}

protected virtual void Dispose(bool disposing)
{
if (!_disposed)
{
if (ItemsAdded != null)
ItemsAdded = null;

if (ItemsRemoved != null)
ItemsRemoved = null;

_disposed = true;
}
}

#endregion

#region Method Region

public new void Add(T item)
{
base.Add(item);

if (ItemsAdded != null)
ItemsAdded(this, new ObservableListModified<T>(new List<T> { item }));
}

public new void AddRange(IEnumerable<T> collection)
{
var list = collection.ToList();

base.AddRange(list);

if (ItemsAdded != null)
ItemsAdded(this, new ObservableListModified<T>(list));
}

public new void Remove(T item)
{
base.Remove(item);

if (ItemsRemoved != null)
ItemsRemoved(this, new ObservableListModified<T>(new List<T> { item }));
}

#endregion
}
}
15 changes: 15 additions & 0 deletions DarkUI/Collections/ObservableListModified.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;

namespace DarkUI.Collections
{
public class ObservableListModified<T> : EventArgs
{
public IEnumerable<T> Items { get; private set; }

public ObservableListModified(IEnumerable<T> items)
{
Items = items;
}
}
}
112 changes: 112 additions & 0 deletions DarkUI/Config/Colors.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
using System.Drawing;

namespace DarkUI.Config
{
public sealed class Colors
{
public static Color GreyBackground
{
get { return Color.FromArgb(60, 63, 65); }
}

public static Color HeaderBackground
{
get { return Color.FromArgb(57, 60, 62); }
}

public static Color BlueBackground
{
get { return Color.FromArgb(66, 77, 95); }
}

public static Color DarkBlueBackground
{
get { return Color.FromArgb(52, 57, 66); }
}

public static Color DarkBackground
{
get { return Color.FromArgb(43, 43, 43); }
}

public static Color MediumBackground
{
get { return Color.FromArgb(49, 51, 53); }
}

public static Color LightBackground
{
get { return Color.FromArgb(69, 73, 74); }
}

public static Color LighterBackground
{
get { return Color.FromArgb(95, 101, 102); }
}

public static Color LightestBackground
{
get { return Color.FromArgb(178, 178, 178); }
}

public static Color LightBorder
{
get { return Color.FromArgb(81, 81, 81); }
}

public static Color DarkBorder
{
get { return Color.FromArgb(51, 51, 51); }
}

public static Color LightText
{
get { return Color.FromArgb(220, 220, 220); }
}

public static Color DisabledText
{
get { return Color.FromArgb(153, 153, 153); }
}

public static Color BlueHighlight
{
get { return Color.FromArgb(104, 151, 187); }
}

public static Color BlueSelection
{
get { return Color.FromArgb(75, 110, 175); }
}

public static Color GreyHighlight
{
get { return Color.FromArgb(122, 128, 132); }
}

public static Color GreySelection
{
get { return Color.FromArgb(92, 92, 92); }
}

public static Color DarkGreySelection
{
get { return Color.FromArgb(82, 82, 82); }
}

public static Color DarkBlueBorder
{
get { return Color.FromArgb(51, 61, 78); }
}

public static Color LightBlueBorder
{
get { return Color.FromArgb(86, 97, 114); }
}

public static Color ActiveControl
{
get { return Color.FromArgb(159, 178, 196); }
}
}
}
18 changes: 18 additions & 0 deletions DarkUI/Config/Consts.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
namespace DarkUI.Config
{
public sealed class Consts
{
public static int Padding = 10;

public static int ScrollBarSize = 15;
public static int ArrowButtonSize = 15;
public static int MinimumThumbSize = 11;

public static int CheckBoxSize = 12;
public static int RadioButtonSize = 12;

public const int ToolWindowHeaderSize = 25;
public const int DocumentTabAreaSize = 24;
public const int ToolWindowTabAreaSize = 21;
}
}
Loading

0 comments on commit d1911c8

Please sign in to comment.