mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-21 01:18:02 +02:00
Override DarkTabButton DragEnd
This commit is contained in:
parent
15dc0f4687
commit
d0a2b35622
2 changed files with 18 additions and 2 deletions
|
@ -159,6 +159,22 @@ namespace Beefy.theme.dark
|
|||
((DarkTabbedView)mTabbedView).DrawDockPreview(g, this);
|
||||
}
|
||||
}
|
||||
|
||||
public override void DragEnd()
|
||||
{
|
||||
if (mIsRightTab == true)
|
||||
{
|
||||
mTextColor = Color.White;
|
||||
|
||||
DarkTabbedView darkTabbedView = mTabbedView as DarkTabbedView;
|
||||
darkTabbedView.SetRightTab(null, false);
|
||||
darkTabbedView.AddTab(this, darkTabbedView.GetInsertPositionFromCursor());
|
||||
|
||||
Activate();
|
||||
}
|
||||
|
||||
base.DragEnd();
|
||||
}
|
||||
}
|
||||
|
||||
public class DarkTabDock : ICustomDock
|
||||
|
|
|
@ -143,7 +143,7 @@ namespace Beefy.widgets
|
|||
}
|
||||
}
|
||||
|
||||
public void DragStart()
|
||||
public virtual void DragStart()
|
||||
{
|
||||
mSrcDraggingWindow = mWidgetWindow;
|
||||
|
||||
|
@ -157,7 +157,7 @@ namespace Beefy.widgets
|
|||
}
|
||||
}
|
||||
|
||||
public void DragEnd()
|
||||
public virtual void DragEnd()
|
||||
{
|
||||
//mWidgetWindow.mMouseLeftWindowDelegate.Remove(scope => MouseLeftWindow, true);
|
||||
AdjustPinnedState();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue