Skip to content

Commit cac8350

Browse files
committed
view: StdDangerButton more dangerous
1 parent c239161 commit cac8350

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/core/views.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
Dropdown,
1111
ElevatedButton,
1212
FilledButton,
13+
OutlinedButton,
1314
Icon,
1415
Image,
1516
PopupMenuButton,
@@ -27,6 +28,7 @@
2728
dropdown,
2829
icons,
2930
padding,
31+
Text,
3032
)
3133

3234
from res import colors, dimens, fonts, image_paths
@@ -281,7 +283,7 @@ def __init__(
281283
)
282284

283285

284-
class StdDangerButton(FilledButton):
286+
class StdDangerButton(ElevatedButton):
285287
"""A button styled for dangerous actions e.g. delete"""
286288

287289
def __init__(
@@ -294,7 +296,8 @@ def __init__(
294296
):
295297

296298
super().__init__(
297-
label,
299+
text=label,
300+
color=colors.DANGER_COLOR,
298301
width=width,
299302
on_click=on_click,
300303
icon=icon,

0 commit comments

Comments
 (0)