mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2025-04-29 00:19:54 +03:00
feat(theme): add support for dialogs
This commit is contained in:
parent
367ca0380c
commit
9b5b935637
10 changed files with 27 additions and 19 deletions
|
@ -18,14 +18,14 @@
|
||||||
<material-popup opened="{ props.opened }" onClick="{ props.onClose }">
|
<material-popup opened="{ props.opened }" onClick="{ props.onClose }">
|
||||||
<div class="material-popup-title">Add your Server ?</div>
|
<div class="material-popup-title">Add your Server ?</div>
|
||||||
<div class="material-popup-content">
|
<div class="material-popup-content">
|
||||||
<material-input onkeyup="{ onKeyUp }" label="Server URL" label-color="#666" valid="{ registryUrlValidator }"></material-input>
|
<material-input onkeyup="{ onKeyUp }" label="Server URL" text-color="var(--primary-text)" label-color="var(--neutral-text)" valid="{ registryUrlValidator }"></material-input>
|
||||||
<span>Write your URL without /v2</span>
|
<span>Write your URL without /v2</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="material-popup-action">
|
<div class="material-popup-action">
|
||||||
<material-button class="dialog-button" waves-color="rgba(158,158,158,.4)" onClick="{ add }" color="#000" inverted>
|
<material-button class="dialog-button" waves-color="var(--hover-background)" onClick="{ add }" color="inherit" text-color="var(--primary-text)">
|
||||||
Add
|
Add
|
||||||
</material-button>
|
</material-button>
|
||||||
<material-button class="dialog-button" waves-color="rgba(158,158,158,.4)" onClick="{ props.onClose }" color="#000" inverted>
|
<material-button class="dialog-button" waves-color="var(--hover-background)" onClick="{ props.onClose }" color="inherit" text-color="var(--primary-text)">
|
||||||
Cancel
|
Cancel
|
||||||
</material-button>
|
</material-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -23,10 +23,10 @@
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="material-popup-action">
|
<div class="material-popup-action">
|
||||||
<material-button class="dialog-button" waves-color="rgba(158,158,158,.4)" onClick="{ change }" color="#000" inverted>
|
<material-button class="dialog-button" waves-color="var(--hover-background)" onClick="{ change }" color="inherit" text-color="var(--primary-text)">
|
||||||
Change
|
Change
|
||||||
</material-button>
|
</material-button>
|
||||||
<material-button class="dialog-button" waves-color="rgba(158,158,158,.4)" onClick="{ props.onClose }" color="#000" inverted>
|
<material-button class="dialog-button" waves-color="var(--hover-background)" onClick="{ props.onClose }" color="inherit" text-color="var(--primary-text)">
|
||||||
Cancel
|
Cancel
|
||||||
</material-button>
|
</material-button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -70,6 +70,10 @@
|
||||||
-moz-appearance: none;
|
-moz-appearance: none;
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
margin: 1.5em 0;
|
margin: 1.5em 0;
|
||||||
|
color: var(--primary-text);
|
||||||
|
}
|
||||||
|
:host select option {
|
||||||
|
background-color: var(--background);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</change-registry-url>
|
</change-registry-url>
|
||||||
|
|
|
@ -23,10 +23,10 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="material-popup-action">
|
<div class="material-popup-action">
|
||||||
<material-button class="dialog-button" waves-color="rgba(158,158,158,.4)" onClick="{ deleteImages }" color="#000" inverted>
|
<material-button class="dialog-button" waves-color="var(--hover-background)" onClick="{ deleteImages }" color="inherit" text-color="var(--primary-text)">
|
||||||
Delete
|
Delete
|
||||||
</material-button>
|
</material-button>
|
||||||
<material-button class="dialog-button" waves-color="rgba(158,158,158,.4)" onClick="{ props.onClick }" color="#000" inverted>
|
<material-button class="dialog-button" waves-color="var(--hover-background)" onClick="{ props.onClick }" color="inherit" text-color="var(--primary-text)">
|
||||||
Cancel
|
Cancel
|
||||||
</material-button>
|
</material-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -105,10 +105,15 @@
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
:host > .material-dropdown-wrapper {
|
:host > .material-dropdown-wrapper {
|
||||||
color: #000;
|
color: var(--primary-text);
|
||||||
list-style-type: disc;
|
list-style-type: disc;
|
||||||
margin-block-start: 0.7em;
|
margin-block-start: 0.7em;
|
||||||
}
|
}
|
||||||
|
material-dropdown .material-dropdown-container,
|
||||||
|
material-dropdown .material-dropdown-container .material-dropdown-item {
|
||||||
|
background-color: var(--background);
|
||||||
|
color: var(--primary-text);
|
||||||
|
}
|
||||||
|
|
||||||
:host .material-dropdown-wrapper material-dropdown .material-dropdown-container {
|
:host .material-dropdown-wrapper material-dropdown .material-dropdown-container {
|
||||||
right: 0;
|
right: 0;
|
||||||
|
|
|
@ -24,9 +24,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
<material-button
|
<material-button
|
||||||
onClick="{ remove(url) }"
|
onClick="{ remove(url) }"
|
||||||
url="{ url }"
|
url="{ url }"
|
||||||
waves-color="rgba(158,158,158,.4)"
|
text-color="var(--neutral-text)"
|
||||||
|
color="inherit"
|
||||||
|
waves-color="var(--hover-background)"
|
||||||
waves-center="true"
|
waves-center="true"
|
||||||
inverted
|
|
||||||
icon
|
icon
|
||||||
>
|
>
|
||||||
<i class="material-icons">delete</i>
|
<i class="material-icons">delete</i>
|
||||||
|
@ -37,7 +38,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="material-popup-action">
|
<div class="material-popup-action">
|
||||||
<material-button class="dialog-button" waves-color="rgba(158,158,158,.4)" onClick="{ props.onClose }" color="#000" inverted>
|
<material-button class="dialog-button" waves-color="rgba(158,158,158,.4)" onClick="{ props.onClose }" color="inherit" text-color="var(--primary-text)">
|
||||||
Close
|
Close
|
||||||
</material-button>
|
</material-button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -59,9 +60,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
:host material-popup .popup material-button {
|
:host material-popup .popup material-button {
|
||||||
margin-right: 1em;
|
margin-right: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
:host material-popup .popup material-button .content i.material-icons {
|
|
||||||
color: #777;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
</remove-registry-url>
|
</remove-registry-url>
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<input style="display: none; width: 1px; height: 1px" value="{ getDockerCmd(props) }" />
|
<input style="display: none; width: 1px; height: 1px" value="{ getDockerCmd(props) }" />
|
||||||
<material-button
|
<material-button
|
||||||
text-color="var(--neutral-text)"
|
text-color="var(--neutral-text)"
|
||||||
color="var(--background)"
|
color="inherit"
|
||||||
waves-color="var(--hover-background)"
|
waves-color="var(--hover-background)"
|
||||||
waves-center="true"
|
waves-center="true"
|
||||||
onClick="{ copy }"
|
onClick="{ copy }"
|
||||||
|
|
|
@ -17,7 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
<remove-image>
|
<remove-image>
|
||||||
<material-button
|
<material-button
|
||||||
text-color="var(--neutral-text)"
|
text-color="var(--neutral-text)"
|
||||||
color="var(--background)"
|
color="inherit"
|
||||||
waves-color="var(--hover-background)"
|
waves-color="var(--hover-background)"
|
||||||
waves-center="true"
|
waves-center="true"
|
||||||
title="This will delete the image."
|
title="This will delete the image."
|
||||||
|
|
|
@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
<material-button
|
<material-button
|
||||||
title="{ buttonTittle() }"
|
title="{ buttonTittle() }"
|
||||||
text-color="var(--neutral-text)"
|
text-color="var(--neutral-text)"
|
||||||
color="var(--background)"
|
color="inherit"
|
||||||
waves-color="var(--hover-background)"
|
waves-color="var(--hover-background)"
|
||||||
waves-center="true"
|
waves-center="true"
|
||||||
href="{ routeToHistory() }"
|
href="{ routeToHistory() }"
|
||||||
|
|
|
@ -19,7 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
<div class="material-card-title-action">
|
<div class="material-card-title-action">
|
||||||
<material-button
|
<material-button
|
||||||
text-color="var(--neutral-text)"
|
text-color="var(--neutral-text)"
|
||||||
color="var(--background)"
|
color="inherit"
|
||||||
waves-color="var(--hover-background)"
|
waves-color="var(--hover-background)"
|
||||||
waves-center="true"
|
waves-center="true"
|
||||||
href="{ router.home() }"
|
href="{ router.home() }"
|
||||||
|
|
|
@ -324,6 +324,8 @@ material-snackbar .toast {
|
||||||
material-popup .popup > .content {
|
material-popup .popup > .content {
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
max-width: 450px;
|
max-width: 450px;
|
||||||
|
background-color: var(--background);
|
||||||
|
color: var(--primary-text);
|
||||||
}
|
}
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue