Skip to content

Commit 636988d

Browse files
cpsievertschloerkegadenbuie
authored
Require shinyswatch 0.7.0 and update examples accordingly (#1558)
Co-authored-by: Barret Schloerke <[email protected]> Co-authored-by: Garrick Aden-Buie <[email protected]>
1 parent f7737a4 commit 636988d

File tree

7 files changed

+20
-8
lines changed

7 files changed

+20
-8
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ All notable changes to Shiny for Python will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [UNRELEASED]
9+
10+
### New features
11+
12+
### Other changes
13+
14+
* Require shinyswatch >= 0.7.0 and updated examples accordingly. (#1558)
15+
16+
### Bug fixes
17+
18+
### Deprecations
19+
820
## [1.0.0] - 2024-07-18
921

1022
### New features

examples/dataframe/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pandas as pd
22
import seaborn as sns
3-
from shinyswatch.theme import darkly
3+
import shinyswatch
44

55
from shiny import App, Inputs, Outputs, Session, reactive, render, req, ui
66

@@ -12,7 +12,6 @@ def app_ui(req):
1212
ui.head_content(
1313
ui.tags.meta(name="viewport", content="width=device-width, initial-scale=1")
1414
),
15-
darkly() if dark else None,
1615
light_dark_switcher(dark),
1716
ui.input_select("dataset", "Dataset", sns.get_dataset_names()),
1817
ui.input_select(
@@ -35,6 +34,7 @@ def app_ui(req):
3534
right="10px",
3635
bottom="10px",
3736
),
37+
theme=shinyswatch.theme.darkly if dark else None,
3838
class_="p-3",
3939
)
4040

examples/duckdb/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from pathlib import Path
33

44
import duckdb
5-
import shinyswatch.theme as theme
5+
import shinyswatch
66
from query import query_output_server, query_output_ui
77

88
from shiny import App, reactive, ui
@@ -31,7 +31,6 @@ def load_csv(con, csv_name, table_name):
3131
button_style = {"style": "margin: 15px"}
3232

3333
app_ui = ui.page_fluid(
34-
theme.flatly(),
3534
ui.panel_title("DuckDB query explorer"),
3635
ui.row(
3736
ui.column(
@@ -63,6 +62,7 @@ def load_csv(con, csv_name, table_name):
6362
),
6463
),
6564
),
65+
theme=shinyswatch.theme.flatly,
6666
)
6767

6868

examples/duckdb/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
duckdb
22
shiny
3-
shinyswatch==0.2.3
3+
shinyswatch
44
pandas

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ dev =
116116
pandas-stubs
117117
polars
118118
numpy
119-
shinyswatch>=0.2.4
119+
shinyswatch>=0.7.0
120120
python-dotenv
121121
# Chat() provider types
122122
anthropic

shiny/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""A package for building reactive web applications."""
22

3-
__version__ = "1.0.0"
3+
__version__ = "1.0.0.9000"
44

55
from ._shinyenv import is_pyodide as _is_pyodide
66

shiny/api-examples/todo_list/app-core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
app_ui = ui.page_fixed(
77
{"class": "my-5"},
8-
shinyswatch.theme.minty(),
98
ui.panel_title("Shiny TodoMVC"),
109
ui.layout_sidebar(
1110
ui.sidebar(
@@ -15,6 +14,7 @@
1514
ui.output_text("cleared_tasks"),
1615
ui.div(id="tasks", style="margin-top: 0.5em"),
1716
),
17+
theme=shinyswatch.theme.minty,
1818
)
1919

2020

0 commit comments

Comments
 (0)