Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Change background color in the dialogs form?
-
Hi,
can it be changed the background color in the dialogs form?Best regards.
-
That's currently not supported, sorry. If you really need this, feel free to look at the source code of the
dialogs
module – it's all just Python… -
working on it... thank you!
-
monkey patch of a module that you are sure it will be called after creation of the tableview of dialog fields (in my poor English)
import ui import dialogs def my_tableview_cell_for_row(self, tv, section, row): if self.view.background_color != 'blue': self.view.background_color = 'blue' return self.cells[section][row] dialogs._FormDialogController.tableview_cell_for_row = my_tableview_cell_for_row fields = [{'title':'title1','type':'text','value':''}, {'title':'title2','type':'text','value':''}] f = dialogs.form_dialog(title='dialog title', done_button_title='ok',fields=fields, sections=None)