Archived
WIP: simplifying UI
This commit is contained in:
1 parent
b635db2be6
commit
c18b408df2
75 files changed
+931
-395
No files matched your search
@@ -13,6 +13,7 @@ namespace AppLauncher.Windows.Forms
|
||||
protected readonly Color backColour = Color.FromArgb(254, 254, 254);
|
||||
|
||||
protected readonly Color titleBarColour = Color.FromArgb(237, 240, 247);
|
||||
protected readonly Color titleBorderColour = Color.FromArgb(232, 231, 236);
|
||||
protected readonly Color titleColour = Color.FromArgb(156, 158, 171);
|
||||
protected readonly int titleBarHeight = 56;
|
||||
|
||||
@@ -158,7 +159,7 @@ namespace AppLauncher.Windows.Forms
|
||||
area.Inflate((-1 * borderWidth), (-1 * borderWidth));
|
||||
|
||||
g.FillRectangle(new SolidBrush(titleBarColour), area.X, area.Y, (area.Width + area.X), titleBarHeight);
|
||||
g.DrawLine(new Pen(borderColour, 1), area.X, (titleBarHeight + 1), (area.Width + area.X), (titleBarHeight + 1));
|
||||
g.DrawLine(new Pen(titleBorderColour, 1), area.X, (titleBarHeight + 1), (area.Width + area.X), (titleBarHeight + 1));
|
||||
|
||||
if (!DesignMode) g.DrawImageUnscaled(Properties.Resources.app_icon_24, 17, 17);
|
||||
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace AppLauncher.Windows.Forms
|
||||
{
|
||||
public class AUserControl : UserControl
|
||||
{
|
||||
|
||||
public AUserControl() : base()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
[Browsable(false)]
|
||||
public override Image BackgroundImage { get => base.BackgroundImage; set => base.BackgroundImage = value; }
|
||||
|
||||
[Browsable(false)]
|
||||
public override ImageLayout BackgroundImageLayout { get => base.BackgroundImageLayout; set => base.BackgroundImageLayout = value; }
|
||||
|
||||
[Browsable(false)]
|
||||
public new BorderStyle BorderStyle { get => base.BorderStyle; set => base.BorderStyle = value; }
|
||||
|
||||
[Browsable(false)]
|
||||
public override Cursor Cursor { get => base.Cursor; set => base.Cursor = value; }
|
||||
|
||||
[Browsable(false)]
|
||||
public override Font Font { get => base.Font; set => base.Font = value; }
|
||||
|
||||
[Browsable(false)]
|
||||
public override Color ForeColor { get => base.ForeColor; set => base.ForeColor = value; }
|
||||
|
||||
[Browsable(false)]
|
||||
public override RightToLeft RightToLeft { get => base.RightToLeft; set => base.RightToLeft = value; }
|
||||
|
||||
[Browsable(false)]
|
||||
public new bool UseWaitCursor { get => base.UseWaitCursor; set => base.UseWaitCursor = value; }
|
||||
|
||||
|
||||
[Browsable(false)]
|
||||
public override bool AllowDrop { get => base.AllowDrop; set => base.AllowDrop = value; }
|
||||
|
||||
[Browsable(false)]
|
||||
public override AutoValidate AutoValidate { get => base.AutoValidate; set => base.AutoValidate = value; }
|
||||
|
||||
//[Browsable(false)]
|
||||
//public override ContextMenuStrip ContextMenuStrip { get => base.ContextMenuStrip; set => base.ContextMenuStrip = value; }
|
||||
|
||||
[Browsable(false)]
|
||||
public new ImeMode ImeMode { get => base.ImeMode; set => base.ImeMode = value; }
|
||||
|
||||
|
||||
[Browsable(false)]
|
||||
public override bool AutoScroll { get => base.AutoScroll; set => base.AutoScroll = value; }
|
||||
|
||||
[Browsable(false)]
|
||||
public new Size AutoScrollMargin { get => base.AutoScrollMargin; set => base.AutoScrollMargin = value; }
|
||||
|
||||
[Browsable(false)]
|
||||
public new Size AutoScrollMinSize { get => base.AutoScrollMinSize; set => base.AutoScrollMinSize = value; }
|
||||
|
||||
[Browsable(false)]
|
||||
public override bool AutoSize { get => base.AutoSize; set => base.AutoSize = value; }
|
||||
|
||||
[Browsable(false)]
|
||||
public new AutoSizeMode AutoSizeMode { get => base.AutoSizeMode; set => base.AutoSizeMode = value; }
|
||||
|
||||
[Browsable(false)]
|
||||
public override Size MaximumSize { get => base.MaximumSize; set => base.MaximumSize = value; }
|
||||
|
||||
[Browsable(false)]
|
||||
public override Size MinimumSize { get => base.MinimumSize; set => base.MinimumSize = value; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace AppLauncher.Windows.Forms
|
||||
{
|
||||
public partial class TTilePanel : AUserControl
|
||||
public partial class TTilePanel : TUserControl
|
||||
{
|
||||
protected bool isDragging = false;
|
||||
protected Point startPosition = new Point();
|
||||
|
||||
@@ -13,7 +13,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace AppLauncher.Windows.Forms
|
||||
{
|
||||
public partial class TTilePanelLayout : AUserControl
|
||||
public partial class TTilePanelLayout : TUserControl
|
||||
{
|
||||
public class Item
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user