+
{#if $$slots.title1}
"tab "+(selected ? "tab-selected" : "tab-unselected")}>
@@ -90,7 +90,7 @@
max-height: 100vh;
height: 100%;
}
-
+
:global(.tab) {
margin: 0.25rem;
padding: 0.25rem;
@@ -111,8 +111,12 @@
}
:global(.tab-selected) {
- background-color: rgb(59 130 246);
- color: rgb(255 255 255);
+ background-color: var(--catch-detail-color);
+ color: var(--catch-detail-color-contrast);
+ }
+
+ :global(.tab-selected svg) {
+ fill: var(--catch-detail-color-contrast);
}
:global(.tab-unselected) {
diff --git a/UI/BigComponents/AllDownloads.ts b/UI/BigComponents/AllDownloads.ts
index 20c454b7b7..175f635f46 100644
--- a/UI/BigComponents/AllDownloads.ts
+++ b/UI/BigComponents/AllDownloads.ts
@@ -1,13 +1,13 @@
import Combine from "../Base/Combine"
import Translations from "../i18n/Translations"
-import { UIEventSource } from "../../Logic/UIEventSource"
+import {UIEventSource} from "../../Logic/UIEventSource"
import Toggle from "../Input/Toggle"
-import { SubtleButton } from "../Base/SubtleButton"
+import {SubtleButton} from "../Base/SubtleButton"
import Svg from "../../Svg"
import ExportPDF from "../ExportPDF"
import FilteredLayer from "../../Models/FilteredLayer"
import LayoutConfig from "../../Models/ThemeConfig/LayoutConfig"
-import { BBox } from "../../Logic/BBox"
+import {BBox} from "../../Logic/BBox"
import Loc from "../../Models/Loc"
export default class AllDownloads extends SubtleButton {
@@ -35,7 +35,7 @@ export default class AllDownloads extends SubtleButton {
const loading = Svg.loading_svg().SetClass("animate-rotate")
const dloadTrans = Translations.t.general.download
- const icon = new Toggle(loading, Svg.floppy_ui(), isExporting)
+ const icon = new Toggle(loading, Svg.floppy_svg(), isExporting)
const text = new Toggle(
dloadTrans.exporting.Clone(),
new Combine([
diff --git a/UI/BigComponents/CopyrightPanel.ts b/UI/BigComponents/CopyrightPanel.ts
index f841c12387..3e8a3f4702 100644
--- a/UI/BigComponents/CopyrightPanel.ts
+++ b/UI/BigComponents/CopyrightPanel.ts
@@ -48,7 +48,7 @@ export class OpenIdEditor extends VariableUiElement {
const idLink = `https://www.openstreetmap.org/edit?editor=id${elementSelect}#map=${
mapProperties.zoom?.data ?? 0
}/${location?.lat ?? 0}/${location?.lon ?? 0}`
- return new SubtleButton(Svg.pencil_ui().SetStyle(iconStyle), t.editId, {
+ return new SubtleButton(Svg.pencil_svg().SetStyle(iconStyle), t.editId, {
url: idLink,
newTab: true,
})
@@ -81,7 +81,7 @@ export class OpenJosm extends Combine {
)
const toggle = new Toggle(
- new SubtleButton(Svg.josm_logo_ui().SetStyle(iconStyle), t.editJosm).onClick(() => {
+ new SubtleButton(Svg.josm_logo_svg().SetStyle(iconStyle), t.editJosm).onClick(() => {
const bbox = bounds.data
if (bbox === undefined) {
return
diff --git a/UI/BigComponents/CustomGeneratorButton.svelte b/UI/BigComponents/CustomGeneratorButton.svelte
index d420772a58..3f058354fe 100644
--- a/UI/BigComponents/CustomGeneratorButton.svelte
+++ b/UI/BigComponents/CustomGeneratorButton.svelte
@@ -1,38 +1,38 @@
- {#if $userDetails.csCount < Constants.userJourney.themeGeneratorReadOnlyUnlock}
-
- {t.requestATheme.toString()}
-
- {:else}
-
+ {t.requestATheme.toString()}
+
+ {:else}
+
-
-
+ >
+
+
- {t.createYourOwnTheme.toString()}
-
- {/if}
+ {t.createYourOwnTheme.toString()}
+
+ {/if}
diff --git a/UI/BigComponents/DownloadPanel.ts b/UI/BigComponents/DownloadPanel.ts
index 2cb856c8cc..c2beda38e6 100644
--- a/UI/BigComponents/DownloadPanel.ts
+++ b/UI/BigComponents/DownloadPanel.ts
@@ -28,7 +28,7 @@ export class DownloadPanel extends Toggle {
const metaisIncluded = includeMetaToggle.GetValue().map((selected) => selected.length > 0)
const buttonGeoJson = new SubtleButton(
- Svg.floppy_ui(),
+ Svg.floppy_svg(),
new Combine([
t.downloadGeojson.SetClass("font-bold"),
t.downloadGeoJsonHelper,
@@ -45,7 +45,7 @@ export class DownloadPanel extends Toggle {
})
const buttonCSV = new SubtleButton(
- Svg.floppy_ui(),
+ Svg.floppy_svg(),
new Combine([t.downloadCSV.SetClass("font-bold"), t.downloadCSVHelper]).SetClass(
"flex flex-col"
)
@@ -63,7 +63,7 @@ export class DownloadPanel extends Toggle {
})
const buttonSvg = new SubtleButton(
- Svg.floppy_ui(),
+ Svg.floppy_svg(),
new Combine([t.downloadAsSvg.SetClass("font-bold"), t.downloadAsSvgHelper]).SetClass(
"flex flex-col"
)
@@ -88,7 +88,7 @@ export class DownloadPanel extends Toggle {
})
const buttonPng = new SubtleButton(
- Svg.floppy_ui(),
+ Svg.floppy_svg(),
new Combine([t.downloadAsPng.SetClass("font-bold"), t.downloadAsPngHelper])
).OnClickWithLoading(t.exporting, async () => {
const gpsLayer = state.layerState.filteredLayers.get(
diff --git a/UI/BigComponents/ExtraLinkButton.ts b/UI/BigComponents/ExtraLinkButton.ts
index 80287c73fd..d08bb73a74 100644
--- a/UI/BigComponents/ExtraLinkButton.ts
+++ b/UI/BigComponents/ExtraLinkButton.ts
@@ -61,7 +61,7 @@ export default class ExtraLinkButton extends UIElement {
return Utils.SubstituteKeys(c.href, subs)
}, [this.state.mapProperties.zoom])
- let img: BaseUIElement = Svg.pop_out_ui()
+ let img: BaseUIElement = Svg.pop_out_svg()
if (c.icon !== undefined) {
img = new Img(c.icon).SetClass("h-6")
}
diff --git a/UI/BigComponents/Geosearch.svelte b/UI/BigComponents/Geosearch.svelte
index 12980f5aea..0ce04ea032 100644
--- a/UI/BigComponents/Geosearch.svelte
+++ b/UI/BigComponents/Geosearch.svelte
@@ -91,6 +91,6 @@
-
+
diff --git a/UI/BigComponents/MapillaryLink.ts b/UI/BigComponents/MapillaryLink.ts
index afae039408..df79b9bcb3 100644
--- a/UI/BigComponents/MapillaryLink.ts
+++ b/UI/BigComponents/MapillaryLink.ts
@@ -15,7 +15,7 @@ export class MapillaryLink extends VariableUiElement {
location?.lat ?? 0
}&lng=${location?.lon ?? 0}&z=${Math.max((location?.zoom ?? 2) - 1, 1)}`
return new SubtleButton(
- Svg.mapillary_black_ui().SetStyle(iconStyle),
+ Svg.mapillary_black_svg().SetStyle(iconStyle),
new Combine([t.openMapillary.SetClass("font-bold"), t.mapillaryHelp]).SetClass(
"flex flex-col link-no-underline"
),
diff --git a/UI/BigComponents/NoThemeResultButton.svelte b/UI/BigComponents/NoThemeResultButton.svelte
index f9a439c45f..3b15040f9c 100644
--- a/UI/BigComponents/NoThemeResultButton.svelte
+++ b/UI/BigComponents/NoThemeResultButton.svelte
@@ -33,7 +33,7 @@
-
+
{t.noSearch.toString()}
diff --git a/UI/BigComponents/ShareScreen.ts b/UI/BigComponents/ShareScreen.ts
index 3f9019c062..b102d97292 100644
--- a/UI/BigComponents/ShareScreen.ts
+++ b/UI/BigComponents/ShareScreen.ts
@@ -13,7 +13,7 @@ import {SubtleButton} from "../Base/SubtleButton"
import LZString from "lz-string"
import {SpecialVisualizationState} from "../SpecialVisualization"
-class ShareScreen extends Combine{
+export class ShareScreen extends Combine{
constructor(state: SpecialVisualizationState) {
const layout = state?.layout
const tr = Translations.t.general.sharescreen
diff --git a/UI/BigComponents/ThemesList.svelte b/UI/BigComponents/ThemesList.svelte
index 0cf72eb38d..43f82672de 100644
--- a/UI/BigComponents/ThemesList.svelte
+++ b/UI/BigComponents/ThemesList.svelte
@@ -1,14 +1,13 @@