Skip to content

Commit 43d4f04

Browse files
authored
Use the single-letter icon for namespace symbols in navigator (#777)
Resolves: rdar://120780967
1 parent 8adc18e commit 43d4f04

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/components/TopicTypeIcon.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ const TopicTypeIcons = {
6363
[TopicTypes.method]: SingleLetterSymbolIcon,
6464
[TopicTypes.macro]: SingleLetterSymbolIcon,
6565
[TopicTypes.module]: TechnologyIcon,
66+
[TopicTypes.namespace]: SingleLetterSymbolIcon,
6667
[TopicTypes.overview]: PathIcon,
6768
[TopicTypes.protocol]: TwoLetterSymbolIcon,
6869
[TopicTypes.property]: SingleLetterSymbolIcon,
@@ -86,6 +87,7 @@ const TopicTypeProps = {
8687
[TopicTypes.httpRequest]: { symbol: 'E' },
8788
[TopicTypes.method]: { symbol: 'M' },
8889
[TopicTypes.macro]: { symbol: '#' },
90+
[TopicTypes.namespace]: { symbol: 'N' },
8991
[TopicTypes.protocol]: { first: 'P', second: 'r' },
9092
[TopicTypes.property]: { symbol: 'P' },
9193
[TopicTypes.propertyListKey]: { symbol: 'K' },

src/constants/TopicTypes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export const TopicTypes = {
2828
macro: 'macro',
2929
method: 'method',
3030
module: 'module',
31+
namespace: 'namespace',
3132
op: 'op',
3233
overview: 'overview',
3334
project: 'project',

0 commit comments

Comments
 (0)