@@ -14,7 +14,7 @@ import { IStorageService } from 'vs/platform/storage/common/storage';
14
14
import { contrastBorder } from 'vs/platform/theme/common/colorRegistry' ;
15
15
import { IThemeService } from 'vs/platform/theme/common/themeService' ;
16
16
import { ActiveAuxiliaryContext , AuxiliaryBarFocusContext } from 'vs/workbench/common/contextkeys' ;
17
- import { ACTIVITY_BAR_BADGE_BACKGROUND , ACTIVITY_BAR_BADGE_FOREGROUND , PANEL_ACTIVE_TITLE_BORDER , PANEL_ACTIVE_TITLE_FOREGROUND , PANEL_DRAG_AND_DROP_BORDER , PANEL_INACTIVE_TITLE_FOREGROUND , SIDE_BAR_BACKGROUND , SIDE_BAR_BORDER , SIDE_BAR_FOREGROUND } from 'vs/workbench/common/theme' ;
17
+ import { ACTIVITY_BAR_BADGE_BACKGROUND , ACTIVITY_BAR_BADGE_FOREGROUND , ACTIVITY_BAR_TOP_ACTIVE_BORDER , ACTIVITY_BAR_TOP_DRAG_AND_DROP_BORDER , ACTIVITY_BAR_TOP_FOREGROUND , ACTIVITY_BAR_TOP_INACTIVE_FOREGROUND , PANEL_ACTIVE_TITLE_BORDER , PANEL_ACTIVE_TITLE_FOREGROUND , PANEL_DRAG_AND_DROP_BORDER , PANEL_INACTIVE_TITLE_FOREGROUND , SIDE_BAR_BACKGROUND , SIDE_BAR_BORDER , SIDE_BAR_FOREGROUND } from 'vs/workbench/common/theme' ;
18
18
import { IViewDescriptorService } from 'vs/workbench/common/views' ;
19
19
import { IExtensionService } from 'vs/workbench/services/extensions/common/extensions' ;
20
20
import { ActivityBarPosition , IWorkbenchLayoutService , LayoutSettings , Parts , Position } from 'vs/workbench/services/layout/browser/layoutService' ;
@@ -169,12 +169,12 @@ export class AuxiliaryBarPart extends AbstractPaneCompositePart {
169
169
colors : theme => ( {
170
170
activeBackgroundColor : theme . getColor ( SIDE_BAR_BACKGROUND ) ,
171
171
inactiveBackgroundColor : theme . getColor ( SIDE_BAR_BACKGROUND ) ,
172
- activeBorderBottomColor : theme . getColor ( PANEL_ACTIVE_TITLE_BORDER ) ,
173
- activeForegroundColor : theme . getColor ( PANEL_ACTIVE_TITLE_FOREGROUND ) ,
174
- inactiveForegroundColor : theme . getColor ( PANEL_INACTIVE_TITLE_FOREGROUND ) ,
172
+ get activeBorderBottomColor ( ) { return $this . getCompositeBarPosition ( ) === CompositeBarPosition . TITLE ? theme . getColor ( PANEL_ACTIVE_TITLE_BORDER ) : theme . getColor ( ACTIVITY_BAR_TOP_ACTIVE_BORDER ) ; } ,
173
+ get activeForegroundColor ( ) { return $this . getCompositeBarPosition ( ) === CompositeBarPosition . TITLE ? theme . getColor ( PANEL_ACTIVE_TITLE_FOREGROUND ) : theme . getColor ( ACTIVITY_BAR_TOP_FOREGROUND ) ; } ,
174
+ get inactiveForegroundColor ( ) { return $this . getCompositeBarPosition ( ) === CompositeBarPosition . TITLE ? theme . getColor ( PANEL_INACTIVE_TITLE_FOREGROUND ) : theme . getColor ( ACTIVITY_BAR_TOP_INACTIVE_FOREGROUND ) ; } ,
175
175
badgeBackground : theme . getColor ( ACTIVITY_BAR_BADGE_BACKGROUND ) ,
176
176
badgeForeground : theme . getColor ( ACTIVITY_BAR_BADGE_FOREGROUND ) ,
177
- dragAndDropBorder : theme . getColor ( PANEL_DRAG_AND_DROP_BORDER )
177
+ get dragAndDropBorder ( ) { return $this . getCompositeBarPosition ( ) === CompositeBarPosition . TITLE ? theme . getColor ( PANEL_DRAG_AND_DROP_BORDER ) : theme . getColor ( ACTIVITY_BAR_TOP_DRAG_AND_DROP_BORDER ) ; }
178
178
} ) ,
179
179
compact : true
180
180
} ;
@@ -205,6 +205,7 @@ export class AuxiliaryBarPart extends AbstractPaneCompositePart {
205
205
return this . configurationService . getValue < ActivityBarPosition > ( LayoutSettings . ACTIVITY_BAR_LOCATION ) !== ActivityBarPosition . HIDDEN ;
206
206
}
207
207
208
+ // TODO@benibenj chache this
208
209
protected getCompositeBarPosition ( ) : CompositeBarPosition {
209
210
const activityBarPosition = this . configurationService . getValue < ActivityBarPosition > ( LayoutSettings . ACTIVITY_BAR_LOCATION ) ;
210
211
switch ( activityBarPosition ) {
0 commit comments