Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

style: unify selected item styles to gold accent across all panels

esengine72c77e2443ed
diff --git a/editor/src/styles/builder.css b/editor/src/styles/builder.css
index c1dc20157..d2e43e300 100644
--- a/editor/src/styles/builder.css
+++ b/editor/src/styles/builder.css
@@ -1188,7 +1188,7 @@
}
.es-addr-group-item.es-selected {
- background: rgba(209, 154, 102, 0.25);
+ background: var(--es-selection-bg);
border-left-color: var(--es-accent-gold);
color: var(--es-accent-gold);
}
diff --git a/editor/src/styles/extensions.css b/editor/src/styles/extensions.css
index 61785aa0c..1baac2fc9 100644
--- a/editor/src/styles/extensions.css
+++ b/editor/src/styles/extensions.css
@@ -155,8 +155,8 @@
}
.es-ext-row.es-selected {
- background: var(--es-accent-subtle);
- border-left-color: var(--es-accent);
+ background: var(--es-selection-bg);
+ border-left-color: var(--es-accent-gold);
}
.es-ext-row--off {
diff --git a/editor/src/styles/frame-debugger.css b/editor/src/styles/frame-debugger.css
index 8f8dcda9e..f46f74b19 100644
--- a/editor/src/styles/frame-debugger.css
+++ b/editor/src/styles/frame-debugger.css
@@ -154,7 +154,7 @@
}
.es-fd-item-selected {
- background: var(--es-accent-subtle) !important;
+ background: var(--es-selection-bg) !important;
}
.es-fd-index {
diff --git a/editor/src/styles/inspector.css b/editor/src/styles/inspector.css
index c1c713bf6..9aabb9a14 100644
--- a/editor/src/styles/inspector.css
+++ b/editor/src/styles/inspector.css
@@ -785,14 +785,13 @@
gap: 8px;
border-radius: 4px;
margin: 1px 8px;
- border-left: 2px solid transparent;
- transition: background 100ms, border-color 100ms;
+ transition: background 100ms, box-shadow 100ms;
}
.es-component-item:hover,
.es-component-item.es-highlighted {
- background: var(--es-bg-hover);
- border-left-color: var(--es-accent);
+ background: var(--es-selection-bg);
+ box-shadow: inset 3px 0 0 var(--es-accent-gold);
}
.es-component-icon {
@@ -806,11 +805,11 @@
.es-component-item:hover .es-component-icon svg,
.es-component-item.es-highlighted .es-component-icon svg {
- stroke: var(--es-accent);
+ stroke: var(--es-accent-gold);
}
.es-component-item mark {
- background: var(--es-accent);
+ background: var(--es-accent-gold);
color: var(--es-bg-primary);
border-radius: 2px;
padding: 0 1px;
diff --git a/editor/src/styles/timeline.css b/editor/src/styles/timeline.css
index f6f185bae..3cc63ee10 100644
--- a/editor/src/styles/timeline.css
+++ b/editor/src/styles/timeline.css
@@ -183,7 +183,7 @@
}
.es-timeline-track-row.es-selected {
- background: var(--es-accent-subtle);
+ background: var(--es-selection-bg);
}
.es-timeline-track-color-bar {