mirror of https://github.com/onivim/oni.git
Feature/ Make tab bar border-bottom theme-able (#2585)
This PR is one of some upcoming which allows specific sections of oni's ui that currently default to other colors in the theme specifically themable, in this case the border bottom of the tab bar default to `tabs.background` meaning it can't be specifically styled or hidden which is less flexible. This PR adds a specific config for this setting but maintains the default of `tabs.background` if no specific key is specified so it is backwards-compatible
This commit is contained in:
parent
d354c2cc1e
commit
15a2ca9c38
|
@ -35,6 +35,7 @@ export interface IThemeColors {
|
|||
|
||||
"tabs.background": string
|
||||
"tabs.foreground": string
|
||||
"tabs.borderBottom": string
|
||||
"tabs.active.foreground": string
|
||||
"tabs.active.background": string
|
||||
|
||||
|
@ -288,6 +289,7 @@ export const DefaultThemeColors: IThemeColors = {
|
|||
|
||||
"tabs.background": ColorBlack,
|
||||
"tabs.foreground": ColorWhite,
|
||||
"tabs.borderBottom": null,
|
||||
"tabs.active.background": null,
|
||||
"tabs.active.foreground": null,
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ const TabsWrapper = styled<ITabsWrapperProps, "div">("div")`
|
|||
align-items: flex-end;
|
||||
width: 100%;
|
||||
overflow-x: hidden;
|
||||
border-bottom: 4px solid ${themeGet("tabs.background")};
|
||||
border-bottom: 4px solid ${themeGet("tabs.borderBottom", "tabs.background")};
|
||||
font-family: ${props => props.fontFamily};
|
||||
font-size: ${props => props.fontSize};
|
||||
transform: translateY(-3px);
|
||||
|
|
Loading…
Reference in New Issue