瀏覽代碼

soften header shadow

Falko Schindler 2 年之前
父節點
當前提交
c40a3d3902
共有 1 個文件被更改,包括 1 次插入2 次删除
  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')