Skip to content

Commit

Permalink
feat: scrollbar setting
Browse files Browse the repository at this point in the history
  • Loading branch information
amanharwara committed Mar 1, 2023
1 parent 3ba01aa commit 892dc2f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
});
</script>

<main>
<main class:custom-scrollbar={!$settings["systemScrollbars"]?.value}>
{#if showTitlebar}
<CustomTitlebar />
{/if}
Expand Down
4 changes: 2 additions & 2 deletions src/components/SettingsManager.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,10 @@
overflow-x: hidden;
margin-bottom: 0.75rem;
}
.settings::-webkit-scrollbar {
:global(.custom-scrollbar) .settings::-webkit-scrollbar {
width: 5px;
}
.settings::-webkit-scrollbar-thumb {
:global(.custom-scrollbar) .settings::-webkit-scrollbar-thumb {
background: #36475d;
}
.setting {
Expand Down
4 changes: 2 additions & 2 deletions src/components/TabBar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,10 @@
display: flex;
overflow-x: auto;
}
.tabs::-webkit-scrollbar {
:global(.custom-scrollbar) .tabs::-webkit-scrollbar {
height: 5px;
}
.tabs::-webkit-scrollbar-thumb {
:global(.custom-scrollbar) .tabs::-webkit-scrollbar-thumb {
background: #36475d;
}
.add-tab {
Expand Down
6 changes: 6 additions & 0 deletions src/store/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ const defaultSettings: () => Settings = () => {
description:
"When enabled, Altus will use a custom titlebar instead of the one provided by the system. (NOTE: Requires a restart for changes to apply.)",
},
systemScrollbars: {
value: false,
name: "Use system scrollbars for UI",
description:
"When enabled, Altus will use the system scrollbar style instead of a custom style. This does not apply to the WhatsApp UI, use a custom theme for that.",
},
rememberWindowSize: {
value: false,
name: "Remember Window Size",
Expand Down

0 comments on commit 892dc2f

Please sign in to comment.