Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 7376838

Browse files
committed
squashed from larz/linux-scrollbar
1 parent ae703f9 commit 7376838

2 files changed

Lines changed: 27 additions & 3 deletions

File tree

src/styles/brackets.less

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,28 @@ html, body {
6565
backface-visibility: hidden;
6666
}
6767

68-
body {
69-
height: 100%;
68+
.platform-linux {
69+
::-webkit-scrollbar {
70+
width: 8px;
71+
height: 8px;
72+
}
73+
74+
::-webkit-scrollbar-track-piece {
75+
background: none;
76+
}
77+
78+
::-webkit-scrollbar-thumb {
79+
background: @custom-scrollbar-thumb;
80+
border-radius: 4px;
81+
}
82+
83+
::-webkit-scrollbar-corner {
84+
background: none;
85+
}
86+
87+
::-webkit-scrollbar-thumb:window-inactive {
88+
background: @custom-scrollbar-thumb-inactive;
89+
}
7090
}
7191

7292
.resizing-container {

src/styles/brackets_theme_default.less

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,17 @@
107107
@open-working-file-name-highlight: #8fddff;
108108
@open-working-file-ext-highlight: #8fddff;
109109

110-
/* Selection colors */
110+
/* selection colors */
111111
@selection-color-focused: #D9EFF7;
112112
@selection-color-unfocused: #e9e9e9;
113113

114114
/* background color of the line that has the cursor */
115115
@activeline-bgcolor: #e6e9e9;
116116

117+
/* custom scrollbar colors */
118+
@custom-scrollbar-thumb: rgba(0, 0, 0, 0.24);
119+
@custom-scrollbar-thumb-inactive: rgba(0, 0, 0, 0.12);
120+
117121
/* Code font formatting
118122
*
119123
* NOTE (JRB): In order to get the web font to load early enough, we have a div called "dummy-text" that

0 commit comments

Comments
 (0)