diff --git a/apps/onelauncher/frontend/index.html b/apps/onelauncher/frontend/index.html index d7a70b74..a91f8b3a 100644 --- a/apps/onelauncher/frontend/index.html +++ b/apps/onelauncher/frontend/index.html @@ -11,7 +11,7 @@ /> - OneClient + OneLauncher
diff --git a/apps/onelauncher/frontend/src/main.tsx b/apps/onelauncher/frontend/src/main.tsx index d9fbfc59..6684973d 100644 --- a/apps/onelauncher/frontend/src/main.tsx +++ b/apps/onelauncher/frontend/src/main.tsx @@ -8,6 +8,7 @@ import { routeTree } from './routeTree.gen'; import './fonts'; import './utils/nativeExperience'; import './utils/devExperience'; +import 'overlayscrollbars/overlayscrollbars.css'; import './styles/global.css'; export * as bindings from './bindings.gen'; diff --git a/apps/onelauncher/frontend/src/routes/__root.tsx b/apps/onelauncher/frontend/src/routes/__root.tsx index 28af9009..47d6806a 100644 --- a/apps/onelauncher/frontend/src/routes/__root.tsx +++ b/apps/onelauncher/frontend/src/routes/__root.tsx @@ -29,13 +29,13 @@ function RootRoute() { navigate={(to, options) => router.navigate({ to, ...options })} useHref={to => router.buildLocation({ to }).href} > -
+
-
+ ); diff --git a/apps/onelauncher/frontend/src/routes/app/route.tsx b/apps/onelauncher/frontend/src/routes/app/route.tsx index 40775b9b..e7e8becd 100644 --- a/apps/onelauncher/frontend/src/routes/app/route.tsx +++ b/apps/onelauncher/frontend/src/routes/app/route.tsx @@ -9,33 +9,33 @@ export const Route = createFileRoute('/app')({ function RouteComponent() { return ( -
+ <>
-
-
- -
+
+ +
- + -
-
-
+
+
-
+ ); } diff --git a/apps/onelauncher/frontend/src/styles/global.css b/apps/onelauncher/frontend/src/styles/global.css index edf42600..c6e975e6 100644 --- a/apps/onelauncher/frontend/src/styles/global.css +++ b/apps/onelauncher/frontend/src/styles/global.css @@ -60,6 +60,10 @@ --color-ghost-overlay: rgba(255, 255, 255, 0.05); --color-ghost-overlay-hover: rgba(255, 255, 255, 0.10); + --color-scrollbar-bg: rgba(255, 255, 255, 0.05); + --color-scrollbar-bg-hover: rgba(255, 255, 255, 0.10); + --color-scrollbar-bg-pressed: rgba(255, 255, 255, 0.15); + /* other */ --font-sans: "Poppins", sans-serif; --text-xs: 0.688rem; @@ -83,3 +87,21 @@ body { @apply bg-page text-fg-primary text-base; } +.os-scrollbar { + --os-size: 10px; + --os-track-border-radius: var(--border-radius-lg); + --os-handle-bg: var(--color-scrollbar-bg); + --os-handle-bg-hover: var(--color-scrollbar-bg-hover); + --os-handle-bg-active: var(--color-scrollbar-bg-pressed); + --os-handle-perpendicular-size-hover: 140%; + --os-handle-perpendicular-size-active: 140%; + --os-handle-interactive-area-offset: 4px; +} + +.os-scrollbar-offset-right { + --os-padding-axis: 10; +} + +.os-hide-horizontal-scrollbar > .os-scrollbar-horizontal { + display: none; +}