Android Question [B4X] B4XPreferencesDialog: (Solved) How to adapt the aesthetic appearance of the dialog?

Gabino A. de la Gala

Active Member
Licensed User
All my application is developed with orange funds and I would like to make the dialogs that I open for the introduction of the data follow that criterion. At least the superior title of the dialogue, which in blue is not aesthetic.

It would be great to know how to apply an appearance as similar as possible to the rest of the application.

Thanks and best regards
 

Attachments

Erel

Administrator
Staff member
Licensed User
B4X:
p.Dialog.TitleBarColor = 0xFFD77004
p.Dialog.ButtonsTextColor = 0xFFD77004
Call it after the theme is set (and after you loaded the json template).
 

Gabino A. de la Gala

Active Member
Licensed User
B4X:
p.Dialog.TitleBarColor = 0xFFD77004
p.Dialog.ButtonsTextColor = 0xFFD77004
Call it after the theme is set (and after you loaded the json template).
It worked perfectly!!!

B4X:
StMinDialog.Initialize(Activity, "Datos Artículo", 180dip, 120dip)
        'XUI.SetDataFolder ("")
        ' Cargo los campos definidos para el formulario
        StMinDialog.LoadFromJson( File.ReadString(File.DirAssets, "InputStMin.json"))
        ' Le doy un aspecto similar al resto de la aplicación.
        StMinDialog.Dialog.TitleBarTextColor = Colors.Black
        StMinDialog.Dialog.TitleBarColor = 0xffff9100
        StMinDialog.Dialog.ButtonsTextColor = Colors.Black
        StMinDialog.Dialog.ButtonsColor = 0xffff9100
 

Attachments

Top