Przeglądaj źródła

soften header shadow

Falko Schindler 2 lat temu
rodzic
commit
c40a3d3902
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      main.py

+ 1 - 2
main.py

@@ -41,8 +41,7 @@ def add_head_html() -> None:
 def add_header() -> None:
     with ui.header() \
             .classes('items-center') \
-            .style(f'background-color: {ACCENT_COLOR}; height: {HEADER_HEIGHT}') \
-            .props('elevated'):
+            .style(f'background-color: {ACCENT_COLOR}; height: {HEADER_HEIGHT}; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1)'):
         ui.html((STATIC / 'happy_face.svg').read_text()).classes('w-8 stroke-white')
         with ui.link(target=index_page):
             ui.html((STATIC / 'nicegui_word.svg').read_text()).classes('w-24')