Skip to content

Commit 3182316

Browse files
bmeurerDevtools-frontend LUCI CQ
authored and
Devtools-frontend LUCI CQ
committed
[sources] Fix tree item colors in Workspace tab.
Make sure that the file systems with no mapped files are grayed out, including their file/folder items, and even when they are selected. At the same time ensure that files/folders in file systems with mapped files don't show grayed out. Screenshot: https://imgur.com/nPe6L8R Fixed: 404256670 Change-Id: Ib8a1183ad58b83cf6cb8258cfc7d0e5632c61677 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6440210 Commit-Queue: Benedikt Meurer <bmeurer@chromium.org> Auto-Submit: Benedikt Meurer <bmeurer@chromium.org> Commit-Queue: Alex Rudenko <alexrudenko@chromium.org> Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
1 parent 5d52e84 commit 3182316

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

front_end/panels/sources/navigatorTree.css

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,15 @@
105105
color: var(--icon-folder-authored);
106106
}
107107

108-
.navigator-fs-tree-item:not(.has-mapped-files, .selected) > :not(.selection),
109-
.navigator-fs-folder-tree-item:not(.has-mapped-files, .selected) > :not(.selection) {
110-
color: var(--sys-color-on-surface-subtle);
111-
opacity: 40%;
112-
113-
& devtools-icon {
108+
.navigator-fs-tree-item:not(.has-mapped-files),
109+
.navigator-fs-tree-item:not(.has-mapped-files) + ol li {
110+
& > :not(.selection) {
114111
color: var(--sys-color-on-surface-subtle);
112+
opacity: 40%;
113+
114+
& devtools-icon {
115+
color: var(--sys-color-on-surface-subtle);
116+
}
115117
}
116118
}
117119

0 commit comments

Comments
 (0)