-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a new command `st.logo` to display a logo in the top left of main page & sidebar
- Loading branch information
1 parent
1a3a1c0
commit 3fa988a
Showing
88 changed files
with
663 additions
and
94 deletions.
There are no files selected for viewing
Binary file modified
BIN
+674 Bytes
(100%)
.../__snapshots__/linux/hello_app_test/hello_app-animation_demo_page[chromium].png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.5 KB
(100%)
...t/__snapshots__/linux/hello_app_test/hello_app-animation_demo_page[firefox].png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+760 Bytes
(100%)
...ht/__snapshots__/linux/hello_app_test/hello_app-animation_demo_page[webkit].png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+527 Bytes
(100%)
.../__snapshots__/linux/hello_app_test/hello_app-dataframe_demo_page[chromium].png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.16 KB
(100%)
...t/__snapshots__/linux/hello_app_test/hello_app-dataframe_demo_page[firefox].png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+715 Bytes
(100%)
...ht/__snapshots__/linux/hello_app_test/hello_app-dataframe_demo_page[webkit].png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+608 Bytes
(100%)
...playwright/__snapshots__/linux/hello_app_test/hello_app-home_page[chromium].png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.54 KB
(100%)
e2e_playwright/__snapshots__/linux/hello_app_test/hello_app-home_page[firefox].png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+988 Bytes
(100%)
e2e_playwright/__snapshots__/linux/hello_app_test/hello_app-home_page[webkit].png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+593 Bytes
(100%)
...t/__snapshots__/linux/hello_app_test/hello_app-plotting_demo_page[chromium].png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.32 KB
(100%)
...ht/__snapshots__/linux/hello_app_test/hello_app-plotting_demo_page[firefox].png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+679 Bytes
(100%)
...ght/__snapshots__/linux/hello_app_test/hello_app-plotting_demo_page[webkit].png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-30 Bytes
(100%)
...pp_test/hello_app-print_media-landscape-sidebar_closed[dark_theme-chromium].png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+311 Bytes
(100%)
..._app_test/hello_app-print_media-landscape-sidebar_open[dark_theme-chromium].png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+130 Bytes
(100%)
...o_app_test/hello_app-print_media-landscape-sidebar_open[dark_theme-firefox].png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-95 Bytes
(100%)
...lo_app_test/hello_app-print_media-landscape-sidebar_open[dark_theme-webkit].png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+348 Bytes
(100%)
...app_test/hello_app-print_media-landscape-sidebar_open[light_theme-chromium].png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+14 Bytes
(100%)
..._app_test/hello_app-print_media-landscape-sidebar_open[light_theme-firefox].png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-67 Bytes
(100%)
...o_app_test/hello_app-print_media-landscape-sidebar_open[light_theme-webkit].png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+424 Bytes
(100%)
...o_app_test/hello_app-print_media-portrait-sidebar_open[dark_theme-chromium].png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+126 Bytes
(100%)
...lo_app_test/hello_app-print_media-portrait-sidebar_open[dark_theme-firefox].png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-163 Bytes
(100%)
...llo_app_test/hello_app-print_media-portrait-sidebar_open[dark_theme-webkit].png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+479 Bytes
(100%)
..._app_test/hello_app-print_media-portrait-sidebar_open[light_theme-chromium].png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-74 Bytes
(100%)
...o_app_test/hello_app-print_media-portrait-sidebar_open[light_theme-firefox].png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-133 Bytes
(100%)
...lo_app_test/hello_app-print_media-portrait-sidebar_open[light_theme-webkit].png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.44 KB
e2e_playwright/__snapshots__/linux/mpa_basics_test/collapsed-logo[chromium].png
Oops, something went wrong.
Binary file added
BIN
+1.92 KB
e2e_playwright/__snapshots__/linux/mpa_basics_test/collapsed-logo[firefox].png
Oops, something went wrong.
Binary file added
BIN
+1.33 KB
e2e_playwright/__snapshots__/linux/mpa_basics_test/collapsed-logo[webkit].png
Oops, something went wrong.
Binary file modified
BIN
+508 Bytes
(100%)
...ht/__snapshots__/linux/mpa_basics_test/mpa-sidebar_nav[dark_theme-chromium].png
Oops, something went wrong.
Binary file modified
BIN
+748 Bytes
(100%)
...ght/__snapshots__/linux/mpa_basics_test/mpa-sidebar_nav[dark_theme-firefox].png
Oops, something went wrong.
Binary file modified
BIN
+465 Bytes
(100%)
...ight/__snapshots__/linux/mpa_basics_test/mpa-sidebar_nav[dark_theme-webkit].png
Oops, something went wrong.
Binary file modified
BIN
+516 Bytes
(100%)
...t/__snapshots__/linux/mpa_basics_test/mpa-sidebar_nav[light_theme-chromium].png
Oops, something went wrong.
Binary file modified
BIN
+777 Bytes
(100%)
...ht/__snapshots__/linux/mpa_basics_test/mpa-sidebar_nav[light_theme-firefox].png
Oops, something went wrong.
Binary file modified
BIN
+474 Bytes
(100%)
...ght/__snapshots__/linux/mpa_basics_test/mpa-sidebar_nav[light_theme-webkit].png
Oops, something went wrong.
Binary file modified
BIN
+2.07 KB
(130%)
...ght/__snapshots__/linux/mpa_basics_test/mpa-sidebar_nav_collapsed[chromium].png
Oops, something went wrong.
Binary file modified
BIN
+3.38 KB
(140%)
...ight/__snapshots__/linux/mpa_basics_test/mpa-sidebar_nav_collapsed[firefox].png
Oops, something went wrong.
Binary file modified
BIN
+2.42 KB
(140%)
...right/__snapshots__/linux/mpa_basics_test/mpa-sidebar_nav_collapsed[webkit].png
Oops, something went wrong.
Binary file modified
BIN
+499 Bytes
(100%)
...ight/__snapshots__/linux/mpa_basics_test/mpa-sidebar_nav_expanded[chromium].png
Oops, something went wrong.
Binary file modified
BIN
+725 Bytes
(100%)
...right/__snapshots__/linux/mpa_basics_test/mpa-sidebar_nav_expanded[firefox].png
Oops, something went wrong.
Binary file modified
BIN
+430 Bytes
(100%)
...wright/__snapshots__/linux/mpa_basics_test/mpa-sidebar_nav_expanded[webkit].png
Oops, something went wrong.
Binary file added
BIN
+24.6 KB
e2e_playwright/__snapshots__/linux/mpa_basics_test/sidebar-logo[chromium].png
Oops, something went wrong.
Binary file added
BIN
+30.4 KB
e2e_playwright/__snapshots__/linux/mpa_basics_test/sidebar-logo[firefox].png
Oops, something went wrong.
Binary file added
BIN
+22.2 KB
e2e_playwright/__snapshots__/linux/mpa_basics_test/sidebar-logo[webkit].png
Oops, something went wrong.
Binary file added
BIN
+1.22 KB
...ht/__snapshots__/linux/mpa_configure_sidebar_test/logo-no-sidebar[chromium].png
Oops, something went wrong.
Binary file added
BIN
+1.74 KB
...ght/__snapshots__/linux/mpa_configure_sidebar_test/logo-no-sidebar[firefox].png
Oops, something went wrong.
Binary file added
BIN
+1.14 KB
...ight/__snapshots__/linux/mpa_configure_sidebar_test/logo-no-sidebar[webkit].png
Oops, something went wrong.
Binary file modified
BIN
+1 Byte
(100%)
...interactions_test/st_data_editor-row_deletion_toolbar[light_theme-chromium].png
Oops, something went wrong.
Binary file modified
BIN
-2 Bytes
(100%)
...eractions_test/st_data_editor-selected_row_for_deletion[dark_theme-firefox].png
Oops, something went wrong.
Binary file modified
BIN
-1 Byte
(100%)
...actions_test/st_data_editor-selected_row_for_deletion[light_theme-chromium].png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
.../st_dataframe_interactions_test/st_dataframe-fullscreen_collapsed[chromium].png
Oops, something went wrong.
Binary file modified
BIN
-7 Bytes
(99%)
...nux/st_dataframe_interactions_test/st_dataframe-toolbar[dark_theme-firefox].png
Oops, something went wrong.
Binary file modified
BIN
-17 Bytes
(99%)
...ux/st_dataframe_interactions_test/st_dataframe-toolbar[light_theme-firefox].png
Oops, something went wrong.
Binary file modified
BIN
-6 Bytes
(100%)
...ame_interactions_test/st_dataframe-toolbar_hover_search[dark_theme-firefox].png
Oops, something went wrong.
Binary file modified
BIN
-9 Bytes
(99%)
...me_interactions_test/st_dataframe-toolbar_hover_search[light_theme-firefox].png
Oops, something went wrong.
Binary file modified
BIN
-6 Bytes
(100%)
...snapshots__/linux/st_markdown_test/st_markdown-headers_in_sidebar[chromium].png
Oops, something went wrong.
Binary file modified
BIN
+9 Bytes
(100%)
..._snapshots__/linux/st_markdown_test/st_markdown-headers_in_sidebar[firefox].png
Oops, something went wrong.
Binary file modified
BIN
-1 Byte
(100%)
...__snapshots__/linux/st_markdown_test/st_markdown-headers_in_sidebar[webkit].png
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2024) | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
import pathlib | ||
|
||
from PIL import Image | ||
|
||
import streamlit as st | ||
|
||
small_logo = Image.open( | ||
str(pathlib.Path(__file__).parent.parent / "small-streamlit.png") | ||
) | ||
|
||
logo = Image.open(str(pathlib.Path(__file__).parent.parent / "full-streamlit.png")) | ||
|
||
st.header("Logo page") | ||
st.logo(logo, link="https://www.example.com", icon_image=small_logo) | ||
|
||
with st.sidebar: | ||
st.radio("Example Sidebar Content", ["Home", "About", "Contact"]) |
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.