Commit 0f001e3
feat(ui): modernize editor UI with shadcn-style design system
Major UI overhaul implementing shadcn-inspired design with glassmorphic
elements in dark mode and clean monochromatic styling in light mode.
## New UI Package (com.jasonxudeveloper.jengine.ui)
### Components
- **Button**: JButton, JToggleButton, JButtonGroup with 5 variants
- **Form**: JFormField, JTextField, JDropdown, JToggle, JObjectField
- **Layout**: JCard, JSection, JStack, JRow for composition
- **Feedback**: JStatusBar, JLogView, JProgressBar
- **Navigation**: JBreadcrumb with clean hierarchical display
### Theme System
- Design tokens (Tokens.cs) with dark/light theme support
- Glassmorphic palette for dark mode (translucent layers, vibrant accents)
- shadcn-style monochromatic palette for light mode (black/white/grey only)
- 8px spacing grid, typography scale, border radius system
- Smooth transitions (150-300ms)
### Enhanced Editor UIs
- BootstrapEditorUI: Redesigned Bootstrap inspector with modern components
- PanelUI: Redesigned Panel window with enhanced scene management
## Core Package Improvements
### Code Deduplication
- **EditorUtils.cs**: Extracted 6 shared helper methods from BootstrapEditor
and BootstrapEditorUI (GetAvailableAsmdefFiles, GetAvailableHotScenes,
GetAvailableHotClasses, GetAvailableHotMethods,
GetAvailableDynamicSecretKeys, GetAvailableAOTDataFiles)
- **BuildHelper.cs**: New shared build execution logic with UI callbacks,
eliminating ~200 lines of duplication between Panel.cs and PanelUI.cs
### Bug Fixes
- Panel.cs: Added null checks in LogMessage to prevent crashes when using
enhanced PanelUI
- PanelUI: Creates its own BuildManager with proper log routing to JLogView
## Design Decisions
### Light Theme Philosophy
- Monochromatic black/white/grey only (no colors except semantic highlights)
- Buttons use grey shades (Primary: gray-700, Secondary: gray-300)
- Clean, minimal aesthetic inspired by shadcn/ui
### Dark Theme Philosophy
- Glassmorphic translucent layers (40-80% opacity)
- Vibrant cyan accents (#06B6D4) with subtle glow effects
- 5-level glass system (Base → Subtle → Surface → Elevated → Overlay)
### Component Patterns
- Fluent API for chaining (.WithText().FullWidth())
- Consistent spacing and sizing across all components
- Theme-aware colors (automatically adapt to Unity editor theme)
- Proper keyboard navigation with visible focus states
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Signed-off-by: JasonXuDeveloper - 傑 <jason@xgamedev.net>1 parent 6a8f15b commit 0f001e3
78 files changed
Lines changed: 6802 additions & 211 deletions
File tree
- UnityProject/Packages
- com.jasonxudeveloper.jengine.core/Editor
- CustomEditor
- com.jasonxudeveloper.jengine.ui
- Editor
- Components
- Base
- Button
- Feedback
- Form
- Layout
- Internal
- Styles
- Theming
- Utilities
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 152 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments