From 2feff5661969e3bb466451e4850a51123883abad Mon Sep 17 00:00:00 2001 From: Joxit Date: Sun, 8 Jan 2023 20:53:01 +0100 Subject: [PATCH] feat(theme): add support for header and footer --- src/components/dialogs/add-registry-url.riot | 2 +- src/components/dialogs/dialogs-menu.riot | 4 ++-- src/components/docker-registry-ui.riot | 17 +++++++++++------ src/components/search-bar.riot | 2 +- src/scripts/theme.js | 14 ++++++++++++-- src/style.scss | 8 +++++--- 6 files changed, 32 insertions(+), 15 deletions(-) diff --git a/src/components/dialogs/add-registry-url.riot b/src/components/dialogs/add-registry-url.riot index d1e8e8e..075c2d0 100644 --- a/src/components/dialogs/add-registry-url.riot +++ b/src/components/dialogs/add-registry-url.riot @@ -18,7 +18,7 @@
Add your Server ?
- + Write your URL without /v2
diff --git a/src/components/dialogs/dialogs-menu.riot b/src/components/dialogs/dialogs-menu.riot index 0bdf2f9..cfcee8a 100644 --- a/src/components/dialogs/dialogs-menu.riot +++ b/src/components/dialogs/dialogs-menu.riot @@ -41,8 +41,8 @@ waves-center="true" waves-opacity="0.6" waves-duration="600" - color="rgba(0,0,0,0)" - text-color="#fff" + color="var(--header-background)" + text-color="var(--header-text)" icon > more_vert diff --git a/src/components/docker-registry-ui.riot b/src/components/docker-registry-ui.riot index e6cbefb..2115842 100644 --- a/src/components/docker-registry-ui.riot +++ b/src/components/docker-registry-ui.riot @@ -141,7 +141,7 @@ along with this program. If not, see . this.state.catalogElementsLimit = props.catalogElementsLimit || 100000; this.state.pullUrl = this.pullUrl(this.state.registryUrl, props.pullUrl); this.state.useControlCacheHeader = props.useControlCacheHeader; - loadTheme(props, this.root.style); + loadTheme(props, this.root.parentNode.style); }, onServerChange(registryUrl) { this.update({ @@ -204,17 +204,22 @@ along with this program. If not, see . }; diff --git a/src/components/search-bar.riot b/src/components/search-bar.riot index 06e546b..322ba31 100644 --- a/src/components/search-bar.riot +++ b/src/components/search-bar.riot @@ -1,5 +1,5 @@ - +