mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-05 07:27:56 +00:00
31a10d9b16
* QWorkspaceInfo.cs: * QParser.cs: * WorkspacePrompt.cs: * QEventArgs.cs: Remove redundant QWorkspaceInfo class * QRecentWorkspaceInfo.cs: Add bundle info class for recent workspace info * ControlPage.xaml.cs: * QBrowserPage.xaml.cs: * QButton.cs: * qConnectionPage.xaml.cs: * QLevelsCell.cs: * QCueListCell.cs: * QInstanceCell.cs: * QControlsBlock.cs: * ShadowButton.cs: * QLevelsButton.cs: * QSelectedCueCell.cs: Move Cells classess under UI * AppDelegate.cs: * packages.config: * MainActivity.cs: * packages.config: * qController.iOS.csproj: * qController.Droid.csproj: * qController.csproj: Update dependencies * App.xaml.cs: Add AppAction code for recent workspace * QStorage.cs: Add recent workspace to persistent storage * QCueGrid.cs: Start on interactivity with cue list grid * QCueViewModel.cs: debug for children updated start on reactive QCueGrid * WorkspacePage.xaml.cs: Start handling a "no selected cue" state and recent workspace * QInstance.cs: * IPHelper.cs: move reachable check to IPHelper - TODO: implement
46 lines
1.2 KiB
C#
46 lines
1.2 KiB
C#
using Xamarin.Forms;
|
|
|
|
namespace qController.UI.Buttons
|
|
{
|
|
public class QButton : Button
|
|
{
|
|
public QCommand qCommand
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public QButton(QCommand command)
|
|
{
|
|
|
|
qCommand = command;
|
|
Text = qCommand.text;
|
|
TextColor = Color.Black;
|
|
FontSize = App.HeightUnit * 2.5;
|
|
if (qCommand.osc.Contains("go"))
|
|
{
|
|
BackgroundColor = Color.SeaGreen;
|
|
switch (Device.RuntimePlatform)
|
|
{
|
|
case Device.iOS:
|
|
FontSize = App.HeightUnit * 4;
|
|
FontAttributes = FontAttributes.Bold;
|
|
break;
|
|
case Device.Android:
|
|
FontSize = App.HeightUnit * 4;
|
|
FontAttributes = FontAttributes.Bold;
|
|
break;
|
|
}
|
|
}
|
|
else if (qCommand.osc.Contains("panic"))
|
|
{
|
|
BackgroundColor = Color.IndianRed;
|
|
}
|
|
else
|
|
{
|
|
BackgroundColor = Color.FromHex("D8D8D8");
|
|
}
|
|
}
|
|
}
|
|
}
|