From 7aa03b7245a648d51897bec887481b6a030d4afc Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Tue, 10 Sep 2024 15:15:27 -0400 Subject: [PATCH 1/6] Consume more tokens from core arches --- .../components/ControlledListsMain.vue | 8 ++--- .../components/editor/ImageMetadata.vue | 9 ++--- .../components/editor/ItemHeader.vue | 2 +- .../components/editor/ItemType.vue | 4 +-- .../components/editor/ItemURI.vue | 2 +- .../components/editor/ListCharacteristic.vue | 6 ++-- .../components/editor/ListCharacteristics.vue | 35 +++++++++---------- .../components/editor/ValueEditor.vue | 9 ++--- .../components/misc/ControlledListSplash.vue | 2 +- .../components/misc/ListHeader.vue | 2 +- .../components/tree/AddDeleteControls.vue | 4 +-- .../components/tree/TreeRow.vue | 2 +- 12 files changed, 41 insertions(+), 44 deletions(-) diff --git a/arches_references/src/arches_references/components/ControlledListsMain.vue b/arches_references/src/arches_references/components/ControlledListsMain.vue index fb7ccc4..406890e 100644 --- a/arches_references/src/arches_references/components/ControlledListsMain.vue +++ b/arches_references/src/arches_references/components/ControlledListsMain.vue @@ -65,14 +65,9 @@ provide(systemLanguageKey, systemLanguage); { @@ -370,7 +367,7 @@ const focusInput = () => { -
+
{ :deep(.p-datatable-column-title) { font-size: small; } + +i { + font-size: var(--p-icon-size); +} diff --git a/arches_references/src/arches_references/components/editor/ItemHeader.vue b/arches_references/src/arches_references/components/editor/ItemHeader.vue index df5819a..46e5d74 100644 --- a/arches_references/src/arches_references/components/editor/ItemHeader.vue +++ b/arches_references/src/arches_references/components/editor/ItemHeader.vue @@ -53,7 +53,7 @@ const iconLabel = (item: ControlledListItem) => { .item-header { display: inline-flex; align-items: center; - gap: 1rem; + gap: var(--p-content-gap); margin: 1rem 1rem 0rem 1rem; padding-bottom: 1rem; border-bottom: 1px solid; diff --git a/arches_references/src/arches_references/components/editor/ItemType.vue b/arches_references/src/arches_references/components/editor/ItemType.vue index 3cb44e7..bcd3387 100644 --- a/arches_references/src/arches_references/components/editor/ItemType.vue +++ b/arches_references/src/arches_references/components/editor/ItemType.vue @@ -58,14 +58,14 @@ const issuePatchItem = async () => { margin: 1rem 1rem 3rem 1rem; display: flex; flex-direction: column; - gap: 1rem; + gap: var(--p-content-gap); width: 100%; font-size: small; } .guide-switch { display: inline-flex; - gap: 1rem; + gap: var(--p-content-gap); align-items: center; } diff --git a/arches_references/src/arches_references/components/editor/ItemURI.vue b/arches_references/src/arches_references/components/editor/ItemURI.vue index d6d4125..e2e61a1 100644 --- a/arches_references/src/arches_references/components/editor/ItemURI.vue +++ b/arches_references/src/arches_references/components/editor/ItemURI.vue @@ -162,7 +162,7 @@ input { } .edit-controls i { - font-size: small; + font-size: var(--p-icon-size); padding: 0.5rem; } diff --git a/arches_references/src/arches_references/components/editor/ListCharacteristic.vue b/arches_references/src/arches_references/components/editor/ListCharacteristic.vue index 8ed4641..b34430e 100644 --- a/arches_references/src/arches_references/components/editor/ListCharacteristic.vue +++ b/arches_references/src/arches_references/components/editor/ListCharacteristic.vue @@ -97,7 +97,7 @@ const cancel = () => { :aria-label="$gettext('Edit')" @click="editing = true" @keyup.enter="editing = true" - /> + > { :aria-label="$gettext('Save edit')" @click="save" @keyup.enter="save" - /> + > { :aria-label="$gettext('Cancel edit')" @click="cancel" @keyup.enter="cancel" - /> + >
diff --git a/arches_references/src/arches_references/components/editor/ListCharacteristics.vue b/arches_references/src/arches_references/components/editor/ListCharacteristics.vue index 5df1a71..7f92174 100644 --- a/arches_references/src/arches_references/components/editor/ListCharacteristics.vue +++ b/arches_references/src/arches_references/components/editor/ListCharacteristics.vue @@ -36,21 +36,21 @@ const { $gettext } = useGettext(); :label="$gettext('Dynamic')" :style="{ width: '4rem' }" /> -

- {{ $gettext("List used by these nodes") }} -

-
-
- -
-
- {{ $gettext("None") }} +
+

{{ $gettext("List used by these nodes") }}

+
+
+ +
+
+ {{ $gettext("None") }} +
@@ -61,7 +61,7 @@ const { $gettext } = useGettext(); .controlled-list-header { display: inline-flex; align-items: center; - gap: 1rem; + gap: var(--p-content-gap); margin: 1rem 1rem 0rem 1rem; padding-bottom: 1rem; border-bottom: 1px solid; @@ -79,7 +79,6 @@ h3 { .nodes { display: flex; flex-wrap: wrap; - gap: 1rem; - margin: 1rem; + gap: var(--p-content-gap); } diff --git a/arches_references/src/arches_references/components/editor/ValueEditor.vue b/arches_references/src/arches_references/components/editor/ValueEditor.vue index 8278897..0748c17 100644 --- a/arches_references/src/arches_references/components/editor/ValueEditor.vue +++ b/arches_references/src/arches_references/components/editor/ValueEditor.vue @@ -361,21 +361,18 @@ const focusInput = () => { @@ -391,7 +388,7 @@ const focusInput = () => { :aria-label="$gettext('Delete')" @click="issueDeleteValue(slotProps.data)" @keyup.enter="issueDeleteValue(slotProps.data)" - /> + > @@ -412,6 +409,10 @@ h4 { margin-top: 0; } +i { + font-size: var(--p-icon-size); +} + p { font-weight: normal; margin-top: 0; diff --git a/arches_references/src/arches_references/components/misc/ControlledListSplash.vue b/arches_references/src/arches_references/components/misc/ControlledListSplash.vue index 7328a5a..e7da693 100644 --- a/arches_references/src/arches_references/components/misc/ControlledListSplash.vue +++ b/arches_references/src/arches_references/components/misc/ControlledListSplash.vue @@ -39,7 +39,7 @@ const { $gettext } = useGettext(); border: 1px solid #ddd; padding: 4rem 3rem; background: #f6f6f6; - border-radius: 0.5rem; + border-radius: var(--p-content-border-radius); display: flex; flex-direction: column; align-items: center; diff --git a/arches_references/src/arches_references/components/misc/ListHeader.vue b/arches_references/src/arches_references/components/misc/ListHeader.vue index 89b9c93..6e7e60b 100644 --- a/arches_references/src/arches_references/components/misc/ListHeader.vue +++ b/arches_references/src/arches_references/components/misc/ListHeader.vue @@ -65,7 +65,7 @@ const heading = computed(() => { .header { display: flex; align-items: center; - background: var(--p-navigation); + background: var(--p-navigation-color); color: white; } diff --git a/arches_references/src/arches_references/components/tree/AddDeleteControls.vue b/arches_references/src/arches_references/components/tree/AddDeleteControls.vue index b3b7cc4..5640586 100644 --- a/arches_references/src/arches_references/components/tree/AddDeleteControls.vue +++ b/arches_references/src/arches_references/components/tree/AddDeleteControls.vue @@ -204,12 +204,12 @@ const confirmDelete = () => { acceptProps: { label: $gettext("Delete"), severity: shouldUseContrast() ? CONTRAST : DANGER, - outlined: true, + style: { fontSize: "small" }, }, rejectProps: { label: $gettext("Cancel"), severity: shouldUseContrast() ? CONTRAST : SECONDARY, - outlined: true, + style: { fontSize: "small" }, }, accept: async () => { await deleteSelected().then(fetchListsAndPopulateTree); diff --git a/arches_references/src/arches_references/components/tree/TreeRow.vue b/arches_references/src/arches_references/components/tree/TreeRow.vue index 77611da..47b06ba 100644 --- a/arches_references/src/arches_references/components/tree/TreeRow.vue +++ b/arches_references/src/arches_references/components/tree/TreeRow.vue @@ -355,7 +355,7 @@ const acceptNewListShortcutEntry = async () => { diff --git a/arches_references/src/arches_references/components/misc/ListHeader.vue b/arches_references/src/arches_references/components/misc/ListHeader.vue index 6e7e60b..0f6f3a9 100644 --- a/arches_references/src/arches_references/components/misc/ListHeader.vue +++ b/arches_references/src/arches_references/components/misc/ListHeader.vue @@ -65,7 +65,7 @@ const heading = computed(() => { .header { display: flex; align-items: center; - background: var(--p-navigation-color); + background: var(--p-navigation-header-color); color: white; } diff --git a/arches_references/src/arches_references/components/tree/TreeRow.vue b/arches_references/src/arches_references/components/tree/TreeRow.vue index 47b06ba..77611da 100644 --- a/arches_references/src/arches_references/components/tree/TreeRow.vue +++ b/arches_references/src/arches_references/components/tree/TreeRow.vue @@ -355,7 +355,7 @@ const acceptNewListShortcutEntry = async () => {