mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-08 17:41:50 +00:00
fixed #8133 - added active tab indicator, updated default color scheme
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
.colorbar([style.background-color]='tab.color', *ngIf='tab.color != null')
|
||||
.progressbar([style.width]='progress + "%"', *ngIf='progress != null')
|
||||
.activity-indicator(*ngIf='tab.activity$|async')
|
||||
.current-tab-indicator
|
||||
|
||||
.index(*ngIf='!config.store.terminal.hideTabIndex && hostApp.platform === Platform.macOS', cdkDragHandle) {{index + 1}}
|
||||
.index(*ngIf='!config.store.terminal.hideTabIndex && hostApp.platform !== Platform.macOS') {{index + 1}}
|
||||
|
@@ -134,15 +134,29 @@ $tabs-height: 38px;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.activity-indicator, .current-tab-indicator {
|
||||
position: absolute;
|
||||
height: 2px;
|
||||
}
|
||||
|
||||
&.active .activity-indicator {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.activity-indicator {
|
||||
position: absolute;
|
||||
bottom: 4px;
|
||||
left: 10px;
|
||||
right: 10px;
|
||||
bottom: 4px;
|
||||
height: 2px;
|
||||
}
|
||||
|
||||
&.active .current-tab-indicator {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.current-tab-indicator {
|
||||
display: none;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
}
|
||||
}
|
||||
|
@@ -30,6 +30,7 @@ app-root {
|
||||
border-left: 1px solid transparent;
|
||||
border-right: 1px solid transparent;
|
||||
transition: 0.125s ease-out width;
|
||||
color: var(--theme-fg-more-2);
|
||||
|
||||
.index {
|
||||
color: var(--bs-body-color);
|
||||
@@ -54,8 +55,12 @@ app-root {
|
||||
opacity: .2;
|
||||
}
|
||||
|
||||
.current-tab-indicator {
|
||||
background:var(--bs-light);
|
||||
}
|
||||
|
||||
&.active {
|
||||
color: var(--theme-fg-less-2);
|
||||
color: var(--theme-fg);
|
||||
background: var(--body-bg);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user