1
0
Fork 0
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:
Brian Fiete 2022-12-03 06:41:54 -08:00 committed by GitHub
commit ff82577ae9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 2 deletions

View file

@ -159,6 +159,22 @@ namespace Beefy.theme.dark
((DarkTabbedView)mTabbedView).DrawDockPreview(g, this); ((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 public class DarkTabDock : ICustomDock

View file

@ -143,7 +143,7 @@ namespace Beefy.widgets
} }
} }
public void DragStart() public virtual void DragStart()
{ {
mSrcDraggingWindow = mWidgetWindow; mSrcDraggingWindow = mWidgetWindow;
@ -157,7 +157,7 @@ namespace Beefy.widgets
} }
} }
public void DragEnd() public virtual void DragEnd()
{ {
//mWidgetWindow.mMouseLeftWindowDelegate.Remove(scope => MouseLeftWindow, true); //mWidgetWindow.mMouseLeftWindowDelegate.Remove(scope => MouseLeftWindow, true);
AdjustPinnedState(); AdjustPinnedState();