mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-16 15:24:10 +02:00
Merge pull request #1767 from kallisto56/master
Override DarkTabButton.DragEnd
This commit is contained in:
commit
ff82577ae9
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