From a51802c4874510f899ae26f8ce0cbeb8c510083b Mon Sep 17 00:00:00 2001 From: piexel Date: Sun, 15 Nov 2026 16:33:19 +0100 Subject: [PATCH] Use lucide icons across the studio - Add lucide-react and give every icon one shared size and stroke from a provider - Replace the IntelliJ-style SVG files and their loader with lucide components - Give every view id an icon, including caves, and a distinct fallback - Take icon colour from currentColor so the light and dark twins are gone --- studio/package-lock.json | 16 ++ studio/package.json | 1 + .../src/renderer/src/components/IdeIcon.tsx | 69 ------ .../src/components/ui/context-menu.tsx | 6 +- .../src/renderer/src/components/ui/dialog.tsx | 4 +- .../src/components/ui/dropdown-menu.tsx | 4 +- .../renderer/src/icons/LICENSE-APACHE-2.0.txt | 202 ------------------ studio/src/renderer/src/icons/NOTICE.txt | 6 - studio/src/renderer/src/icons/actualZoom.svg | 5 - .../renderer/src/icons/actualZoom_dark.svg | 5 - studio/src/renderer/src/icons/add.svg | 4 - studio/src/renderer/src/icons/add_dark.svg | 4 - studio/src/renderer/src/icons/blocks.svg | 4 - studio/src/renderer/src/icons/blocks_dark.svg | 4 - studio/src/renderer/src/icons/borders.svg | 3 - .../src/renderer/src/icons/borders_dark.svg | 3 - studio/src/renderer/src/icons/checked.svg | 4 - .../src/renderer/src/icons/checked_dark.svg | 4 - studio/src/renderer/src/icons/chevronLeft.svg | 4 - .../renderer/src/icons/chevronLeft_dark.svg | 4 - .../src/renderer/src/icons/chevronRight.svg | 4 - .../renderer/src/icons/chevronRight_dark.svg | 4 - studio/src/renderer/src/icons/closeSmall.svg | 4 - .../renderer/src/icons/closeSmall_dark.svg | 4 - studio/src/renderer/src/icons/decoration.svg | 5 - .../renderer/src/icons/decoration_dark.svg | 5 - studio/src/renderer/src/icons/delete.svg | 4 - studio/src/renderer/src/icons/delete_dark.svg | 4 - studio/src/renderer/src/icons/exit.svg | 5 - studio/src/renderer/src/icons/exit_dark.svg | 12 -- studio/src/renderer/src/icons/grid.svg | 7 - studio/src/renderer/src/icons/grid_dark.svg | 7 - studio/src/renderer/src/icons/groups.svg | 7 - studio/src/renderer/src/icons/groups_dark.svg | 7 - studio/src/renderer/src/icons/help.svg | 5 - studio/src/renderer/src/icons/help_dark.svg | 5 - studio/src/renderer/src/icons/lightning.svg | 4 - .../src/renderer/src/icons/lightning_dark.svg | 4 - studio/src/renderer/src/icons/locate.svg | 4 - studio/src/renderer/src/icons/locate_dark.svg | 4 - studio/src/renderer/src/icons/locked.svg | 4 - studio/src/renderer/src/icons/locked_dark.svg | 4 - studio/src/renderer/src/icons/memory.svg | 7 - studio/src/renderer/src/icons/memory_dark.svg | 7 - studio/src/renderer/src/icons/mob.svg | 6 - studio/src/renderer/src/icons/mob_dark.svg | 6 - studio/src/renderer/src/icons/redo.svg | 4 - studio/src/renderer/src/icons/redo_dark.svg | 4 - studio/src/renderer/src/icons/refresh.svg | 7 - .../src/renderer/src/icons/refresh_dark.svg | 7 - studio/src/renderer/src/icons/reset.svg | 4 - studio/src/renderer/src/icons/reset_dark.svg | 4 - studio/src/renderer/src/icons/search.svg | 5 - studio/src/renderer/src/icons/search_dark.svg | 5 - studio/src/renderer/src/icons/settings.svg | 4 - .../src/renderer/src/icons/settings_dark.svg | 4 - studio/src/renderer/src/icons/shading.svg | 4 - .../src/renderer/src/icons/shading_dark.svg | 4 - studio/src/renderer/src/icons/stopWatch.svg | 6 - .../src/renderer/src/icons/stopWatch_dark.svg | 6 - studio/src/renderer/src/icons/symlink.svg | 4 - .../src/renderer/src/icons/symlink_dark.svg | 4 - studio/src/renderer/src/icons/theme.svg | 4 - studio/src/renderer/src/icons/theme_dark.svg | 4 - studio/src/renderer/src/icons/undo.svg | 4 - studio/src/renderer/src/icons/undo_dark.svg | 4 - .../src/renderer/src/icons/views/biomes.svg | 8 - .../renderer/src/icons/views/biomes_dark.svg | 8 - .../src/icons/views/cave-profiles.svg | 4 - .../src/icons/views/cave-profiles_dark.svg | 4 - .../src/icons/views/fluid-profiles.svg | 3 - .../src/icons/views/fluid-profiles_dark.svg | 3 - .../src/icons/views/formation-profiles.svg | 4 - .../icons/views/formation-profiles_dark.svg | 4 - studio/src/renderer/src/icons/views/noise.svg | 3 - .../renderer/src/icons/views/noise_dark.svg | 3 - .../src/renderer/src/icons/views/objects.svg | 4 - .../renderer/src/icons/views/objects_dark.svg | 4 - .../src/renderer/src/icons/views/palettes.svg | 6 - .../src/icons/views/palettes_dark.svg | 6 - .../renderer/src/icons/views/procedural.svg | 7 - .../src/icons/views/procedural_dark.svg | 7 - .../src/renderer/src/icons/views/regions.svg | 4 - .../renderer/src/icons/views/regions_dark.svg | 4 - .../src/renderer/src/icons/views/rivers.svg | 4 - .../renderer/src/icons/views/rivers_dark.svg | 4 - .../renderer/src/icons/views/saved-world.svg | 4 - .../src/icons/views/saved-world_dark.svg | 4 - .../src/icons/views/tree-profiles.svg | 4 - .../src/icons/views/tree-profiles_dark.svg | 4 - .../src/renderer/src/icons/views/world-3d.svg | 4 - .../src/icons/views/world-3d_dark.svg | 4 - studio/src/renderer/src/icons/web.svg | 4 - studio/src/renderer/src/icons/web_dark.svg | 4 - studio/src/renderer/src/main.tsx | 12 +- studio/src/renderer/src/studio/BakeMeter.tsx | 4 +- .../src/renderer/src/studio/ConnectScreen.tsx | 8 +- .../src/renderer/src/studio/CurveEditor.tsx | 6 +- .../src/renderer/src/studio/EntryBrowser.tsx | 6 +- studio/src/renderer/src/studio/MapStudio.tsx | 4 +- studio/src/renderer/src/studio/NodePane.tsx | 8 +- studio/src/renderer/src/studio/NodeRows.tsx | 4 +- .../renderer/src/studio/NodeSettingRow.tsx | 10 +- .../src/renderer/src/studio/NoiseStudio.tsx | 8 +- .../src/renderer/src/studio/PatternStudio.tsx | 4 +- .../src/renderer/src/studio/PickInspector.tsx | 4 +- .../renderer/src/studio/ProfileFormPanel.tsx | 4 +- .../renderer/src/studio/SavedWorldStudio.tsx | 4 +- studio/src/renderer/src/studio/Sidebar.tsx | 12 +- studio/src/renderer/src/studio/StatusBar.tsx | 6 +- .../src/renderer/src/studio/StudioToolbar.tsx | 28 +-- studio/src/renderer/src/studio/ViewList.tsx | 98 ++++++--- 112 files changed, 154 insertions(+), 789 deletions(-) delete mode 100644 studio/src/renderer/src/components/IdeIcon.tsx delete mode 100644 studio/src/renderer/src/icons/LICENSE-APACHE-2.0.txt delete mode 100644 studio/src/renderer/src/icons/NOTICE.txt delete mode 100644 studio/src/renderer/src/icons/actualZoom.svg delete mode 100644 studio/src/renderer/src/icons/actualZoom_dark.svg delete mode 100644 studio/src/renderer/src/icons/add.svg delete mode 100644 studio/src/renderer/src/icons/add_dark.svg delete mode 100644 studio/src/renderer/src/icons/blocks.svg delete mode 100644 studio/src/renderer/src/icons/blocks_dark.svg delete mode 100644 studio/src/renderer/src/icons/borders.svg delete mode 100644 studio/src/renderer/src/icons/borders_dark.svg delete mode 100644 studio/src/renderer/src/icons/checked.svg delete mode 100644 studio/src/renderer/src/icons/checked_dark.svg delete mode 100644 studio/src/renderer/src/icons/chevronLeft.svg delete mode 100644 studio/src/renderer/src/icons/chevronLeft_dark.svg delete mode 100644 studio/src/renderer/src/icons/chevronRight.svg delete mode 100644 studio/src/renderer/src/icons/chevronRight_dark.svg delete mode 100644 studio/src/renderer/src/icons/closeSmall.svg delete mode 100644 studio/src/renderer/src/icons/closeSmall_dark.svg delete mode 100644 studio/src/renderer/src/icons/decoration.svg delete mode 100644 studio/src/renderer/src/icons/decoration_dark.svg delete mode 100644 studio/src/renderer/src/icons/delete.svg delete mode 100644 studio/src/renderer/src/icons/delete_dark.svg delete mode 100644 studio/src/renderer/src/icons/exit.svg delete mode 100644 studio/src/renderer/src/icons/exit_dark.svg delete mode 100644 studio/src/renderer/src/icons/grid.svg delete mode 100644 studio/src/renderer/src/icons/grid_dark.svg delete mode 100644 studio/src/renderer/src/icons/groups.svg delete mode 100644 studio/src/renderer/src/icons/groups_dark.svg delete mode 100644 studio/src/renderer/src/icons/help.svg delete mode 100644 studio/src/renderer/src/icons/help_dark.svg delete mode 100644 studio/src/renderer/src/icons/lightning.svg delete mode 100644 studio/src/renderer/src/icons/lightning_dark.svg delete mode 100644 studio/src/renderer/src/icons/locate.svg delete mode 100644 studio/src/renderer/src/icons/locate_dark.svg delete mode 100644 studio/src/renderer/src/icons/locked.svg delete mode 100644 studio/src/renderer/src/icons/locked_dark.svg delete mode 100644 studio/src/renderer/src/icons/memory.svg delete mode 100644 studio/src/renderer/src/icons/memory_dark.svg delete mode 100644 studio/src/renderer/src/icons/mob.svg delete mode 100644 studio/src/renderer/src/icons/mob_dark.svg delete mode 100644 studio/src/renderer/src/icons/redo.svg delete mode 100644 studio/src/renderer/src/icons/redo_dark.svg delete mode 100644 studio/src/renderer/src/icons/refresh.svg delete mode 100644 studio/src/renderer/src/icons/refresh_dark.svg delete mode 100644 studio/src/renderer/src/icons/reset.svg delete mode 100644 studio/src/renderer/src/icons/reset_dark.svg delete mode 100644 studio/src/renderer/src/icons/search.svg delete mode 100644 studio/src/renderer/src/icons/search_dark.svg delete mode 100644 studio/src/renderer/src/icons/settings.svg delete mode 100644 studio/src/renderer/src/icons/settings_dark.svg delete mode 100644 studio/src/renderer/src/icons/shading.svg delete mode 100644 studio/src/renderer/src/icons/shading_dark.svg delete mode 100644 studio/src/renderer/src/icons/stopWatch.svg delete mode 100644 studio/src/renderer/src/icons/stopWatch_dark.svg delete mode 100644 studio/src/renderer/src/icons/symlink.svg delete mode 100644 studio/src/renderer/src/icons/symlink_dark.svg delete mode 100644 studio/src/renderer/src/icons/theme.svg delete mode 100644 studio/src/renderer/src/icons/theme_dark.svg delete mode 100644 studio/src/renderer/src/icons/undo.svg delete mode 100644 studio/src/renderer/src/icons/undo_dark.svg delete mode 100644 studio/src/renderer/src/icons/views/biomes.svg delete mode 100644 studio/src/renderer/src/icons/views/biomes_dark.svg delete mode 100644 studio/src/renderer/src/icons/views/cave-profiles.svg delete mode 100644 studio/src/renderer/src/icons/views/cave-profiles_dark.svg delete mode 100644 studio/src/renderer/src/icons/views/fluid-profiles.svg delete mode 100644 studio/src/renderer/src/icons/views/fluid-profiles_dark.svg delete mode 100644 studio/src/renderer/src/icons/views/formation-profiles.svg delete mode 100644 studio/src/renderer/src/icons/views/formation-profiles_dark.svg delete mode 100644 studio/src/renderer/src/icons/views/noise.svg delete mode 100644 studio/src/renderer/src/icons/views/noise_dark.svg delete mode 100644 studio/src/renderer/src/icons/views/objects.svg delete mode 100644 studio/src/renderer/src/icons/views/objects_dark.svg delete mode 100644 studio/src/renderer/src/icons/views/palettes.svg delete mode 100644 studio/src/renderer/src/icons/views/palettes_dark.svg delete mode 100644 studio/src/renderer/src/icons/views/procedural.svg delete mode 100644 studio/src/renderer/src/icons/views/procedural_dark.svg delete mode 100644 studio/src/renderer/src/icons/views/regions.svg delete mode 100644 studio/src/renderer/src/icons/views/regions_dark.svg delete mode 100644 studio/src/renderer/src/icons/views/rivers.svg delete mode 100644 studio/src/renderer/src/icons/views/rivers_dark.svg delete mode 100644 studio/src/renderer/src/icons/views/saved-world.svg delete mode 100644 studio/src/renderer/src/icons/views/saved-world_dark.svg delete mode 100644 studio/src/renderer/src/icons/views/tree-profiles.svg delete mode 100644 studio/src/renderer/src/icons/views/tree-profiles_dark.svg delete mode 100644 studio/src/renderer/src/icons/views/world-3d.svg delete mode 100644 studio/src/renderer/src/icons/views/world-3d_dark.svg delete mode 100644 studio/src/renderer/src/icons/web.svg delete mode 100644 studio/src/renderer/src/icons/web_dark.svg diff --git a/studio/package-lock.json b/studio/package-lock.json index fec043457..56977d11d 100644 --- a/studio/package-lock.json +++ b/studio/package-lock.json @@ -11,6 +11,7 @@ "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "cn": "^0.5.2", + "lucide-react": "^1.73.0", "radix-ui": "^1.8.1", "react": "^19.3.1", "react-dom": "^19.3.1", @@ -3806,6 +3807,21 @@ "yallist": "^3.0.2" } }, + "node_modules/lucide-react": { + "version": "1.73.0", + "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-1.73.0.tgz", + "integrity": "sha512-fVOzGviL9mTfHenG1PbCfIceavyGlnpYNSYr+aGZHLRymAJ7DTP6KHuqt0uBkCKAoenr1UVkwSbDIYt2xIesEQ==", + "license": "ISC", + "peerDependencies": { + "@types/react": "*", + "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, "node_modules/magic-string": { "version": "1.4.5", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.4.5.tgz", diff --git a/studio/package.json b/studio/package.json index 4e8bae009..b888410d0 100644 --- a/studio/package.json +++ b/studio/package.json @@ -31,6 +31,7 @@ "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "cn": "^0.5.2", + "lucide-react": "^1.73.0", "radix-ui": "^1.8.1", "react": "^19.3.1", "react-dom": "^19.3.1", diff --git a/studio/src/renderer/src/components/IdeIcon.tsx b/studio/src/renderer/src/components/IdeIcon.tsx deleted file mode 100644 index 83bead22a..000000000 --- a/studio/src/renderer/src/components/IdeIcon.tsx +++ /dev/null @@ -1,69 +0,0 @@ -import { cn } from '@/lib/utils' - -// IntelliJ's expui icons and the studio's own drawn to match (see icons/NOTICE.txt): each has a light file and a "_dark" twin in its own colours. -const ICON_URLS = import.meta.glob('../icons/**/*.svg', { eager: true, query: '?url', import: 'default' }) -const DARK_SUFFIX = '_dark' - -export type IdeIconName = - | 'actualZoom' - | 'add' - | 'blocks' - | 'borders' - | 'checked' - | 'closeSmall' - | 'chevronLeft' - | 'chevronRight' - | 'decoration' - | 'delete' - | 'exit' - | 'grid' - | 'groups' - | 'help' - | 'lightning' - | 'locate' - | 'locked' - | 'memory' - | 'mob' - | 'redo' - | 'refresh' - | 'reset' - | 'search' - | 'settings' - | 'shading' - | 'stopWatch' - | 'symlink' - | 'theme' - | 'undo' - | 'web' - | 'views/biomes' - | 'views/cave-profiles' - | 'views/fluid-profiles' - | 'views/formation-profiles' - | 'views/tree-profiles' - | 'views/noise' - | 'views/objects' - | 'views/palettes' - | 'views/procedural' - | 'views/regions' - | 'views/rivers' - | 'views/saved-world' - | 'views/world-3d' - -function iconUrl(name: string): string { - const url = ICON_URLS[`../icons/${name}.svg`] - if (url === undefined) { - throw new Error(`No icon named ${name}`) - } - return url -} - -/** An IntelliJ icon, 16 px unless sized, in the light or dark colours the window shows. */ -export function IdeIcon({ name, className }: { name: IdeIconName; className?: string }): React.JSX.Element { - const size = cn('size-4 shrink-0', className) - return ( - <> - - - - ) -} diff --git a/studio/src/renderer/src/components/ui/context-menu.tsx b/studio/src/renderer/src/components/ui/context-menu.tsx index 2c427349a..3dbc666bb 100644 --- a/studio/src/renderer/src/components/ui/context-menu.tsx +++ b/studio/src/renderer/src/components/ui/context-menu.tsx @@ -1,6 +1,6 @@ import * as React from "react" import { cn } from "@/lib/utils" -import { IdeIcon } from "@/components/IdeIcon" +import { Check, ChevronRight } from "lucide-react" import { ContextMenu as ContextMenuPrimitive } from "radix-ui" function ContextMenu({ @@ -70,7 +70,7 @@ function ContextMenuSubTrigger({ > {children} - + ) @@ -154,7 +154,7 @@ function ContextMenuCheckboxItem({ > - + {children} diff --git a/studio/src/renderer/src/components/ui/dialog.tsx b/studio/src/renderer/src/components/ui/dialog.tsx index c024d32ea..514919e37 100644 --- a/studio/src/renderer/src/components/ui/dialog.tsx +++ b/studio/src/renderer/src/components/ui/dialog.tsx @@ -2,7 +2,7 @@ import * as React from "react" import { cn } from "@/lib/utils" -import { IdeIcon } from "@/components/IdeIcon" +import { X } from "lucide-react" import { Dialog as DialogPrimitive } from "radix-ui" import { Button } from "@/components/ui/button" @@ -72,7 +72,7 @@ function DialogContent({ data-slot="dialog-close" className="absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4" > - + Close )} diff --git a/studio/src/renderer/src/components/ui/dropdown-menu.tsx b/studio/src/renderer/src/components/ui/dropdown-menu.tsx index 70d71881a..56a8e372e 100644 --- a/studio/src/renderer/src/components/ui/dropdown-menu.tsx +++ b/studio/src/renderer/src/components/ui/dropdown-menu.tsx @@ -1,6 +1,6 @@ import * as React from "react" import { cn } from "@/lib/utils" -import { IdeIcon } from "@/components/IdeIcon" +import { ChevronRight } from "lucide-react" import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui" const MENU_SURFACE = @@ -45,7 +45,7 @@ function DropdownMenuSubTrigger({ className, children, ...props }: React.Compone {...props} > {children} - + ) } diff --git a/studio/src/renderer/src/icons/LICENSE-APACHE-2.0.txt b/studio/src/renderer/src/icons/LICENSE-APACHE-2.0.txt deleted file mode 100644 index d64569567..000000000 --- a/studio/src/renderer/src/icons/LICENSE-APACHE-2.0.txt +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/studio/src/renderer/src/icons/NOTICE.txt b/studio/src/renderer/src/icons/NOTICE.txt deleted file mode 100644 index e3d07cdd4..000000000 --- a/studio/src/renderer/src/icons/NOTICE.txt +++ /dev/null @@ -1,6 +0,0 @@ -The icons in this folder and its subfolders come from the IntelliJ Platform (https://github.com/JetBrains/intellij-community), -platform/icons/src/expui, Copyright 2000-2023 JetBrains s.r.o. and contributors, -used under the Apache License 2.0 (LICENSE-APACHE-2.0.txt). -memory.svg is profileMemory.svg with its profiling badge removed. -theme.svg, blocks.svg, borders.svg, shading.svg, mob.svg, actualZoom.svg, decoration.svg, and in views/ biomes.svg, regions.svg, -world-3d.svg, saved-world.svg, noise.svg and objects.svg are the studio's own, drawn to match. diff --git a/studio/src/renderer/src/icons/actualZoom.svg b/studio/src/renderer/src/icons/actualZoom.svg deleted file mode 100644 index 08981f5e8..000000000 --- a/studio/src/renderer/src/icons/actualZoom.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/studio/src/renderer/src/icons/actualZoom_dark.svg b/studio/src/renderer/src/icons/actualZoom_dark.svg deleted file mode 100644 index 0cc5f18b6..000000000 --- a/studio/src/renderer/src/icons/actualZoom_dark.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/studio/src/renderer/src/icons/add.svg b/studio/src/renderer/src/icons/add.svg deleted file mode 100644 index 57eaaf561..000000000 --- a/studio/src/renderer/src/icons/add.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/add_dark.svg b/studio/src/renderer/src/icons/add_dark.svg deleted file mode 100644 index 397e9321b..000000000 --- a/studio/src/renderer/src/icons/add_dark.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/blocks.svg b/studio/src/renderer/src/icons/blocks.svg deleted file mode 100644 index aa609f646..000000000 --- a/studio/src/renderer/src/icons/blocks.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/blocks_dark.svg b/studio/src/renderer/src/icons/blocks_dark.svg deleted file mode 100644 index d215432f4..000000000 --- a/studio/src/renderer/src/icons/blocks_dark.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/borders.svg b/studio/src/renderer/src/icons/borders.svg deleted file mode 100644 index 4fe3957a7..000000000 --- a/studio/src/renderer/src/icons/borders.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/studio/src/renderer/src/icons/borders_dark.svg b/studio/src/renderer/src/icons/borders_dark.svg deleted file mode 100644 index 2f7ce7863..000000000 --- a/studio/src/renderer/src/icons/borders_dark.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/studio/src/renderer/src/icons/checked.svg b/studio/src/renderer/src/icons/checked.svg deleted file mode 100644 index 863bbc418..000000000 --- a/studio/src/renderer/src/icons/checked.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/checked_dark.svg b/studio/src/renderer/src/icons/checked_dark.svg deleted file mode 100644 index 3e1d9ecc3..000000000 --- a/studio/src/renderer/src/icons/checked_dark.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/chevronLeft.svg b/studio/src/renderer/src/icons/chevronLeft.svg deleted file mode 100644 index c6c4fa041..000000000 --- a/studio/src/renderer/src/icons/chevronLeft.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/chevronLeft_dark.svg b/studio/src/renderer/src/icons/chevronLeft_dark.svg deleted file mode 100644 index d4284d234..000000000 --- a/studio/src/renderer/src/icons/chevronLeft_dark.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/chevronRight.svg b/studio/src/renderer/src/icons/chevronRight.svg deleted file mode 100644 index 5120ed891..000000000 --- a/studio/src/renderer/src/icons/chevronRight.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/chevronRight_dark.svg b/studio/src/renderer/src/icons/chevronRight_dark.svg deleted file mode 100644 index 838142106..000000000 --- a/studio/src/renderer/src/icons/chevronRight_dark.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/closeSmall.svg b/studio/src/renderer/src/icons/closeSmall.svg deleted file mode 100644 index c375b9331..000000000 --- a/studio/src/renderer/src/icons/closeSmall.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/closeSmall_dark.svg b/studio/src/renderer/src/icons/closeSmall_dark.svg deleted file mode 100644 index 237d6d45d..000000000 --- a/studio/src/renderer/src/icons/closeSmall_dark.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/decoration.svg b/studio/src/renderer/src/icons/decoration.svg deleted file mode 100644 index fb2a026ea..000000000 --- a/studio/src/renderer/src/icons/decoration.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/studio/src/renderer/src/icons/decoration_dark.svg b/studio/src/renderer/src/icons/decoration_dark.svg deleted file mode 100644 index 0e0b87790..000000000 --- a/studio/src/renderer/src/icons/decoration_dark.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/studio/src/renderer/src/icons/delete.svg b/studio/src/renderer/src/icons/delete.svg deleted file mode 100644 index a858096ac..000000000 --- a/studio/src/renderer/src/icons/delete.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/delete_dark.svg b/studio/src/renderer/src/icons/delete_dark.svg deleted file mode 100644 index 03ff9f241..000000000 --- a/studio/src/renderer/src/icons/delete_dark.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/exit.svg b/studio/src/renderer/src/icons/exit.svg deleted file mode 100644 index 8ff96d714..000000000 --- a/studio/src/renderer/src/icons/exit.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/studio/src/renderer/src/icons/exit_dark.svg b/studio/src/renderer/src/icons/exit_dark.svg deleted file mode 100644 index e4cdd4abf..000000000 --- a/studio/src/renderer/src/icons/exit_dark.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/studio/src/renderer/src/icons/grid.svg b/studio/src/renderer/src/icons/grid.svg deleted file mode 100644 index 8b28efaf4..000000000 --- a/studio/src/renderer/src/icons/grid.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/studio/src/renderer/src/icons/grid_dark.svg b/studio/src/renderer/src/icons/grid_dark.svg deleted file mode 100644 index 98f561847..000000000 --- a/studio/src/renderer/src/icons/grid_dark.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/studio/src/renderer/src/icons/groups.svg b/studio/src/renderer/src/icons/groups.svg deleted file mode 100644 index d4ab80fbb..000000000 --- a/studio/src/renderer/src/icons/groups.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/studio/src/renderer/src/icons/groups_dark.svg b/studio/src/renderer/src/icons/groups_dark.svg deleted file mode 100644 index 2769c3ce0..000000000 --- a/studio/src/renderer/src/icons/groups_dark.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/studio/src/renderer/src/icons/help.svg b/studio/src/renderer/src/icons/help.svg deleted file mode 100644 index 203346d24..000000000 --- a/studio/src/renderer/src/icons/help.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/studio/src/renderer/src/icons/help_dark.svg b/studio/src/renderer/src/icons/help_dark.svg deleted file mode 100644 index d571baabe..000000000 --- a/studio/src/renderer/src/icons/help_dark.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/studio/src/renderer/src/icons/lightning.svg b/studio/src/renderer/src/icons/lightning.svg deleted file mode 100644 index 4ac384edd..000000000 --- a/studio/src/renderer/src/icons/lightning.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/lightning_dark.svg b/studio/src/renderer/src/icons/lightning_dark.svg deleted file mode 100644 index 251f75413..000000000 --- a/studio/src/renderer/src/icons/lightning_dark.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/locate.svg b/studio/src/renderer/src/icons/locate.svg deleted file mode 100644 index 2343fa2e3..000000000 --- a/studio/src/renderer/src/icons/locate.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/locate_dark.svg b/studio/src/renderer/src/icons/locate_dark.svg deleted file mode 100644 index a2ba607aa..000000000 --- a/studio/src/renderer/src/icons/locate_dark.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/locked.svg b/studio/src/renderer/src/icons/locked.svg deleted file mode 100644 index 666daddf5..000000000 --- a/studio/src/renderer/src/icons/locked.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/locked_dark.svg b/studio/src/renderer/src/icons/locked_dark.svg deleted file mode 100644 index 9658ca553..000000000 --- a/studio/src/renderer/src/icons/locked_dark.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/memory.svg b/studio/src/renderer/src/icons/memory.svg deleted file mode 100644 index 6af68790d..000000000 --- a/studio/src/renderer/src/icons/memory.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/studio/src/renderer/src/icons/memory_dark.svg b/studio/src/renderer/src/icons/memory_dark.svg deleted file mode 100644 index 92038e383..000000000 --- a/studio/src/renderer/src/icons/memory_dark.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/studio/src/renderer/src/icons/mob.svg b/studio/src/renderer/src/icons/mob.svg deleted file mode 100644 index bcd9e1a0e..000000000 --- a/studio/src/renderer/src/icons/mob.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/studio/src/renderer/src/icons/mob_dark.svg b/studio/src/renderer/src/icons/mob_dark.svg deleted file mode 100644 index f1b911136..000000000 --- a/studio/src/renderer/src/icons/mob_dark.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/studio/src/renderer/src/icons/redo.svg b/studio/src/renderer/src/icons/redo.svg deleted file mode 100644 index 862b8f574..000000000 --- a/studio/src/renderer/src/icons/redo.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/redo_dark.svg b/studio/src/renderer/src/icons/redo_dark.svg deleted file mode 100644 index a39093042..000000000 --- a/studio/src/renderer/src/icons/redo_dark.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/refresh.svg b/studio/src/renderer/src/icons/refresh.svg deleted file mode 100644 index 7a4c73dfd..000000000 --- a/studio/src/renderer/src/icons/refresh.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/studio/src/renderer/src/icons/refresh_dark.svg b/studio/src/renderer/src/icons/refresh_dark.svg deleted file mode 100644 index 3362992af..000000000 --- a/studio/src/renderer/src/icons/refresh_dark.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/studio/src/renderer/src/icons/reset.svg b/studio/src/renderer/src/icons/reset.svg deleted file mode 100644 index de5d2b170..000000000 --- a/studio/src/renderer/src/icons/reset.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/reset_dark.svg b/studio/src/renderer/src/icons/reset_dark.svg deleted file mode 100644 index 28d58e10e..000000000 --- a/studio/src/renderer/src/icons/reset_dark.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/search.svg b/studio/src/renderer/src/icons/search.svg deleted file mode 100644 index 021b0c394..000000000 --- a/studio/src/renderer/src/icons/search.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/studio/src/renderer/src/icons/search_dark.svg b/studio/src/renderer/src/icons/search_dark.svg deleted file mode 100644 index d5a82d9c1..000000000 --- a/studio/src/renderer/src/icons/search_dark.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/studio/src/renderer/src/icons/settings.svg b/studio/src/renderer/src/icons/settings.svg deleted file mode 100644 index c30de8209..000000000 --- a/studio/src/renderer/src/icons/settings.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/settings_dark.svg b/studio/src/renderer/src/icons/settings_dark.svg deleted file mode 100644 index 62f328167..000000000 --- a/studio/src/renderer/src/icons/settings_dark.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/shading.svg b/studio/src/renderer/src/icons/shading.svg deleted file mode 100644 index c545e1d8b..000000000 --- a/studio/src/renderer/src/icons/shading.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/shading_dark.svg b/studio/src/renderer/src/icons/shading_dark.svg deleted file mode 100644 index cc2b121d0..000000000 --- a/studio/src/renderer/src/icons/shading_dark.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/stopWatch.svg b/studio/src/renderer/src/icons/stopWatch.svg deleted file mode 100644 index 33f0d5917..000000000 --- a/studio/src/renderer/src/icons/stopWatch.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/studio/src/renderer/src/icons/stopWatch_dark.svg b/studio/src/renderer/src/icons/stopWatch_dark.svg deleted file mode 100644 index 10bec586b..000000000 --- a/studio/src/renderer/src/icons/stopWatch_dark.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/studio/src/renderer/src/icons/symlink.svg b/studio/src/renderer/src/icons/symlink.svg deleted file mode 100644 index 4c2ccbb21..000000000 --- a/studio/src/renderer/src/icons/symlink.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/symlink_dark.svg b/studio/src/renderer/src/icons/symlink_dark.svg deleted file mode 100644 index fcc2390a9..000000000 --- a/studio/src/renderer/src/icons/symlink_dark.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/theme.svg b/studio/src/renderer/src/icons/theme.svg deleted file mode 100644 index 3f4ab8713..000000000 --- a/studio/src/renderer/src/icons/theme.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/theme_dark.svg b/studio/src/renderer/src/icons/theme_dark.svg deleted file mode 100644 index 375b1b72c..000000000 --- a/studio/src/renderer/src/icons/theme_dark.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/undo.svg b/studio/src/renderer/src/icons/undo.svg deleted file mode 100644 index 7a98c7583..000000000 --- a/studio/src/renderer/src/icons/undo.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/undo_dark.svg b/studio/src/renderer/src/icons/undo_dark.svg deleted file mode 100644 index 2fa3c0d42..000000000 --- a/studio/src/renderer/src/icons/undo_dark.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/views/biomes.svg b/studio/src/renderer/src/icons/views/biomes.svg deleted file mode 100644 index 78c98d754..000000000 --- a/studio/src/renderer/src/icons/views/biomes.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/studio/src/renderer/src/icons/views/biomes_dark.svg b/studio/src/renderer/src/icons/views/biomes_dark.svg deleted file mode 100644 index 731013503..000000000 --- a/studio/src/renderer/src/icons/views/biomes_dark.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/studio/src/renderer/src/icons/views/cave-profiles.svg b/studio/src/renderer/src/icons/views/cave-profiles.svg deleted file mode 100644 index 237f5e687..000000000 --- a/studio/src/renderer/src/icons/views/cave-profiles.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/views/cave-profiles_dark.svg b/studio/src/renderer/src/icons/views/cave-profiles_dark.svg deleted file mode 100644 index 65b25848d..000000000 --- a/studio/src/renderer/src/icons/views/cave-profiles_dark.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/views/fluid-profiles.svg b/studio/src/renderer/src/icons/views/fluid-profiles.svg deleted file mode 100644 index 58443c12b..000000000 --- a/studio/src/renderer/src/icons/views/fluid-profiles.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/studio/src/renderer/src/icons/views/fluid-profiles_dark.svg b/studio/src/renderer/src/icons/views/fluid-profiles_dark.svg deleted file mode 100644 index 1e15e5ae5..000000000 --- a/studio/src/renderer/src/icons/views/fluid-profiles_dark.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/studio/src/renderer/src/icons/views/formation-profiles.svg b/studio/src/renderer/src/icons/views/formation-profiles.svg deleted file mode 100644 index 081586c7f..000000000 --- a/studio/src/renderer/src/icons/views/formation-profiles.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/views/formation-profiles_dark.svg b/studio/src/renderer/src/icons/views/formation-profiles_dark.svg deleted file mode 100644 index 28ebb7862..000000000 --- a/studio/src/renderer/src/icons/views/formation-profiles_dark.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/views/noise.svg b/studio/src/renderer/src/icons/views/noise.svg deleted file mode 100644 index e735984cf..000000000 --- a/studio/src/renderer/src/icons/views/noise.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/studio/src/renderer/src/icons/views/noise_dark.svg b/studio/src/renderer/src/icons/views/noise_dark.svg deleted file mode 100644 index 187dd72f4..000000000 --- a/studio/src/renderer/src/icons/views/noise_dark.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/studio/src/renderer/src/icons/views/objects.svg b/studio/src/renderer/src/icons/views/objects.svg deleted file mode 100644 index 6297b050c..000000000 --- a/studio/src/renderer/src/icons/views/objects.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/views/objects_dark.svg b/studio/src/renderer/src/icons/views/objects_dark.svg deleted file mode 100644 index 4e3d96e86..000000000 --- a/studio/src/renderer/src/icons/views/objects_dark.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/views/palettes.svg b/studio/src/renderer/src/icons/views/palettes.svg deleted file mode 100644 index 67e265433..000000000 --- a/studio/src/renderer/src/icons/views/palettes.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/studio/src/renderer/src/icons/views/palettes_dark.svg b/studio/src/renderer/src/icons/views/palettes_dark.svg deleted file mode 100644 index 8d120c93e..000000000 --- a/studio/src/renderer/src/icons/views/palettes_dark.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/studio/src/renderer/src/icons/views/procedural.svg b/studio/src/renderer/src/icons/views/procedural.svg deleted file mode 100644 index 5ad2cdb16..000000000 --- a/studio/src/renderer/src/icons/views/procedural.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/studio/src/renderer/src/icons/views/procedural_dark.svg b/studio/src/renderer/src/icons/views/procedural_dark.svg deleted file mode 100644 index 3c5f7ed0d..000000000 --- a/studio/src/renderer/src/icons/views/procedural_dark.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/studio/src/renderer/src/icons/views/regions.svg b/studio/src/renderer/src/icons/views/regions.svg deleted file mode 100644 index f2848a5ee..000000000 --- a/studio/src/renderer/src/icons/views/regions.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/views/regions_dark.svg b/studio/src/renderer/src/icons/views/regions_dark.svg deleted file mode 100644 index f28c07a18..000000000 --- a/studio/src/renderer/src/icons/views/regions_dark.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/views/rivers.svg b/studio/src/renderer/src/icons/views/rivers.svg deleted file mode 100644 index a38c67edb..000000000 --- a/studio/src/renderer/src/icons/views/rivers.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/views/rivers_dark.svg b/studio/src/renderer/src/icons/views/rivers_dark.svg deleted file mode 100644 index 5ca99ca0e..000000000 --- a/studio/src/renderer/src/icons/views/rivers_dark.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/views/saved-world.svg b/studio/src/renderer/src/icons/views/saved-world.svg deleted file mode 100644 index ba35672af..000000000 --- a/studio/src/renderer/src/icons/views/saved-world.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/views/saved-world_dark.svg b/studio/src/renderer/src/icons/views/saved-world_dark.svg deleted file mode 100644 index f9880f87b..000000000 --- a/studio/src/renderer/src/icons/views/saved-world_dark.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/views/tree-profiles.svg b/studio/src/renderer/src/icons/views/tree-profiles.svg deleted file mode 100644 index ade20e40c..000000000 --- a/studio/src/renderer/src/icons/views/tree-profiles.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/views/tree-profiles_dark.svg b/studio/src/renderer/src/icons/views/tree-profiles_dark.svg deleted file mode 100644 index e1e79850a..000000000 --- a/studio/src/renderer/src/icons/views/tree-profiles_dark.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/views/world-3d.svg b/studio/src/renderer/src/icons/views/world-3d.svg deleted file mode 100644 index 233fbbd78..000000000 --- a/studio/src/renderer/src/icons/views/world-3d.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/views/world-3d_dark.svg b/studio/src/renderer/src/icons/views/world-3d_dark.svg deleted file mode 100644 index 46f0ee93d..000000000 --- a/studio/src/renderer/src/icons/views/world-3d_dark.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/web.svg b/studio/src/renderer/src/icons/web.svg deleted file mode 100644 index 897fab392..000000000 --- a/studio/src/renderer/src/icons/web.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/icons/web_dark.svg b/studio/src/renderer/src/icons/web_dark.svg deleted file mode 100644 index 0ca6194ab..000000000 --- a/studio/src/renderer/src/icons/web_dark.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/studio/src/renderer/src/main.tsx b/studio/src/renderer/src/main.tsx index 3ea6345e0..4ba5fffc5 100644 --- a/studio/src/renderer/src/main.tsx +++ b/studio/src/renderer/src/main.tsx @@ -1,13 +1,19 @@ +import { LucideProvider } from 'lucide-react' import { StrictMode } from 'react' import { createRoot } from 'react-dom/client' import { TooltipProvider } from '@/components/ui/tooltip' import { App } from './App' import './styles.css' +const ICON_SIZE_PX = 16 +const ICON_STROKE_PX = 1.5 + createRoot(document.getElementById('root')!).render( - - - + + + + + ) diff --git a/studio/src/renderer/src/studio/BakeMeter.tsx b/studio/src/renderer/src/studio/BakeMeter.tsx index 424837d12..d15544053 100644 --- a/studio/src/renderer/src/studio/BakeMeter.tsx +++ b/studio/src/renderer/src/studio/BakeMeter.tsx @@ -1,4 +1,4 @@ -import { IdeIcon } from '@/components/IdeIcon' +import { Timer } from 'lucide-react' import { useEffect, useState } from 'react' import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip' import { cn } from '@/lib/utils' @@ -49,7 +49,7 @@ export function BakeMeter({ timing }: BakeMeterProps): React.JSX.Element {
- + {timing === null ? MEASURING_LABEL : weight.label} diff --git a/studio/src/renderer/src/studio/ConnectScreen.tsx b/studio/src/renderer/src/studio/ConnectScreen.tsx index b6fc69fe5..b10381432 100644 --- a/studio/src/renderer/src/studio/ConnectScreen.tsx +++ b/studio/src/renderer/src/studio/ConnectScreen.tsx @@ -1,5 +1,5 @@ import { useEffect, useRef, useState } from 'react' -import { IdeIcon } from '@/components/IdeIcon' +import { Globe, RefreshCw } from 'lucide-react' import { Button } from '@/components/ui/button' import { Input } from '@/components/ui/input' import type { BridgeConnection } from '../../../shared/bridge' @@ -56,7 +56,7 @@ export function ConnectScreen({ connecting, error, onConnect, onLink }: ConnectS
{bridges.length === 0 ? (
- Waiting for a server on this machine + Waiting for a server on this machine
) : ( bridges.map((bridge) => ( @@ -66,7 +66,7 @@ export function ConnectScreen({ connecting, error, onConnect, onLink }: ConnectS onClick={() => onConnect(bridge)} className="flex items-center gap-3 rounded-md px-3 py-2 text-left hover:bg-accent disabled:opacity-60" > - + {bridge.world} port {bridge.port} @@ -83,7 +83,7 @@ export function ConnectScreen({ connecting, error, onConnect, onLink }: ConnectS > setLink(event.target.value)} placeholder="iris-studio://…" className="h-8" /> {error !== null &&

{error}

} diff --git a/studio/src/renderer/src/studio/CurveEditor.tsx b/studio/src/renderer/src/studio/CurveEditor.tsx index cc236074e..fbff016cf 100644 --- a/studio/src/renderer/src/studio/CurveEditor.tsx +++ b/studio/src/renderer/src/studio/CurveEditor.tsx @@ -1,4 +1,4 @@ -import { IdeIcon } from '@/components/IdeIcon' +import { Plus, Trash2 } from 'lucide-react' import { useRef, useState } from 'react' import { Button } from '@/components/ui/button' import { Input } from '@/components/ui/input' @@ -192,12 +192,12 @@ function PointsForm({ keys, locked, onWrite }: { keys: Keyframe[]; locked: boole next !== undefined && onWrite(withKeyframe(keys, index, [next, value]))} /> next !== undefined && onWrite(withKeyframe(keys, index, [t, next]))} />
))}
) diff --git a/studio/src/renderer/src/studio/EntryBrowser.tsx b/studio/src/renderer/src/studio/EntryBrowser.tsx index 71673396a..a99928c76 100644 --- a/studio/src/renderer/src/studio/EntryBrowser.tsx +++ b/studio/src/renderer/src/studio/EntryBrowser.tsx @@ -1,4 +1,4 @@ -import { IdeIcon } from '@/components/IdeIcon' +import { ChevronRight, Plus } from 'lucide-react' import { useEffect, useMemo, useState } from 'react' import { Button } from '@/components/ui/button' import { ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuTrigger } from '@/components/ui/context-menu' @@ -73,7 +73,7 @@ export function EntryBrowser({ title, entries, current, onSelect, fileActions, c

{title}

{fileActions !== undefined && ( )} @@ -172,7 +172,7 @@ function FolderBranch({ folder, depth, context }: { folder: FolderNode; depth: n className="flex h-[26px] w-full items-center gap-1 rounded-md px-2 text-left hover:bg-accent" style={{ paddingLeft: indentOf(depth) }} > - + {folder.name} {NUMBER.format(folder.size)} diff --git a/studio/src/renderer/src/studio/MapStudio.tsx b/studio/src/renderer/src/studio/MapStudio.tsx index 25fadf8db..03d599ab0 100644 --- a/studio/src/renderer/src/studio/MapStudio.tsx +++ b/studio/src/renderer/src/studio/MapStudio.tsx @@ -5,7 +5,7 @@ import type { MapHover, MapLabel, Marker, ModuleViewInfo, PickDisplay, ServerUsa import type { Share } from '../map/census' import type { MapController, MapStatus, MapToggles } from '../map/MapController' import type { Highlight } from '../map/tileStyle' -import { IdeIcon } from '@/components/IdeIcon' +import { Waves } from 'lucide-react' import { HelpDialog } from './HelpDialog' import { HoverCard } from './HoverCard' import { Legend } from './Legend' @@ -280,7 +280,7 @@ export function MapStudio({ client, world, theme, onDisconnect }: MapStudioProps {viewId === 'rivers' && !world.hydrology && (
- +

No rivers planned

Enable hydrology in

dimensions/{world.dimension}.json

diff --git a/studio/src/renderer/src/studio/NodePane.tsx b/studio/src/renderer/src/studio/NodePane.tsx index 60f9dcbcf..cdb5e20c9 100644 --- a/studio/src/renderer/src/studio/NodePane.tsx +++ b/studio/src/renderer/src/studio/NodePane.tsx @@ -1,4 +1,4 @@ -import { IdeIcon } from '@/components/IdeIcon' +import { Lock, Redo2, Undo2 } from 'lucide-react' import { useEffect, useRef } from 'react' import { Button } from '@/components/ui/button' import type { GraphNode } from '../bridge/types' @@ -37,16 +37,16 @@ export function NodePane({ editor, entryKey, values, suggestions, selected, onSe {!locked && Right-click to add or delete · Drag a ring onto a node to regrow · {keyText('undo')} undoes} {state?.locked != null && ( - + Read only )} {editor.saving && Saving…}
diff --git a/studio/src/renderer/src/studio/NodeRows.tsx b/studio/src/renderer/src/studio/NodeRows.tsx index 0dee257fe..da625d8ea 100644 --- a/studio/src/renderer/src/studio/NodeRows.tsx +++ b/studio/src/renderer/src/studio/NodeRows.tsx @@ -1,4 +1,4 @@ -import { IdeIcon } from '@/components/IdeIcon' +import { ChevronRight } from 'lucide-react' import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from '@/components/ui/dropdown-menu' import { cn } from '@/lib/utils' import type { SettingOption } from '../bridge/types' @@ -51,7 +51,7 @@ function FoldRow({ fold, open, editable }: { fold: SettingsFold; open: boolean; style={{ paddingLeft: (fold.depth - 1) * ROW_INDENT }} onClick={() => onToggleFold(idOfFold(fold))} > - + {fold.kind === 'item' ? `#${fold.title}` : fold.title} {showsSummary && {fold.summary}} diff --git a/studio/src/renderer/src/studio/NodeSettingRow.tsx b/studio/src/renderer/src/studio/NodeSettingRow.tsx index a0b1543d8..6b552555a 100644 --- a/studio/src/renderer/src/studio/NodeSettingRow.tsx +++ b/studio/src/renderer/src/studio/NodeSettingRow.tsx @@ -1,4 +1,4 @@ -import { IdeIcon } from '@/components/IdeIcon' +import { Check, ChevronDown } from 'lucide-react' import { useRef, useState } from 'react' import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from '@/components/ui/dropdown-menu' import { Popover, PopoverAnchor, PopoverContent } from '@/components/ui/popover' @@ -114,11 +114,7 @@ function CheckValue({ row, editable }: SettingRowProps): React.JSX.Element { className={cn('flex size-3.5 items-center justify-center rounded-[4px] border', checked ? 'border-primary bg-primary' : 'border-input bg-muted', editable && 'hover:border-primary', row.value === undefined && 'opacity-60')} onClick={() => onEdit({ op: 'set', object: row.fold.path, key: row.option.name, literal: String(!checked) })} > - {checked && ( - - - - )} + {checked && } ) } @@ -132,7 +128,7 @@ function ChoiceValue({ row, editable }: SettingRowProps): React.JSX.Element { diff --git a/studio/src/renderer/src/studio/NoiseStudio.tsx b/studio/src/renderer/src/studio/NoiseStudio.tsx index 8d9ad0284..21e8243d6 100644 --- a/studio/src/renderer/src/studio/NoiseStudio.tsx +++ b/studio/src/renderer/src/studio/NoiseStudio.tsx @@ -1,4 +1,4 @@ -import { IdeIcon } from '@/components/IdeIcon' +import { RefreshCw, RotateCcw, Search } from 'lucide-react' import { useCallback, useEffect, useMemo, useRef, useState } from 'react' import { Button } from '@/components/ui/button' import { Input } from '@/components/ui/input' @@ -92,7 +92,7 @@ export function NoiseStudio({ title, client, packRevision, onSummary, tell }: No {display === 'terrain' && source?.blockRange === null && } {display === 'flat' && ( )} @@ -166,7 +166,7 @@ function SeedField({ seed, usesSeed, onChange }: { seed: string; usesSeed: boole onKeyDown={(event) => event.key === 'Enter' && commit()} />
{!usesSeed &&

Keeps the world's seed

} @@ -232,7 +232,7 @@ function SourceList({ sources, current, onSelect }: { sources: NoiseSource[]; cu
- + setFilter(event.target.value)} />
diff --git a/studio/src/renderer/src/studio/PatternStudio.tsx b/studio/src/renderer/src/studio/PatternStudio.tsx index dd6a4543d..f3f590b55 100644 --- a/studio/src/renderer/src/studio/PatternStudio.tsx +++ b/studio/src/renderer/src/studio/PatternStudio.tsx @@ -1,4 +1,4 @@ -import { IdeIcon } from '@/components/IdeIcon' +import { RotateCcw } from 'lucide-react' import { useCallback, useEffect, useMemo, useRef, useState } from 'react' import { Button } from '@/components/ui/button' import { ScrollArea } from '@/components/ui/scroll-area' @@ -70,7 +70,7 @@ export function PatternStudio({ client, view, packRevision, onSummary, tell }: P chooseDepth(depth - 1)} onOn={() => chooseDepth(depth + 1)} /> )} } diff --git a/studio/src/renderer/src/studio/PickInspector.tsx b/studio/src/renderer/src/studio/PickInspector.tsx index d1a007d4f..923caae53 100644 --- a/studio/src/renderer/src/studio/PickInspector.tsx +++ b/studio/src/renderer/src/studio/PickInspector.tsx @@ -1,4 +1,4 @@ -import { IdeIcon } from '@/components/IdeIcon' +import { ChevronRight } from 'lucide-react' import { useState } from 'react' import { ScrollArea } from '@/components/ui/scroll-area' import { ToggleGroup, ToggleGroupItem } from '@/components/ui/toggle-group' @@ -92,7 +92,7 @@ function RegionSection({ section, open, onToggle }: { section: PickSection; open return (
diff --git a/studio/src/renderer/src/studio/SavedWorldStudio.tsx b/studio/src/renderer/src/studio/SavedWorldStudio.tsx index 51058ed23..517261086 100644 --- a/studio/src/renderer/src/studio/SavedWorldStudio.tsx +++ b/studio/src/renderer/src/studio/SavedWorldStudio.tsx @@ -1,4 +1,4 @@ -import { IdeIcon } from '@/components/IdeIcon' +import { RefreshCw } from 'lucide-react' import { useEffect, useMemo, useRef, useState } from 'react' import { Button } from '@/components/ui/button' import { ScrollArea } from '@/components/ui/scroll-area' @@ -107,7 +107,7 @@ export function SavedWorldStudio({ title, client, world, onSummary, onProgress, } diff --git a/studio/src/renderer/src/studio/Sidebar.tsx b/studio/src/renderer/src/studio/Sidebar.tsx index 51bb1aa8a..441bc1cdd 100644 --- a/studio/src/renderer/src/studio/Sidebar.tsx +++ b/studio/src/renderer/src/studio/Sidebar.tsx @@ -1,6 +1,6 @@ import { createContext, useContext } from 'react' import { createPortal } from 'react-dom' -import { IdeIcon, type IdeIconName } from '@/components/IdeIcon' +import { ChevronLeft, ChevronRight, type LucideIcon } from 'lucide-react' import { Button } from '@/components/ui/button' import { ToggleGroup, ToggleGroupItem } from '@/components/ui/toggle-group' import { cn } from '@/lib/utils' @@ -35,11 +35,11 @@ export function Stepper({ label, backHint, onHint, onBack, onOn }: StepperProps) return ( {label} ) @@ -74,15 +74,15 @@ interface ViewIslandProps { } /** The shown view's icon in the stripe, which its island repeats beside its name so the two are learned together. */ -export const ShownViewIcon = createContext(null) +export const ShownViewIcon = createContext(null) /** The island a view draws in, under a header with the view's icon, its name and its tools, as an IntelliJ tool window has. */ export function ViewIsland({ title, tools, className, children }: ViewIslandProps): React.JSX.Element { - const icon = useContext(ShownViewIcon) + const ViewIcon = useContext(ShownViewIcon) return (
- {icon !== null && } + {ViewIcon !== null && }

{title}

{tools} diff --git a/studio/src/renderer/src/studio/StatusBar.tsx b/studio/src/renderer/src/studio/StatusBar.tsx index dc22a0cf5..272b0155a 100644 --- a/studio/src/renderer/src/studio/StatusBar.tsx +++ b/studio/src/renderer/src/studio/StatusBar.tsx @@ -1,4 +1,4 @@ -import { IdeIcon } from '@/components/IdeIcon' +import { MemoryStick, Zap } from 'lucide-react' import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip' import { cn } from '@/lib/utils' import type { ServerUsage } from '../bridge/types' @@ -61,12 +61,12 @@ function UsageReadout({ usage }: { usage: ServerUsage }): React.JSX.Element { return ( } + icon={} value={formatCpu(usage)} high={cpuIsHigh(usage)} hint={`Server CPU, 100% per busy thread, ${usage.threads} threads in all`} /> - } value={formatHeap(usage)} high={heapIsHigh(usage)} hint="Java memory the server uses, of its maximum" /> + } value={formatHeap(usage)} high={heapIsHigh(usage)} hint="Java memory the server uses, of its maximum" /> ) } diff --git a/studio/src/renderer/src/studio/StudioToolbar.tsx b/studio/src/renderer/src/studio/StudioToolbar.tsx index 3d4f41a4d..a4890654e 100644 --- a/studio/src/renderer/src/studio/StudioToolbar.tsx +++ b/studio/src/renderer/src/studio/StudioToolbar.tsx @@ -1,5 +1,5 @@ import type { ReactNode } from 'react' -import { IdeIcon } from '@/components/IdeIcon' +import { Blocks, ChevronDown, CircleQuestionMark, Grid3x3, LocateFixed, Mountain, PawPrint, RefreshCw, ScanSearch, Settings, SquareDashed, SunMoon } from 'lucide-react' import { Button } from '@/components/ui/button' import { Kbd } from '@/components/ui/kbd' import { Separator } from '@/components/ui/separator' @@ -32,21 +32,21 @@ export function StudioToolbar({ world, theme, onHelp, onSettings, onDisconnect } {world.world} {world.dimensionName} - +
- +
@@ -66,30 +66,30 @@ export function MapTools({ toggles, hasPlayers, onToggle, onRefresh, onResetZoom return ( <> onToggle('grid')}> - + onToggle('regionBorders')}> - + onToggle('shading')}> - + onToggle('blocks')}> - + onToggle('entities')}> - + onToggle('follow')}> - + - + - + ) @@ -137,7 +137,7 @@ function ToolToggle({ action, hint, pressed, disabled, onPressed, children }: To pressed={pressed} disabled={disabled} onPressedChange={onPressed} - className="size-7 min-w-7 p-0 hover:bg-accent hover:text-foreground data-[state=on]:bg-selection data-[state=on]:text-foreground [&_svg:not([class*='size-'])]:size-3.5" + className="size-7 min-w-7 p-0 hover:bg-accent hover:text-foreground data-[state=on]:bg-selection data-[state=on]:text-foreground" > {children} diff --git a/studio/src/renderer/src/studio/ViewList.tsx b/studio/src/renderer/src/studio/ViewList.tsx index ed990afd4..28fc4dcd6 100644 --- a/studio/src/renderer/src/studio/ViewList.tsx +++ b/studio/src/renderer/src/studio/ViewList.tsx @@ -1,6 +1,33 @@ import { DropdownMenu } from 'radix-ui' import { Fragment } from 'react' -import { IdeIcon, type IdeIconName } from '@/components/IdeIcon' +import { + AudioWaveform, + Box, + Boxes, + Droplets, + Ellipsis, + Fish, + Flower2, + Gem, + HardDrive, + ImageIcon, + Layers, + Map, + MountainSnow, + Package, + Palette, + Pickaxe, + Pyramid, + Shapes, + Sprout, + TreeDeciduous, + TreePine, + Trees, + Waves, + Workflow, + Zap, + type LucideIcon +} from 'lucide-react' import { Kbd } from '@/components/ui/kbd' import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip' import { cn } from '@/lib/utils' @@ -8,40 +35,45 @@ import type { ViewInfo } from '../bridge/types' import { viewShortcutId } from './shortcuts' import { useKeyText } from './useBindings' -const VIEW_ICONS: Record = { - biomes: 'views/biomes', - regions: 'views/regions', - rivers: 'views/rivers', - height: 'shading', - 'land-biomes': 'views/biomes', - 'sea-biomes': 'views/biomes', - 'cave-biomes': 'views/biomes', - 'object-load': 'views/objects', - 'decorator-load': 'decoration', - 'layer-load': 'groups', - caveProfiles: 'views/cave-profiles', - treeProfiles: 'views/tree-profiles', - formationProfiles: 'views/formation-profiles', - fluidProfiles: 'views/fluid-profiles', - world3d: 'views/world-3d', - savedWorld: 'views/saved-world', - 'iris:terrain/palettes': 'views/palettes', - 'iris:decorant/decorators': 'decoration', - 'iris:objects': 'views/objects', - 'iris:objects/procedural': 'views/procedural', - noise: 'views/noise', - imageMaps: 'grid', - pregen: 'lightning' +const VIEW_ICONS: Record = { + biomes: Trees, + regions: Map, + rivers: Waves, + height: MountainSnow, + 'land-biomes': TreeDeciduous, + 'sea-biomes': Fish, + 'cave-biomes': Gem, + 'object-load': Boxes, + 'decorator-load': Sprout, + 'layer-load': Layers, + caveProfiles: Pickaxe, + treeProfiles: TreePine, + formationProfiles: Pyramid, + fluidProfiles: Droplets, + world3d: Box, + savedWorld: HardDrive, + 'iris:terrain/palettes': Palette, + 'iris:decorant/decorators': Flower2, + 'iris:objects': Package, + 'iris:objects/procedural': Workflow, + noise: AudioWaveform, + imageMaps: ImageIcon, + pregen: Zap } -const FALLBACK_ICON: IdeIconName = 'blocks' +const FALLBACK_ICON: LucideIcon = Shapes /** Inset, because the stripe scrolls and so clips anything drawn outside its buttons. */ const STRIPE_BUTTON = 'flex size-8 shrink-0 items-center justify-center rounded-lg outline-none focus-visible:ring-2 focus-visible:ring-ring/50 focus-visible:ring-inset' /** The icon a view has in the stripe, which its island's header repeats beside its name. */ -export function viewIcon(viewId: string): IdeIconName { +export function viewIcon(viewId: string): LucideIcon { return VIEW_ICONS[viewId] ?? FALLBACK_ICON } +function ViewIcon({ viewId, className }: { viewId: string; className: string }): React.JSX.Element { + const Icon = viewIcon(viewId) + return +} + interface ViewListProps { views: ViewInfo[] current: string @@ -99,9 +131,9 @@ function ViewButton({ view, selected, onSelect }: { view: ViewInfo; selected: bo onClick={onSelect} aria-label={view.label} aria-pressed={selected} - className={cn(STRIPE_BUTTON, selected ? 'bg-primary [&_img]:brightness-0 [&_img]:invert' : 'hover:bg-selection')} + className={cn(STRIPE_BUTTON, selected ? 'bg-primary text-primary-foreground' : 'hover:bg-selection')} > - + @@ -122,11 +154,7 @@ function NamedViews({ groups, current, onSelect }: { groups: ViewGroup[]; curren @@ -143,7 +171,7 @@ function NamedViews({ groups, current, onSelect }: { groups: ViewGroup[]; curren view.id === current && 'bg-selection' )} > - + {view.label} {keyText(viewShortcutId(view.id)) !== '' && ( {keyText(viewShortcutId(view.id))}