You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,15 +5,15 @@ All notable changes to `shinyswatch` will be documented in this file.
5
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
8
-
## [Unreleased] - YYYY-MM-DD
8
+
## [0.7.0] - 2024-07-18
9
9
10
10
### Breaking changes
11
11
12
-
* shinyswatch now uses the newly-introduced `shiny.ui.Theme()` class to define themes. As a result, `shinyswatch.theme.{name}` objects can no longer be added anywhere in the app's UI. Instead, pass a shinyswatch theme to the `theme` argument of any `shiny.ui.page_*()` functions (Shiny Core) or to `shiny.express.ui.page_opts()` (Shiny Express). (#39)
12
+
* shinyswatch now requires shiny v1.0.0 or newer to use the newly-introduced `shiny.ui.Theme()` class to define themes. As a result, `shinyswatch.theme.{name}` objects can no longer be added anywhere in the app's UI. Instead, pass a shinyswatch theme to the `theme` argument of any `shiny.ui.page_*()` functions (Shiny Core) or to `shiny.express.ui.page_opts()` (Shiny Express). (#39)
13
13
14
14
* The `default` argument of `theme_picker_ui()` is now deprecated. Instead, pass the initial theme to the `theme` argument of any `shiny.ui.page_*()` functions (Shiny Core) or to `shiny.express.ui.page_opts()` (Shiny Express). This change separates the initial theme selection from the placement of the theme picker input. (#39)
15
15
16
-
*`shinyswatch.get_theme_deps()` was removed from the pacakge. If needed, use the `._html_dependency()` method of the theme object. (#39)
16
+
*`shinyswatch.get_theme_deps()` was removed from the package. If needed, use the `._html_dependency()` method of the theme object. (#39)
Copy file name to clipboardExpand all lines: docs/index.qmd
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -82,11 +82,12 @@ Example Shiny application:
82
82
:::
83
83
84
84
::: {.content-visible when-format="html"}
85
+
::: column-page-inset
85
86
```{shinylive-python}
86
87
#| standalone: true
87
88
#| components: [editor, viewer]
88
89
#| layout: horizontal
89
-
#| viewerHeight: 800
90
+
#| viewerHeight: 400
90
91
## file: app.py
91
92
{{< include "examples/darkly/app.py" >}}
92
93
@@ -96,6 +97,7 @@ Example Shiny application:
96
97
97
98
```
98
99
:::
100
+
:::
99
101
100
102
> Note: When writing [shiny apps that use shinyswatch on shinylive.io](`{python} shinylive_example_url("darkly")`), remember to add `shinyswatch` to your `requirements.txt` file!
101
103
@@ -109,11 +111,12 @@ To add a theme picker to your app, add the theme picker UI and server functions
109
111
:::
110
112
111
113
::: {.content-visible when-format="html"}
114
+
::: column-page-inset
112
115
```{shinylive-python}
113
116
#| standalone: true
114
117
#| components: [editor, viewer]
115
118
#| layout: horizontal
116
-
#| viewerHeight: 800
119
+
#| viewerHeight: 400
117
120
## file: app.py
118
121
{{< include "examples/theme-picker/app.py" >}}
119
122
@@ -123,6 +126,7 @@ To add a theme picker to your app, add the theme picker UI and server functions
123
126
124
127
```
125
128
:::
129
+
:::
126
130
127
131
## Plot Theming
128
132
@@ -134,11 +138,12 @@ In the example below, try changing the theme and re-running the app to see how t
134
138
:::
135
139
136
140
::: {.content-visible when-format="html"}
141
+
::: column-page-inset
137
142
```{shinylive-python}
138
143
#| standalone: true
139
144
#| components: [editor, viewer]
140
145
#| layout: horizontal
141
-
#| viewerHeight: 800
146
+
#| viewerHeight: 550
142
147
## file: app.py
143
148
{{< include "examples/plot-theming/app.py" >}}
144
149
@@ -148,6 +153,7 @@ In the example below, try changing the theme and re-running the app to see how t
0 commit comments