From 11373822240824036dd1a6278d0ae05699323f19 Mon Sep 17 00:00:00 2001 From: Michael Quested Date: Fri, 8 Dec 2023 10:23:31 +0000 Subject: [PATCH 1/3] Add disabled button styling --- src/components/StandardButton.svelte | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/StandardButton.svelte b/src/components/StandardButton.svelte index 16d4f39f0..6ca2b4de7 100644 --- a/src/components/StandardButton.svelte +++ b/src/components/StandardButton.svelte @@ -2,7 +2,7 @@ (c) 2023, Center for Computational Thinking and Design at Aarhus University and contributors SPDX-License-Identifier: MIT - --> +--> +
- loading + loading
diff --git a/src/components/bottom/ConnectedLiveGraphButtons.svelte b/src/components/bottom/ConnectedLiveGraphButtons.svelte index b729c2ea7..9a662e09e 100644 --- a/src/components/bottom/ConnectedLiveGraphButtons.svelte +++ b/src/components/bottom/ConnectedLiveGraphButtons.svelte @@ -9,6 +9,7 @@ import TypingUtils from '../../script/TypingUtils'; import { state } from '../../script/stores/uiStore'; import StandardButton from '../StandardButton.svelte'; + import loadingSpinnerImage from '../../imgs/loadingspinner.gif'; export let onOutputDisconnectButtonClicked: () => void; export let onInputDisconnectButtonClicked: () => void; @@ -25,7 +26,7 @@ >{$t('menu.model.disconnect')} {:else} - loading + loading {/if} {/if} @@ -37,7 +38,7 @@ >{$t('footer.disconnectButton')} {:else} - loading + loading {/if} diff --git a/src/components/connection-prompt/bluetooth/BluetoothConnectingDialog.svelte b/src/components/connection-prompt/bluetooth/BluetoothConnectingDialog.svelte index cf0abba94..9d4c93123 100644 --- a/src/components/connection-prompt/bluetooth/BluetoothConnectingDialog.svelte +++ b/src/components/connection-prompt/bluetooth/BluetoothConnectingDialog.svelte @@ -19,6 +19,7 @@ import { DeviceRequestStates } from '../../../script/stores/connectDialogStore'; import Environment from '../../../script/Environment'; import StaticConfiguration from '../../../StaticConfiguration'; + import loadingSpinnerImage from '../../../imgs/loadingspinner.gif'; // callbacks export let deviceState: DeviceRequestStates; @@ -114,7 +115,7 @@

{$t('connectMB.bluetooth.connecting')}

- loading + loading
{/if} diff --git a/src/components/connection-prompt/bluetooth/ConnectBatteryDialog.svelte b/src/components/connection-prompt/bluetooth/ConnectBatteryDialog.svelte index 034473e44..b1e4f7a97 100644 --- a/src/components/connection-prompt/bluetooth/ConnectBatteryDialog.svelte +++ b/src/components/connection-prompt/bluetooth/ConnectBatteryDialog.svelte @@ -7,6 +7,7 @@
@@ -16,7 +17,7 @@