using System;
using System.Windows.Forms;
using System.IO;
using System.Drawing;
public class VAInline
{
public void main()
{
//Remove window border
Application.OpenForms["frmMain"].FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
//Change minimum size to allow the window to become smaller than designed(this will "squish" the controls together)
Application.OpenForms["frmMain"].MinimumSize = new System.Drawing.Size(656, 302);
//Change the size of the window
Application.OpenForms["frmMain"].Size = new System.Drawing.Size(656, 302);
//Change the location of the window
Application.OpenForms["frmMain"].Location = new System.Drawing.Point(0, 1920);
//Choose the font color
Color fontColor = Color.FromArgb(233, 124, 39);
//Change the font color for "Profile" and "Target"
Application.OpenForms["frmMain"].ForeColor = fontColor;
//Change the font color for the "Profile" box
Application.OpenForms["frmMain"].Controls["tableBody"].Controls["cboProfile"].ForeColor = fontColor;
//Change the font color for the log
Application.OpenForms["frmMain"].Controls["tableBody"].Controls["lvMain"].ForeColor = fontColor;
//Change the font color for the "Target" box
Application.OpenForms["frmMain"].Controls["tableBody"].Controls["cboProcesses"].ForeColor = fontColor;
//Alternatively, as the above doesn't affect all entries in the comboBox, hide it
Application.OpenForms["frmMain"].Controls["tableBody"].Controls["cboProcesses"].Hide();
//Because hiding the label makes the "Profile" box shrink, just make it blend into the background instead
Application.OpenForms["frmMain"].Controls["tableBody"].Controls["lblSendCommands"].ForeColor = Color.Black;
}
}
The comments should explain what it's doing, but you'll want to modify two values:
The window location, which doesn't need to be changed per-se, but can for pixel-perfect alignment(if you don't need this just add "//" to comment it out); I believe that if your primary monitor is 1920 pixels high, and the secondary is aligned with the top left corner of it, the location could be correct as it's set now, but this may require tweaking on your end.
The font color; I picked a color out of your photograph, so it won't be the same as already in use on your screen. The parameters for "Color.FromArgb" are individual red, green, and blue values.
I chose to hide the "Target" dropdown, as the top items are unaffected by changing the ForeColor(I didn't spend too long looking for a solution to this, to be honest), and you seem to have it set to "Active Window" anyways, so it's not needed.
EDIT: For anyone coming across this topic after the new UI is released (or already using a beta version of v1.7.9):
Setting the window border no longer works with this new version, however changing font colors (and the position of the window) is still possible:
using System;
using System.Windows.Forms;
using System.Drawing;
using Telerik.WinControls;
using Telerik.WinControls.UI;
public class VAInline
{
public void main()
{
//Change the location of the window
Application.OpenForms["frmMain"].Location = new System.Drawing.Point(-656, 30);
//Set the font color
Color fontColor = Color.FromArgb(233, 124, 39);
//Change the font color for "Profile"
Application.OpenForms["frmMain"].Controls["tableBody"].Controls["lblProfile"].ForeColor = fontColor;
//Change the font color for the "Profile" box
((RadDropDownList)Application.OpenForms["frmMain"].Controls["tableBody"].Controls["cboProfile"]).DropDownListElement.EditableElement.ForeColor = fontColor;
//Change the font color for the log
((RadListView)Application.OpenForms["frmMain"].Controls["tableBody"].Controls["lvMain"]).ListViewElement.ForeColor = fontColor;
}
}
Important as well is to add the references to the new control libraries in the "Referenced Assemblies" field (overwrite all the existing contents of that field with this):
System.dll;System.Drawing.dll;System.Windows.Forms.dll;{VA_DIR}\Telerik.WinControls.dll;{VA_DIR}\Telerik.WinControls.UI.dll
Also note that this is not intended to work with compact mode, and that the profile dropdown list items (only visible when the list is open) will still be the default color (I.E. black or white).