mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Scale fixes
This commit is contained in:
parent
863009f329
commit
d9a820f5a1
3 changed files with 25 additions and 3 deletions
|
@ -28,6 +28,21 @@ namespace Beefy.theme.dark
|
|||
{
|
||||
}
|
||||
|
||||
public override void RehupScale(float oldScale, float newScale)
|
||||
{
|
||||
base.RehupScale(oldScale, newScale);
|
||||
|
||||
mMinWindowSize = GS!(100);
|
||||
|
||||
mMinWindowSize = GS!(32);
|
||||
mDragMarginSize = GS!(64);
|
||||
mDragWindowMarginSize = GS!(10);
|
||||
|
||||
mWindowMargin = 0;
|
||||
mSplitterSize = GS!(6.0f);
|
||||
mWindowSpacing = GS!(2.0f);
|
||||
}
|
||||
|
||||
public override void RemovedFromParent(Widget previousParent, WidgetWindow window)
|
||||
{
|
||||
base.RemovedFromParent(previousParent, window);
|
||||
|
|
|
@ -200,7 +200,6 @@ namespace Beefy.theme.dark
|
|||
if ((listView.mFont != null) && (mSelfHeight != 0))
|
||||
mSelfHeight = listView.mFont.GetLineSpacing();
|
||||
Utils.RoundScale(ref mBottomPadding, newScale / oldScale);
|
||||
|
||||
if (mChildItems != null)
|
||||
{
|
||||
for (var child in mChildItems)
|
||||
|
|
|
@ -1531,7 +1531,12 @@ namespace Beefy.widgets
|
|||
|
||||
CursorLineAndColumn = prevCursorLineAndCol;
|
||||
}
|
||||
|
||||
|
||||
public virtual void LinePullup(int textPos)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual void DeleteChar()
|
||||
{
|
||||
if (HasSelection())
|
||||
|
@ -1602,7 +1607,10 @@ namespace Beefy.widgets
|
|||
|
||||
char8 c = (char8)mData.mText[textPos].mChar;
|
||||
if ((c == '\n') || (!c.IsWhiteSpace))
|
||||
break;
|
||||
{
|
||||
LinePullup(textPos);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
mData.mUndoManager.Add(undoBatchStart.mBatchEnd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue