From 46f4ce3890da36bb2b18e1b29d54a56af7883aeb Mon Sep 17 00:00:00 2001 From: Rizumu Ayaka Date: Fri, 12 Sep 2025 05:07:44 +0800 Subject: [PATCH] feat: style of progress bar in various scenarios (#5492) --- .../vueNodes/components/LGraphNode.vue | 40 +++++++++++++++---- 1 file changed, 32 insertions(+), 8 deletions(-) diff --git a/src/renderer/extensions/vueNodes/components/LGraphNode.vue b/src/renderer/extensions/vueNodes/components/LGraphNode.vue index bdaf28354..54632c087 100644 --- a/src/renderer/extensions/vueNodes/components/LGraphNode.vue +++ b/src/renderer/extensions/vueNodes/components/LGraphNode.vue @@ -12,12 +12,15 @@ 'lg-node absolute rounded-2xl', // border 'border border-solid border-sand-100 dark-theme:border-charcoal-300', + !!executing && 'border-blue-500 dark-theme:border-blue-500', !!error && 'border-red-700 dark-theme:border-red-300', // hover 'hover:ring-7 ring-gray-500/50 dark-theme:ring-gray-500/20', // Selected 'outline-transparent -outline-offset-2 outline-2', !!isSelected && 'outline-black dark-theme:outline-white', + !!(isSelected && executing) && + 'outline-blue-500 dark-theme:outline-blue-500', !!(isSelected && error) && 'outline-red-500 dark-theme:outline-red-500', { 'animate-pulse': executing, @@ -56,8 +59,35 @@ /> +
+ - - -
@@ -232,6 +255,7 @@ const hasCustomContent = computed(() => { // Computed classes and conditions for better reusability const separatorClasses = 'bg-sand-100 dark-theme:bg-charcoal-300 h-[1px] mx-0 w-full' +const progressClasses = 'h-2 bg-primary-500 transition-all duration-300' // Common condition computations to avoid repetition const shouldShowWidgets = computed(