Skip to content

Commit fccebfd

Browse files
authored
Merge pull request #2 from haikalllp/feat/ActivityBarTop
feat(theme): add activity bar color support when set position to top/bottom
2 parents 1626529 + 38ace6d commit fccebfd

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

src/template.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,26 @@ export default (colors: Color[], bordered: boolean) => {
360360
'activityBarBadge.background': semantic.accent.hex(),
361361
'activityBarBadge.foreground': contrastFg.hex(),
362362

363+
// Activity Bar (Top position)
364+
'activityBarTop.foreground': semantic.fg.hex(),
365+
'activityBarTop.inactiveForeground': semantic.fgMuted.hex(),
366+
'activityBarTop.activeForeground': semantic.fg.hex(),
367+
'activityBarTop.background': (bordered ? semantic.bg : semantic.bgElevated).hex(),
368+
'activityBarTop.border': bordered ? semantic.fgMuted.hex() + alpha.faint : semantic.bg.hex(),
369+
'activityBarTop.activeBorder': semantic.accent.hex(),
370+
'activityBarTopBadge.background': semantic.accent.hex(),
371+
'activityBarTopBadge.foreground': contrastFg.hex(),
372+
373+
// Activity Bar (Bottom position)
374+
'activityBarBottom.foreground': semantic.fg.hex(),
375+
'activityBarBottom.inactiveForeground': semantic.fgMuted.hex(),
376+
'activityBarBottom.activeForeground': semantic.fg.hex(),
377+
'activityBarBottom.background': (bordered ? semantic.bgElevated : semantic.bg).hex(),
378+
'activityBarBottom.border': bordered ? semantic.fgMuted.hex() + alpha.faint : semantic.bg.hex(),
379+
'activityBarBottom.activeBorder': semantic.accent.hex(),
380+
'activityBarBottomBadge.background': semantic.accent.hex(),
381+
'activityBarBottomBadge.foreground': contrastFg.hex(),
382+
363383
// ================================================================
364384
// Sidebar
365385
// ================================================================

0 commit comments

Comments
 (0)