/* PiecesOnly Tabpane Tab title text Dark Green*/
.tab .tab-label {
-fx-text-fill: #05A005;
-fx-font-weight: bold;
}
.tab:selected .tab-label {
-fx-text-fill: #05A005;
}
tpPiecesOnly.Id = "tpPiecesOnly"
tpPrimaries.Id = "tpPrimaries"
tpNowPlaying.Id = "tpNowPlaying"
/* PiecesOnly Tabpane Tab title text Dark Green*/
#tpPiecesOnly .tab .tab-label {
-fx-text-fill: #05A005;
-fx-font-weight: bold;
}
#tpPiecesOnly .tab:selected .tab-label {
-fx-text-fill: #05A005;
}
/* Primaries Tabpane Tab title text Dark Blue*/
#tpPrimaries .tab .tab-label {
-fx-text-fill: #783CF0;
-fx-font-weight: bold;
}
#tpPrimaries .tab:selected .tab-label {
-fx-text-fill: #783CF0;
}
/* NowPlaying Tabpane Tab title text Orange*/
#tpNowPlaying .tab .tab-label {
-fx-text-fill: #FFD700;
-fx-font-weight: bold;
}
/*Tabpane Tab title text*/
#tpNowPlaying .tab:selected .tab-label {
-fx-text-fill: #FFD700;
}
Sub Process_Globals
Private fx As JFX
Private MainForm As Form
Private TabPane1 As TabPane
Private xui As XUI
End Sub
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.RootPane.LoadLayout("1") 'Load the layout file.
MainForm.Show
Dim richtext As B4JTextFlow
richtext.Initialize
CreateTab("2", richtext.Reset.Append("Red").SetColor(xui.Color_Red).CreateTextFlow)
CreateTab("2", richtext.Reset.Append("Green").SetColor(0xFF006204).CreateTextFlow)
CreateTab("2", richtext.Reset.Append("Blue").SetColor(xui.Color_Blue).CreateTextFlow)
End Sub
Sub CreateTab (LayoutFile As String, TextFlow As Pane)
Dim t As TabPage = TabPane1.LoadLayout(LayoutFile, "")
Dim jo As JavaObject = t
jo.RunMethod("setGraphic", Array(TextFlow))
End Sub