mirror of
https://github.com/markqvist/Sideband.git
synced 2025-08-02 19:46:27 -04:00
Improved dialogs and buttons
This commit is contained in:
parent
7b7903be8d
commit
cef44c2189
4 changed files with 29 additions and 29 deletions
|
@ -85,7 +85,7 @@ class Announces():
|
|||
|
||||
def gen_info(ts, dest, name, dtype):
|
||||
def x(sender):
|
||||
yes_button = MDRectangleFlatButton(text="OK",font_size=sp(18))
|
||||
yes_button = MDRectangleFlatButton(text="OK",font_size=dp(18))
|
||||
|
||||
if dtype == "lxmf.delivery":
|
||||
ad_text = "[size=22dp]LXMF Peer[/size]\n\nReceived: "+ts+"\nAnnounced Name: "+name+"\nAddress: "+RNS.prettyhexrep(dest)
|
||||
|
@ -127,8 +127,8 @@ class Announces():
|
|||
|
||||
def gen_del(dest, item):
|
||||
def x():
|
||||
yes_button = MDRectangleFlatButton(text="Yes",font_size=sp(18), theme_text_color="Custom", line_color=self.app.color_reject, text_color=self.app.color_reject)
|
||||
no_button = MDRectangleFlatButton(text="No",font_size=sp(18))
|
||||
yes_button = MDRectangleFlatButton(text="Yes",font_size=dp(18), theme_text_color="Custom", line_color=self.app.color_reject, text_color=self.app.color_reject)
|
||||
no_button = MDRectangleFlatButton(text="No",font_size=dp(18))
|
||||
dialog = MDDialog(
|
||||
title="Delete announce?",
|
||||
buttons=[ yes_button, no_button ],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue