mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-11 04:52:21 +02:00
Scale fixes
This commit is contained in:
parent
56e3077338
commit
1caaec9b56
5 changed files with 28 additions and 6 deletions
|
@ -10675,6 +10675,14 @@ namespace IDE
|
||||||
squiggleScale = (float)Math.Round(squiggleScale);
|
squiggleScale = (float)Math.Round(squiggleScale);
|
||||||
mSquiggleImage.Scale(squiggleScale);
|
mSquiggleImage.Scale(squiggleScale);
|
||||||
mCircleImage.Scale(DarkTheme.sScale);
|
mCircleImage.Scale(DarkTheme.sScale);
|
||||||
|
|
||||||
|
mMainWindow?.SetMinimumSize(GS!(480), GS!(360));
|
||||||
|
|
||||||
|
/*for (var window in gApp.mWindows)
|
||||||
|
{
|
||||||
|
|
||||||
|
window.SetMinimumSize(GS!());
|
||||||
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
void HandleWindowClosed(BFWindow window)
|
void HandleWindowClosed(BFWindow window)
|
||||||
|
@ -11130,6 +11138,16 @@ namespace IDE
|
||||||
|
|
||||||
for (var project in mWorkspace.mProjects)
|
for (var project in mWorkspace.mProjects)
|
||||||
{
|
{
|
||||||
|
let options = GetCurProjectOptions(project);
|
||||||
|
if (options == null)
|
||||||
|
continue;
|
||||||
|
if (!options.mBuildOptions.mCleanCmds.IsEmpty)
|
||||||
|
{
|
||||||
|
if (mBuildContext == null)
|
||||||
|
mBuildContext = new BuildContext();
|
||||||
|
mBuildContext.QueueProjectCustomBuildCommands(project, "", .Always, options.mBuildOptions.mCleanCmds);
|
||||||
|
}
|
||||||
|
|
||||||
// Force running the "if files changed" commands
|
// Force running the "if files changed" commands
|
||||||
project.mForceCustomCommands = true;
|
project.mForceCustomCommands = true;
|
||||||
project.mNeedsTargetRebuild = true;
|
project.mNeedsTargetRebuild = true;
|
||||||
|
@ -11141,9 +11159,6 @@ namespace IDE
|
||||||
List<String> projectFiles = scope .();
|
List<String> projectFiles = scope .();
|
||||||
defer ClearAndDeleteItems(projectFiles);
|
defer ClearAndDeleteItems(projectFiles);
|
||||||
|
|
||||||
let options = GetCurProjectOptions(project);
|
|
||||||
if (options == null)
|
|
||||||
continue;
|
|
||||||
GetTargetPaths(project, mPlatformName, workspaceOptions, options, projectFiles);
|
GetTargetPaths(project, mPlatformName, workspaceOptions, options, projectFiles);
|
||||||
|
|
||||||
for (let filePath in projectFiles)
|
for (let filePath in projectFiles)
|
||||||
|
|
|
@ -170,8 +170,8 @@ namespace IDE.ui
|
||||||
|
|
||||||
public override void RehupScale(float oldScale, float newScale)
|
public override void RehupScale(float oldScale, float newScale)
|
||||||
{
|
{
|
||||||
base.RehupScale(oldScale, newScale);
|
|
||||||
SetScaleData();
|
SetScaleData();
|
||||||
|
base.RehupScale(oldScale, newScale);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Serialize(StructuredData data)
|
public override void Serialize(StructuredData data)
|
||||||
|
|
|
@ -477,8 +477,8 @@ namespace IDE.ui
|
||||||
|
|
||||||
public override void RehupScale(float oldScale, float newScale)
|
public override void RehupScale(float oldScale, float newScale)
|
||||||
{
|
{
|
||||||
base.RehupScale(oldScale, newScale);
|
|
||||||
SetScaleData();
|
SetScaleData();
|
||||||
|
base.RehupScale(oldScale, newScale);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void FocusForKeyboard()
|
public override void FocusForKeyboard()
|
||||||
|
|
|
@ -23,6 +23,12 @@ namespace IDE.ui
|
||||||
public bool mSortDirty;
|
public bool mSortDirty;
|
||||||
public bool mWantsRehup;
|
public bool mWantsRehup;
|
||||||
|
|
||||||
|
public override void RehupScale(float oldScale, float newScale)
|
||||||
|
{
|
||||||
|
base.RehupScale(oldScale, newScale);
|
||||||
|
Utils.SnapScale(ref mLabelOffset, newScale / oldScale);
|
||||||
|
}
|
||||||
|
|
||||||
protected override float GetLabelOffset()
|
protected override float GetLabelOffset()
|
||||||
{
|
{
|
||||||
return mLabelOffset;
|
return mLabelOffset;
|
||||||
|
@ -165,6 +171,7 @@ namespace IDE.ui
|
||||||
|
|
||||||
public override void RehupScale(float oldScale, float newScale)
|
public override void RehupScale(float oldScale, float newScale)
|
||||||
{
|
{
|
||||||
|
mListView.mOpenButtonX = GS!(4);
|
||||||
base.RehupScale(oldScale, newScale);
|
base.RehupScale(oldScale, newScale);
|
||||||
SetScaleData();
|
SetScaleData();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1624,8 +1624,8 @@ namespace IDE.ui
|
||||||
|
|
||||||
public override void RehupScale(float oldScale, float newScale)
|
public override void RehupScale(float oldScale, float newScale)
|
||||||
{
|
{
|
||||||
base.RehupScale(oldScale, newScale);
|
|
||||||
SetScaleData();
|
SetScaleData();
|
||||||
|
base.RehupScale(oldScale, newScale);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Serialize(StructuredData data, bool includeItems)
|
public void Serialize(StructuredData data, bool includeItems)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue