Android Code Snippet [B4X] Light theme B4XDateTemplate

Status
Not open for further replies.

Erel

Administrator
Staff member
Licensed User


Example of customizing B4XDialog and B4XDateTemplate.

B4X:
Sub SetLightTheme
   Dialog.TitleBarColor = 0xFFFF7505
   Dialog.TitleBarHeight = 80dip
   Dim TextColor As Int = 0xFF5B5B5B
   Dialog.BackgroundColor = xui.Color_White
   Dialog.ButtonsColor = xui.Color_White
   Dialog.ButtonsTextColor = Dialog.TitleBarColor
   Dialog.BorderColor = xui.Color_Transparent
   DateTemplate.DaysInWeekColor = xui.Color_Black
   DateTemplate.SelectedColor = 0xFF39D7CE
   DateTemplate.HighlightedColor = 0xFF00CEFF
   DateTemplate.DaysInMonthColor = TextColor
   DateTemplate.lblMonth.TextColor = TextColor
   DateTemplate.lblYear.TextColor = TextColor
   DateTemplate.SelectedColor = 0xFFFFA761
   For Each x As B4XView In Array(DateTemplate.btnMonthLeft, DateTemplate.btnMonthRight, DateTemplate.btnYearLeft, DateTemplate.btnYearRight)
       x.Color = xui.Color_Transparent
   Next
End Sub
B4A project is attached.
 

Attachments

Erel

Administrator
Staff member
Licensed User
Your questions are not really related to this thread.
However:
B4X:
Dialog.ButtonsTextColor =  xui.Colors_Red
DateTemplate.DaysInWeekColor = xui.Colors_Green
 
Status
Not open for further replies.
Top