We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c239161 commit cac8350Copy full SHA for cac8350
app/core/views.py
@@ -10,6 +10,7 @@
10
Dropdown,
11
ElevatedButton,
12
FilledButton,
13
+ OutlinedButton,
14
Icon,
15
Image,
16
PopupMenuButton,
@@ -27,6 +28,7 @@
27
28
dropdown,
29
icons,
30
padding,
31
+ Text,
32
)
33
34
from res import colors, dimens, fonts, image_paths
@@ -281,7 +283,7 @@ def __init__(
281
283
282
284
285
-class StdDangerButton(FilledButton):
286
+class StdDangerButton(ElevatedButton):
287
"""A button styled for dangerous actions e.g. delete"""
288
289
def __init__(
@@ -294,7 +296,8 @@ def __init__(
294
296
):
295
297
298
super().__init__(
- label,
299
+ text=label,
300
+ color=colors.DANGER_COLOR,
301
width=width,
302
on_click=on_click,
303
icon=icon,
0 commit comments