From 14927497bdf5415184aa8113e8cec312681aeb4f Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sun, 7 May 2023 23:19:30 +0200 Subject: [PATCH] Styling: style menu- and theme-menu tabbed interface --- UI/Base/FloatOver.svelte | 43 ++++--- UI/Base/TabbedGroup.svelte | 170 +++++++++++++++++----------- UI/BigComponents/UserProfile.svelte | 8 +- UI/ThemeViewGUI.svelte | 43 ++++--- css/index-tailwind-output.css | 38 ++----- langs/en.json | 4 + 6 files changed, 181 insertions(+), 125 deletions(-) diff --git a/UI/Base/FloatOver.svelte b/UI/Base/FloatOver.svelte index af28c54c5..6cbb25155 100644 --- a/UI/Base/FloatOver.svelte +++ b/UI/Base/FloatOver.svelte @@ -1,20 +1,33 @@ -
-
- -
dispatch("close")}> - -
-
- -
+
+
+
+ +
+ + +
dispatch("close")}> + +
+
+
+ + + diff --git a/UI/Base/TabbedGroup.svelte b/UI/Base/TabbedGroup.svelte index 9f0d5e169..b0aae4b00 100644 --- a/UI/Base/TabbedGroup.svelte +++ b/UI/Base/TabbedGroup.svelte @@ -1,79 +1,121 @@ -{if(e.detail >= 0){tab.setData( e.detail); }} }> - - selected ? "tab-selected" : "tab-unselected"}> -
- - Tab 0 - -
-
- selected ? "tab-selected" : "tab-unselected"}> -
- -
-
- selected ? "tab-selected" : "tab-unselected"}> -
- -
-
- selected ? "tab-selected" : "tab-unselected"}> -
- -
-
- selected ? "tab-selected" : "tab-unselected"}> -
- -
-
-
- - - -
Empty
-
-
- - - - - - - - - - - - -
-
+
+ {if(e.detail >= 0){tab.setData( e.detail); }} }> +
+ + {#if $$slots.title1} + "tab "+(selected ? "tab-selected" : "tab-unselected")}> +
+ + Tab 0 + +
+
+ {/if} + {#if $$slots.title1} + "tab "+(selected ? "tab-selected" : "tab-unselected")}> +
+ +
+
+ {/if} + {#if $$slots.title2} + "tab "+(selected ? "tab-selected" : "tab-unselected")}> +
+ +
+
+ {/if} + {#if $$slots.title3} + "tab "+(selected ? "tab-selected" : "tab-unselected")}> +
+ +
+
+ {/if} + {#if $$slots.title4} + "tab "+(selected ? "tab-selected" : "tab-unselected")}> +
+ +
+
+ {/if} +
+ +
+
+ + + +
Empty
+
+
+ + + + + + + + + + + + +
+
+
+