Browse Source

Scale fixes

Brian Fiete 5 years ago
parent
commit
1caaec9b56

+ 18 - 3
IDE/src/IDEApp.bf

@@ -10675,6 +10675,14 @@ namespace IDE
 				squiggleScale = (float)Math.Round(squiggleScale);
 			mSquiggleImage.Scale(squiggleScale);
 			mCircleImage.Scale(DarkTheme.sScale);
+
+			mMainWindow?.SetMinimumSize(GS!(480), GS!(360));
+
+			/*for (var window in gApp.mWindows)
+			{
+				
+				window.SetMinimumSize(GS!());
+			}*/
 		}
 
         void HandleWindowClosed(BFWindow window)
@@ -11130,6 +11138,16 @@ namespace IDE
 
 						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
 							project.mForceCustomCommands = true;
 							project.mNeedsTargetRebuild = true;
@@ -11141,9 +11159,6 @@ namespace IDE
 							List<String> projectFiles = scope .();
 							defer ClearAndDeleteItems(projectFiles);
 
-							let options = GetCurProjectOptions(project);
-							if (options == null)
-								continue;
 							GetTargetPaths(project, mPlatformName, workspaceOptions, options, projectFiles);
 
 							for (let filePath in projectFiles)

+ 1 - 1
IDE/src/ui/CallStackPanel.bf

@@ -170,8 +170,8 @@ namespace IDE.ui
 
 		public override void RehupScale(float oldScale, float newScale)
 		{
-			base.RehupScale(oldScale, newScale);
 			SetScaleData();
+			base.RehupScale(oldScale, newScale);
 		}
 
         public override void Serialize(StructuredData data)

+ 1 - 1
IDE/src/ui/ClassViewPanel.bf

@@ -477,8 +477,8 @@ namespace IDE.ui
 
 		public override void RehupScale(float oldScale, float newScale)
 		{
-			base.RehupScale(oldScale, newScale);
 			SetScaleData();
+			base.RehupScale(oldScale, newScale);
 		}
 
 		public override void FocusForKeyboard()

+ 7 - 0
IDE/src/ui/ProjectPanel.bf

@@ -23,6 +23,12 @@ namespace IDE.ui
 		public bool mSortDirty;
 		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()
         {
             return mLabelOffset;
@@ -165,6 +171,7 @@ namespace IDE.ui
 
 		public override void RehupScale(float oldScale, float newScale)
 		{
+			mListView.mOpenButtonX = GS!(4);
 			base.RehupScale(oldScale, newScale);
 			SetScaleData();
 		}

+ 1 - 1
IDE/src/ui/WatchPanel.bf

@@ -1624,8 +1624,8 @@ namespace IDE.ui
 
 		public override void RehupScale(float oldScale, float newScale)
 		{
-			base.RehupScale(oldScale, newScale);
 			SetScaleData();
+			base.RehupScale(oldScale, newScale);
 		}
 
 		public void Serialize(StructuredData data, bool includeItems)