Skip to content

Commit

Permalink
Fix scrollbar color on all platforms
Browse files Browse the repository at this point in the history
Fix #6
  • Loading branch information
jhildenbiddle committed Mar 8, 2024
1 parent e340320 commit dba7ba0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
15 changes: 15 additions & 0 deletions src/core/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,21 @@
/* ========================================================================== */
/* App
/* ========================================================================== */
::-webkit-scrollbar-thumb {
background-color: var(--scrollbar-thumb-color);
}

.mac-os {
::-webkit-scrollbar {
max-width: var(--scrollbar-width);
max-height: var(--scrollbar-width);
}

::-webkit-scrollbar-thumb {
border-radius: 100vw;
}
}

/* Tabs */
body:not([class*="seamless"]) :is(#typora-sidebar, content) {
border-top: 1px solid var(--border-color);
Expand Down
1 change: 1 addition & 0 deletions src/core/vars-theme-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
--input-background : var(--mono-50);
--menu-background : var(--mono-100);
--menu-border-width: 1px;
--scrollbar-thumb-color: var(--mono-200);

/* Elements */
--kbd-background : var(--mono-100);
Expand Down
2 changes: 2 additions & 0 deletions src/core/vars-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@
--menu-background : #fff;
--menu-border-width : 0;
--menu-color : inherit;
--scrollbar-thumb-color : var(--mono-300);
--scrollbar-width : 6px;
--search-match-color : var(--text-color);
--selection-color : ;
--sidebar-active-background : var(--color-hover);
Expand Down
4 changes: 0 additions & 4 deletions src/themeable-dark.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
@import "core/_import.css";
@import "core/vars-palette-dark.css" screen;
@import "core/vars-theme-dark.css" screen;

:not(.mac-os) ::-webkit-scrollbar-thumb {
background-color: rgba(255, 255, 255, 0.1);
}

0 comments on commit dba7ba0

Please sign in to comment.