Skip to content

Commit bba136a

Browse files
committed
fix: use the same text style as the outline for call hierarchy
1 parent 5d83626 commit bba136a

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

styles/atom-ide-outline.less

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515
font-style: normal;
1616
}
1717

18+
// same font as editor
19+
.font-common() {
20+
font-size: var(--editor-font-size);
21+
font-family: var(--editor-font-family);
22+
line-height: var(--editor-line-height);
23+
}
24+
1825
.atom-ide-outline {
1926
display: flex;
2027
flex-direction: column;
@@ -35,13 +42,6 @@
3542
@padding-h: 10px;
3643
@padding-v: 2px;
3744

38-
// same font as editor
39-
.font-common() {
40-
font-size: var(--editor-font-size);
41-
font-family: var(--editor-font-family);
42-
line-height: var(--editor-line-height);
43-
}
44-
4545
--editor-tab-length: 4; // default
4646
--level-indent-size: 16px;
4747
--indent-level: 0; // initial

styles/call-hierarchy.less

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
@import "ui-variables";
2+
@import "./atom-ide-outline.less";
23

34
atom-ide-outline-call-hierarchy-view {
45
> div:first-child {
6+
.font-common();
57
display: flex;
6-
line-height: 36px;
78
height: 36px;
8-
font-size: 1.4em;
99
cursor: pointer;
1010
&:first-child > div {
1111
flex-grow: 1;
@@ -27,7 +27,7 @@ atom-ide-outline-call-hierarchy-view {
2727
height: calc(~"100% - 36px");
2828
overflow-x: auto;
2929
> atom-ide-outline-call-hierarchy-item {
30-
font-size: 1.4em;
30+
.font-common();
3131
}
3232
}
3333
}

0 commit comments

Comments
 (0)