Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Add shiny remote to fix swatches #26

Merged
merged 6 commits into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"editor.formatOnSave": true,
"editor.tabSize": 4,
"editor.codeActionsOnSave": {
"source.organizeImports": true
"source.organizeImports": "explicit"
},
},
"isort.args":["--profile", "black"],
Expand Down
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ All notable changes to `shinyswatch` will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [UNRELEASED]

* Update bootswatch themes to receive posit-dev/py-shiny#1124 updates to fix navbar themeing (#26)

## [0.4.2] - 2023-12-22

* Update bootswatch themes. (24)
* Update bootswatch themes. (#24)

## [0.4.1] - 2023-10-31

Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ install_requires =
typing-extensions>=3.10.0.0
packaging>=20.9
htmltools>=0.2.0
shiny>=0.6.0
# shiny>0.7.1
shiny @ git+https://github.com/posit-dev/py-shiny.git#egg=shiny
tests_require =
pytest>=3
zip_safe = False
Expand Down
2 changes: 1 addition & 1 deletion shinyswatch/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Bootswatch + Bootstrap 5 themes for Shiny"""

__version__ = "0.4.2"
__version__ = "0.4.2.9000"

from . import theme
from ._get_theme import get_theme
Expand Down
2 changes: 1 addition & 1 deletion shinyswatch/bsw5/cerulean/bootswatch.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* {bslib} version: Github (rstudio/bslib@f05bd23d7df5a7465e418a5794925dacdd27bb6b) */
/* {bslib} version: Github (rstudio/bslib@63dc94a1c89f338c5805a458101e600dcaf371a7) */
/* bw: 5: 5 */
/* bsw5 theme: cerulean */
:root {
Expand Down
2 changes: 1 addition & 1 deletion shinyswatch/bsw5/cerulean/bootswatch.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shinyswatch/bsw5/cosmo/bootswatch.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* {bslib} version: Github (rstudio/bslib@f05bd23d7df5a7465e418a5794925dacdd27bb6b) */
/* {bslib} version: Github (rstudio/bslib@63dc94a1c89f338c5805a458101e600dcaf371a7) */
/* bw: 5: 5 */
/* bsw5 theme: cosmo */
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;700&display=swap");
Expand Down
2 changes: 1 addition & 1 deletion shinyswatch/bsw5/cosmo/bootswatch.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shinyswatch/bsw5/cyborg/bootswatch.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* {bslib} version: Github (rstudio/bslib@f05bd23d7df5a7465e418a5794925dacdd27bb6b) */
/* {bslib} version: Github (rstudio/bslib@63dc94a1c89f338c5805a458101e600dcaf371a7) */
/* bw: 5: 5 */
/* bsw5 theme: cyborg */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");
Expand Down
2 changes: 1 addition & 1 deletion shinyswatch/bsw5/cyborg/bootswatch.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shinyswatch/bsw5/darkly/bootswatch.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* {bslib} version: Github (rstudio/bslib@f05bd23d7df5a7465e418a5794925dacdd27bb6b) */
/* {bslib} version: Github (rstudio/bslib@63dc94a1c89f338c5805a458101e600dcaf371a7) */
/* bw: 5: 5 */
/* bsw5 theme: darkly */
@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400&display=swap");
Expand Down
2 changes: 1 addition & 1 deletion shinyswatch/bsw5/darkly/bootswatch.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shinyswatch/bsw5/flatly/bootswatch.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* {bslib} version: Github (rstudio/bslib@f05bd23d7df5a7465e418a5794925dacdd27bb6b) */
/* {bslib} version: Github (rstudio/bslib@63dc94a1c89f338c5805a458101e600dcaf371a7) */
/* bw: 5: 5 */
/* bsw5 theme: flatly */
@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400&display=swap");
Expand Down
2 changes: 1 addition & 1 deletion shinyswatch/bsw5/flatly/bootswatch.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shinyswatch/bsw5/journal/bootswatch.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* {bslib} version: Github (rstudio/bslib@f05bd23d7df5a7465e418a5794925dacdd27bb6b) */
/* {bslib} version: Github (rstudio/bslib@63dc94a1c89f338c5805a458101e600dcaf371a7) */
/* bw: 5: 5 */
/* bsw5 theme: journal */
@import url("https://fonts.googleapis.com/css2?family=News+Cycle:wght@400;700&display=swap");
Expand Down
2 changes: 1 addition & 1 deletion shinyswatch/bsw5/journal/bootswatch.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shinyswatch/bsw5/litera/bootswatch.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* {bslib} version: Github (rstudio/bslib@f05bd23d7df5a7465e418a5794925dacdd27bb6b) */
/* {bslib} version: Github (rstudio/bslib@63dc94a1c89f338c5805a458101e600dcaf371a7) */
/* bw: 5: 5 */
/* bsw5 theme: litera */
:root {
Expand Down
2 changes: 1 addition & 1 deletion shinyswatch/bsw5/litera/bootswatch.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shinyswatch/bsw5/lumen/bootswatch.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* {bslib} version: Github (rstudio/bslib@f05bd23d7df5a7465e418a5794925dacdd27bb6b) */
/* {bslib} version: Github (rstudio/bslib@63dc94a1c89f338c5805a458101e600dcaf371a7) */
/* bw: 5: 5 */
/* bsw5 theme: lumen */
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,300;0,400;0,700;1,400&display=swap");
Expand Down
2 changes: 1 addition & 1 deletion shinyswatch/bsw5/lumen/bootswatch.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shinyswatch/bsw5/lux/bootswatch.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* {bslib} version: Github (rstudio/bslib@f05bd23d7df5a7465e418a5794925dacdd27bb6b) */
/* {bslib} version: Github (rstudio/bslib@63dc94a1c89f338c5805a458101e600dcaf371a7) */
/* bw: 5: 5 */
/* bsw5 theme: lux */
@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600&display=swap");
Expand Down
2 changes: 1 addition & 1 deletion shinyswatch/bsw5/lux/bootswatch.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shinyswatch/bsw5/materia/bootswatch.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* {bslib} version: Github (rstudio/bslib@f05bd23d7df5a7465e418a5794925dacdd27bb6b) */
/* {bslib} version: Github (rstudio/bslib@63dc94a1c89f338c5805a458101e600dcaf371a7) */
/* bw: 5: 5 */
/* bsw5 theme: materia */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");
Expand Down
2 changes: 1 addition & 1 deletion shinyswatch/bsw5/materia/bootswatch.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shinyswatch/bsw5/minty/bootswatch.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* {bslib} version: Github (rstudio/bslib@f05bd23d7df5a7465e418a5794925dacdd27bb6b) */
/* {bslib} version: Github (rstudio/bslib@63dc94a1c89f338c5805a458101e600dcaf371a7) */
/* bw: 5: 5 */
/* bsw5 theme: minty */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap");
Expand Down
2 changes: 1 addition & 1 deletion shinyswatch/bsw5/minty/bootswatch.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shinyswatch/bsw5/morph/bootswatch.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* {bslib} version: Github (rstudio/bslib@f05bd23d7df5a7465e418a5794925dacdd27bb6b) */
/* {bslib} version: Github (rstudio/bslib@63dc94a1c89f338c5805a458101e600dcaf371a7) */
/* bw: 5: 5 */
/* bsw5 theme: morph */
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap");
Expand Down
2 changes: 1 addition & 1 deletion shinyswatch/bsw5/morph/bootswatch.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shinyswatch/bsw5/pulse/bootswatch.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* {bslib} version: Github (rstudio/bslib@f05bd23d7df5a7465e418a5794925dacdd27bb6b) */
/* {bslib} version: Github (rstudio/bslib@63dc94a1c89f338c5805a458101e600dcaf371a7) */
/* bw: 5: 5 */
/* bsw5 theme: pulse */
:root {
Expand Down
2 changes: 1 addition & 1 deletion shinyswatch/bsw5/pulse/bootswatch.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shinyswatch/bsw5/quartz/bootswatch.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* {bslib} version: Github (rstudio/bslib@f05bd23d7df5a7465e418a5794925dacdd27bb6b) */
/* {bslib} version: Github (rstudio/bslib@63dc94a1c89f338c5805a458101e600dcaf371a7) */
/* bw: 5: 5 */
/* bsw5 theme: quartz */
:root {
Expand Down
2 changes: 1 addition & 1 deletion shinyswatch/bsw5/quartz/bootswatch.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shinyswatch/bsw5/sandstone/bootswatch.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* {bslib} version: Github (rstudio/bslib@f05bd23d7df5a7465e418a5794925dacdd27bb6b) */
/* {bslib} version: Github (rstudio/bslib@63dc94a1c89f338c5805a458101e600dcaf371a7) */
/* bw: 5: 5 */
/* bsw5 theme: sandstone */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");
Expand Down
2 changes: 1 addition & 1 deletion shinyswatch/bsw5/sandstone/bootswatch.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shinyswatch/bsw5/simplex/bootswatch.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* {bslib} version: Github (rstudio/bslib@f05bd23d7df5a7465e418a5794925dacdd27bb6b) */
/* {bslib} version: Github (rstudio/bslib@63dc94a1c89f338c5805a458101e600dcaf371a7) */
/* bw: 5: 5 */
/* bsw5 theme: simplex */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap");
Expand Down
2 changes: 1 addition & 1 deletion shinyswatch/bsw5/simplex/bootswatch.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shinyswatch/bsw5/sketchy/bootswatch.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* {bslib} version: Github (rstudio/bslib@f05bd23d7df5a7465e418a5794925dacdd27bb6b) */
/* {bslib} version: Github (rstudio/bslib@63dc94a1c89f338c5805a458101e600dcaf371a7) */
/* bw: 5: 5 */
/* bsw5 theme: sketchy */
@import url("https://fonts.googleapis.com/css?family=Neucha|Cabin+Sketch&display=swap");
Expand Down
2 changes: 1 addition & 1 deletion shinyswatch/bsw5/sketchy/bootswatch.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shinyswatch/bsw5/slate/bootswatch.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* {bslib} version: Github (rstudio/bslib@f05bd23d7df5a7465e418a5794925dacdd27bb6b) */
/* {bslib} version: Github (rstudio/bslib@63dc94a1c89f338c5805a458101e600dcaf371a7) */
/* bw: 5: 5 */
/* bsw5 theme: slate */
:root {
Expand Down
2 changes: 1 addition & 1 deletion shinyswatch/bsw5/slate/bootswatch.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shinyswatch/bsw5/solar/bootswatch.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* {bslib} version: Github (rstudio/bslib@f05bd23d7df5a7465e418a5794925dacdd27bb6b) */
/* {bslib} version: Github (rstudio/bslib@63dc94a1c89f338c5805a458101e600dcaf371a7) */
/* bw: 5: 5 */
/* bsw5 theme: solar */
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap");
Expand Down
2 changes: 1 addition & 1 deletion shinyswatch/bsw5/solar/bootswatch.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shinyswatch/bsw5/spacelab/bootswatch.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* {bslib} version: Github (rstudio/bslib@f05bd23d7df5a7465e418a5794925dacdd27bb6b) */
/* {bslib} version: Github (rstudio/bslib@63dc94a1c89f338c5805a458101e600dcaf371a7) */
/* bw: 5: 5 */
/* bsw5 theme: spacelab */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap");
Expand Down
2 changes: 1 addition & 1 deletion shinyswatch/bsw5/spacelab/bootswatch.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shinyswatch/bsw5/superhero/bootswatch.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* {bslib} version: Github (rstudio/bslib@f05bd23d7df5a7465e418a5794925dacdd27bb6b) */
/* {bslib} version: Github (rstudio/bslib@63dc94a1c89f338c5805a458101e600dcaf371a7) */
/* bw: 5: 5 */
/* bsw5 theme: superhero */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap");
Expand Down
2 changes: 1 addition & 1 deletion shinyswatch/bsw5/superhero/bootswatch.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shinyswatch/bsw5/united/bootswatch.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* {bslib} version: Github (rstudio/bslib@f05bd23d7df5a7465e418a5794925dacdd27bb6b) */
/* {bslib} version: Github (rstudio/bslib@63dc94a1c89f338c5805a458101e600dcaf371a7) */
/* bw: 5: 5 */
/* bsw5 theme: united */
@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;700&display=swap");
Expand Down
2 changes: 1 addition & 1 deletion shinyswatch/bsw5/united/bootswatch.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shinyswatch/bsw5/vapor/bootswatch.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* {bslib} version: Github (rstudio/bslib@f05bd23d7df5a7465e418a5794925dacdd27bb6b) */
/* {bslib} version: Github (rstudio/bslib@63dc94a1c89f338c5805a458101e600dcaf371a7) */
/* bw: 5: 5 */
/* bsw5 theme: vapor */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap");
Expand Down
2 changes: 1 addition & 1 deletion shinyswatch/bsw5/vapor/bootswatch.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shinyswatch/bsw5/yeti/bootswatch.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* {bslib} version: Github (rstudio/bslib@f05bd23d7df5a7465e418a5794925dacdd27bb6b) */
/* {bslib} version: Github (rstudio/bslib@63dc94a1c89f338c5805a458101e600dcaf371a7) */
/* bw: 5: 5 */
/* bsw5 theme: yeti */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap");
Expand Down
2 changes: 1 addition & 1 deletion shinyswatch/bsw5/yeti/bootswatch.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shinyswatch/bsw5/zephyr/bootswatch.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* {bslib} version: Github (rstudio/bslib@f05bd23d7df5a7465e418a5794925dacdd27bb6b) */
/* {bslib} version: Github (rstudio/bslib@63dc94a1c89f338c5805a458101e600dcaf371a7) */
/* bw: 5: 5 */
/* bsw5 theme: zephyr */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap");
Expand Down
2 changes: 1 addition & 1 deletion shinyswatch/bsw5/zephyr/bootswatch.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions tests/bug_0025/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
from shiny import App, Inputs, Outputs, Session, ui

import shinyswatch

app_ui = ui.page_navbar(
shinyswatch.theme.cosmo(),
ui.nav_menu(
"Config",
ui.nav_panel("Config 1"),
ui.nav_panel("Config 2"),
),
ui.nav_menu(
"Results",
ui.nav_panel("Results 1"),
ui.nav_panel("Results 2"),
),
)


def server(input: Inputs, output: Outputs, session: Session):
pass


app = App(app_ui, server)
Loading