-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.py
More file actions
31 lines (22 loc) · 1.11 KB
/
styles.py
File metadata and controls
31 lines (22 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import config
def apply_violet_color(btn):
btn.classes('px-6 py-2 h-11 text-white rounded-lg shadow-md text-sm hover:text-base transition-all duration-200')
btn.style(f'background-color: {config.VIOLET_COLOR} !important')
def apply_purple_color(btn):
btn.classes('px-6 py-2 h-11 text-white rounded-lg shadow-md text-sm hover:text-base transition-all duration-200')
btn.style('background-color: #A64AC9 !important')
def apply_default_color(btn):
btn.classes('px-6 py-2 h-11 text-white rounded-lg shadow-md text-sm hover:text-base transition-all duration-200')
def apply_custom_color(btn, color):
btn.classes('px-6 py-2 h-11 text-white rounded-lg shadow-md text-sm hover:text-base transition-all duration-200')
btn.style(f'background-color: {color} !important')
def apply_custom_border_color(card, color):
card.style(f'border-color: {color} !important')
def apply_download_icon(btn):
btn.props('icon=download')
def apply_play_icon(btn):
btn.props('icon=play_arrow')
def apply_filter_icon(btn):
btn.props('icon=filter_list')
def apply_full_width(btn):
btn.classes(add='w-full')