Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
后端镜像
Tabby
提交
81663f35
T
Tabby
项目概览
后端镜像
/
Tabby
通知
31
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Tabby
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
81663f35
编写于
8月 14, 2021
作者:
E
Eugene Pankov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
show icon colors in profile selector - fixes #4405
上级
bf5d037c
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
9 addition
and
4 deletion
+9
-4
tabby-core/src/api/selector.ts
tabby-core/src/api/selector.ts
+1
-0
tabby-core/src/components/selectorModal.component.pug
tabby-core/src/components/selectorModal.component.pug
+3
-1
tabby-core/src/services/profiles.service.ts
tabby-core/src/services/profiles.service.ts
+3
-1
tabby-core/src/theme.scss
tabby-core/src/theme.scss
+1
-1
tabby-core/src/theme.vars.scss
tabby-core/src/theme.vars.scss
+1
-1
未找到文件。
tabby-core/src/api/selector.ts
浏览文件 @
81663f35
...
@@ -4,5 +4,6 @@ export interface SelectorOption<T> {
...
@@ -4,5 +4,6 @@ export interface SelectorOption<T> {
result
?:
T
result
?:
T
icon
?:
string
icon
?:
string
freeInputPattern
?:
string
freeInputPattern
?:
string
color
?:
string
callback
?:
(
string
?)
=>
void
callback
?:
(
string
?)
=>
void
}
}
tabby-core/src/components/selectorModal.component.pug
浏览文件 @
81663f35
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
(ngModelChange)='onFilterChange()'
(ngModelChange)='onFilterChange()'
)
)
.list-group
(*ngIf='filteredOptions.length')
div
(*ngIf='filteredOptions.length')
a.list-group-item.list-group-item-action.d-flex.align-items-center(
a.list-group-item.list-group-item-action.d-flex.align-items-center(
#item,
#item,
(click)='selectOption(option)',
(click)='selectOption(option)',
...
@@ -16,10 +16,12 @@
...
@@ -16,10 +16,12 @@
)
)
i.icon(
i.icon(
class='fa-fw {{option.icon}}',
class='fa-fw {{option.icon}}',
style='color: {{option.color}}',
*ngIf='!iconIsSVG(option.icon)'
*ngIf='!iconIsSVG(option.icon)'
)
)
.icon(
.icon(
[fastHtmlBind]='option.icon',
[fastHtmlBind]='option.icon',
style='color: {{option.color}}',
*ngIf='iconIsSVG(option.icon)'
*ngIf='iconIsSVG(option.icon)'
)
)
.title.mr-2 {{getOptionText(option)}}
.title.mr-2 {{getOptionText(option)}}
...
...
tabby-core/src/services/profiles.service.ts
浏览文件 @
81663f35
...
@@ -84,8 +84,9 @@ export class ProfilesService {
...
@@ -84,8 +84,9 @@ export class ProfilesService {
selectorOptionForProfile
<
P
extends
Profile
,
T
>
(
profile
:
PartialProfile
<
P
>
):
SelectorOption
<
T
>
{
selectorOptionForProfile
<
P
extends
Profile
,
T
>
(
profile
:
PartialProfile
<
P
>
):
SelectorOption
<
T
>
{
const
fullProfile
=
this
.
getConfigProxyForProfile
(
profile
)
const
fullProfile
=
this
.
getConfigProxyForProfile
(
profile
)
return
{
return
{
icon
:
profile
.
icon
,
name
:
profile
.
group
?
`
${
fullProfile
.
group
}
/
${
fullProfile
.
name
}
`
:
fullProfile
.
name
,
name
:
profile
.
group
?
`
${
fullProfile
.
group
}
/
${
fullProfile
.
name
}
`
:
fullProfile
.
name
,
icon
:
profile
.
icon
,
color
:
profile
.
color
,
description
:
this
.
providerForProfile
(
fullProfile
)?.
getDescription
(
fullProfile
),
description
:
this
.
providerForProfile
(
fullProfile
)?.
getDescription
(
fullProfile
),
}
}
}
}
...
@@ -99,6 +100,7 @@ export class ProfilesService {
...
@@ -99,6 +100,7 @@ export class ProfilesService {
let
options
:
SelectorOption
<
void
>
[]
=
recentProfiles
.
map
(
p
=>
({
let
options
:
SelectorOption
<
void
>
[]
=
recentProfiles
.
map
(
p
=>
({
...
this
.
selectorOptionForProfile
(
p
),
...
this
.
selectorOptionForProfile
(
p
),
icon
:
'
fas fa-history
'
,
icon
:
'
fas fa-history
'
,
color
:
p
.
color
,
callback
:
async
()
=>
{
callback
:
async
()
=>
{
if
(
p
.
id
)
{
if
(
p
.
id
)
{
p
=
(
await
this
.
getProfiles
()).
find
(
x
=>
x
.
id
===
p
.
id
)
??
p
p
=
(
await
this
.
getProfiles
()).
find
(
x
=>
x
.
id
===
p
.
id
)
??
p
...
...
tabby-core/src/theme.scss
浏览文件 @
81663f35
...
@@ -230,7 +230,7 @@ hotkey-input-modal {
...
@@ -230,7 +230,7 @@ hotkey-input-modal {
}
}
}
}
.list-group.list-group-flush
.list-group-item
:not
(
.list-group-item-action
)
{
.list-group.list-group-flush
{
background
:
transparent
;
background
:
transparent
;
border-color
:
rgba
(
0
,
0
,
0
,
0
.2
);
border-color
:
rgba
(
0
,
0
,
0
,
0
.2
);
...
...
tabby-core/src/theme.vars.scss
浏览文件 @
81663f35
...
@@ -88,7 +88,7 @@ $list-group-item-padding-y: 0.8rem;
...
@@ -88,7 +88,7 @@ $list-group-item-padding-y: 0.8rem;
$list-group-item-padding-x
:
1rem
;
$list-group-item-padding-x
:
1rem
;
$list-group-hover-bg
:
$table-bg-hover
;
$list-group-hover-bg
:
$table-bg-hover
;
$list-group-active-bg
:
rgba
(
255
,
255
,
255
,.
2
);
$list-group-active-bg
:
rgba
(
255
,
255
,
255
,.
05
);
$list-group-active-color
:
$component-active-color
;
$list-group-active-color
:
$component-active-color
;
$list-group-active-border-color
:
translate
;
$list-group-active-border-color
:
translate
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录