tastudio: current branch tweaks.

- make bg color readable, and match the plaback cursor one
- set last updated or added branch as current
This commit is contained in:
feos 2015-07-29 21:38:10 +03:00
parent fd8d4e4678
commit e6fdac6923
2 changed files with 4 additions and 2 deletions
BizHawk.Client.EmuHawk/tools/TAStudio

View File

@ -52,7 +52,7 @@
this.BookmarksBranchesGroupBox.Size = new System.Drawing.Size(198, 249);
this.BookmarksBranchesGroupBox.TabIndex = 0;
this.BookmarksBranchesGroupBox.TabStop = false;
this.BookmarksBranchesGroupBox.Text = "Bookmarks / Branches";
this.BookmarksBranchesGroupBox.Text = "Branches";
//
// BranchView
//

View File

@ -98,7 +98,7 @@ namespace BizHawk.Client.EmuHawk
private void QueryItemBkColor(int index, InputRoll.RollColumn column, ref Color color)
{
if (index == CurrentBranch)
color = SystemColors.HotTrack;
color = TAStudio.CurrentFrame_InputLog; // SystemColors.HotTrack;
// Highlight the branch cell a little, if hovering over it
if (BranchView.CurrentCellIsDataCell &&
@ -223,6 +223,7 @@ namespace BizHawk.Client.EmuHawk
var branch = CreateBranch();
Branches.Add(branch);
BranchView.RowCount = Branches.Count;
CurrentBranch = Branches.IndexOf(branch);
BranchView.Refresh();
}
@ -312,6 +313,7 @@ namespace BizHawk.Client.EmuHawk
Branches.Insert(index, newbranch);
Branches.Remove(branch);
CurrentBranch = index;
BranchView.Refresh();
}
}