EasySci commited on
Commit
f580081
·
1 Parent(s): 26bd307

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -10
app.py CHANGED
@@ -2,7 +2,7 @@ import panel as pn
2
 
3
 
4
  # Create buttons for the toggleable sidebar
5
- button1 = pn.widgets.Button(icon = 'home', name="Home", icon_size='2em', width=130, css_classes=['custom-button'])
6
  button2 = pn.widgets.Button(icon = 'file-analytics', name='My papers', icon_size='2em', width=130)
7
  button3 = pn.widgets.Button(icon = 'settings', icon_size='2em', name='Settings', width=130)
8
 
@@ -23,6 +23,8 @@ filter_list = pn.widgets.CheckButtonGroup(
23
  options=["option1", "option2", "option3"],
24
  button_type='success',
25
  sizing_mode='fixed',
 
 
26
  margin=(5, 10)
27
  )
28
 
@@ -45,14 +47,5 @@ template = pn.template.FastListTemplate(
45
 
46
  )
47
 
48
- # Custom CSS to increase the size of the text inside the "My papers" button
49
- custom_css = """
50
- .custom-button .bk.label {
51
- font-size: 20px;
52
- }
53
- """
54
-
55
- template.add_theme(pn.template.BaseTheme(json=custom_css))
56
-
57
  # Run the app
58
  template.servable()
 
2
 
3
 
4
  # Create buttons for the toggleable sidebar
5
+ button1 = pn.widgets.Button(icon = 'home', name="Home", icon_size='2em', width=130)
6
  button2 = pn.widgets.Button(icon = 'file-analytics', name='My papers', icon_size='2em', width=130)
7
  button3 = pn.widgets.Button(icon = 'settings', icon_size='2em', name='Settings', width=130)
8
 
 
23
  options=["option1", "option2", "option3"],
24
  button_type='success',
25
  sizing_mode='fixed',
26
+ button_style = 'solid',
27
+ button_type = 'default',
28
  margin=(5, 10)
29
  )
30
 
 
47
 
48
  )
49
 
 
 
 
 
 
 
 
 
 
50
  # Run the app
51
  template.servable()