Skip to content

Commit 5ba2a8a

Browse files
committed
comments: improve annotation scrollbar styling
-The scrollbar in annotation content was oversized, taking up unnecessary space. -Introduced --scrollbar-color variable with light/dark theme values and set scrollbar-width to thin for improved visual consistency. -Added color-text-date to use annotation date for light/dark theme Signed-off-by: Banobe Pascal <[email protected]> Change-Id: I557098506743a975199da8d8b3b34db8f38e539a
1 parent 74c0602 commit 5ba2a8a

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

browser/css/color-palette-dark.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
--color-text-lighter: #fff; /* secondard text, disabled */
1313
--color-status-badge: #d6d6d6;
1414
--color-slideshow: #d6d6d6;
15+
--color-date-text: #d6d6d6;
1516

1617
--color-main-background: #121212;
1718
--color-background-dark: #1E1E1E; /* select */
@@ -73,6 +74,7 @@
7374
--color-smart-guides-helper-line: #f36d4f;
7475

7576
--color-quickfind-border: #444;
77+
--scrollbar-color: #c0bfbc transparent;
7678
}
7779

7880
[data-bg-theme='dark'] {

browser/css/color-palette.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
--color-text-calc-header: #e8e8e8;
1515
--color-status-badge: #616161;
1616
--color-slideshow: #A8A8A8;
17+
--color-date-text: #555555;
1718

1819
--color-main-background: #F8F9FA;
1920
--color-background-dark: #e8e8e8; /* select */
@@ -82,6 +83,7 @@
8283
--color-treeview-highlight: #FFEE80;
8384
--color-treeview-highlight-text: #222;
8485
--color-quickfind-border: #e1dfdd;
86+
--scrollbar-color: #c0bfbc #fafafa;
8587
}
8688

8789
[data-bg-theme='light'] {

browser/css/cool.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,8 @@ body {
642642
line-height: 1.4;
643643
max-height: var(--annotation-input-size);
644644
overflow: auto;
645+
scrollbar-color: var(--scrollbar-color);
646+
scrollbar-width: thin;
645647
}
646648

647649
.cool-annotation-info-collapsed {
@@ -877,7 +879,7 @@ body {
877879

878880
.cool-annotation-date {
879881
font-size: 0.625rem;
880-
color: #555555;
882+
color: var(--color-date-text);
881883
}
882884

883885
.annotation-button-autosaved {

0 commit comments

Comments
 (0)