Skip to content

Commit

Permalink
Merge pull request #22 from Dragon-0609/dev
Browse files Browse the repository at this point in the history
Version 5 beta-2
  • Loading branch information
Dragon-0609 authored Feb 4, 2022
2 parents a9fdbeb + 830fda8 commit acca63d
Show file tree
Hide file tree
Showing 131 changed files with 8,385 additions and 1,181 deletions.
2 changes: 2 additions & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[alias]
reorder = "!GIT_SEQUENCE_EDITOR=\"sed -i -n 'h;1n;2p;g;p'\" git rebase -i HEAD~2"
20 changes: 0 additions & 20 deletions Yuki Theme Plugin/Controls/CustomPanel.cs

This file was deleted.

85 changes: 85 additions & 0 deletions Yuki Theme Plugin/Controls/ToolItemGroup.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
using System.Collections.Generic;
using System.Windows.Forms;

namespace Yuki_Theme_Plugin.Controls
{
public class ToolItemGroup
{
public List <ToolStripItem> items = new List <ToolStripItem> ();

private ToolItemGroup _prev;

public ToolItemGroup next;

public ToolItemGroup prev
{
get { return _prev; }
set
{
_prev = value;
value.next = this;
}
}

public ToolStripSeparator separator = null;

public bool isLast = false;

public bool IsEmpty ()
{
return items.Count < 1;
}

public bool HasItem (string nm)
{
bool b = false;
foreach (ToolStripItem item in items)
{
if (item.Name == nm)
{
b = true;
break;
}
}

return b;
}

public ToolStripItem GetItem (string nm)
{
ToolStripItem b = null;
foreach (ToolStripItem item in items)
{
if (item.Name == nm)
{
b = item;
break;
}
}

return b;
}

public bool isAllHidden ()
{
bool b = true;
foreach (ToolStripItem item in items)
{
b = b && !item.Visible;
}

return b;
}

public bool isAllRight ()
{
bool b = true;
foreach (ToolStripItem item in items)
{
b = b && item.Alignment == ToolStripItemAlignment.Right;
}

return b;
}
}
}
Loading

0 comments on commit acca63d

Please sign in to comment.