Skip to content

An open-source, self-hosted system for apps built with web technologies.

Limit light border to Start Menu content

zohayrslilehf4c585eb0e7e
diff --git a/source/client/view/appearance/appearance.css b/source/client/view/appearance/appearance.css
index 6ba40f8..235bdaa 100644
--- a/source/client/view/appearance/appearance.css
+++ b/source/client/view/appearance/appearance.css
@@ -39,11 +39,6 @@
}
-.border-light-foreground {
-
- border-color: color-mix(in oklch, currentColor 25%, white) !important;
-}
-
[data-start-menu-scroll] {
scrollbar-color: color-mix(in oklch, currentColor 28%, transparent) transparent;
diff --git a/source/client/view/structure/desktop/taskbar/launcher/launcher.tsx b/source/client/view/structure/desktop/taskbar/launcher/launcher.tsx
index 64258ab..9fc37fd 100644
--- a/source/client/view/structure/desktop/taskbar/launcher/launcher.tsx
+++ b/source/client/view/structure/desktop/taskbar/launcher/launcher.tsx
@@ -1,7 +1,7 @@
import { ReactNode, useCallback, useEffect, useId, useRef, useState } from "react"
import { enterSurface, prepareSurfaceEntrance, restSurface } from "../../../../appearance/surface-presence"
import { useReducedMotion } from "@libs/react-motion"
-import { Surface, useAppearance, useResolveTheme, useScale, type SurfaceProps } from "@phreshos/react-ui"
+import { Surface, useAppearance, useColor, useResolveTheme, useScale, type SurfaceProps } from "@phreshos/react-ui"
import TaskbarSurface, { taskbarSurfaceClassName } from "../taskbar-surface"
import TaskbarButton from "../taskbar-button"
@@ -9,7 +9,7 @@ import TaskbarButton from "../taskbar-button"
* A button and the dismissible surface it opens. Placement, contents and
* what selecting an item means belong to the caller.
*/
-export default function ({ label, trigger, children, surfaceClassName, className, style, ...props }: LauncherProps) {
+export default function ({ label, trigger, children, className, style, ...props }: LauncherProps) {
const id = useId()
@@ -17,7 +17,11 @@ export default function ({ label, trigger, children, surfaceClassName, className
const reducedMotion = useReducedMotion()
- const radius = useScale(useResolveTheme(useAppearance().radius)).large
+ const appearance = useAppearance()
+
+ const foreground = useColor(useResolveTheme(appearance.foreground))
+
+ const radius = useScale(useResolveTheme(appearance.radius)).large
const [open, setOpen] = useState(false)
@@ -94,7 +98,7 @@ export default function ({ label, trigger, children, surfaceClassName, className
style={{ ...style, borderRadius: radius }}
- className={`${taskbarSurfaceClassName} hidden open:block ${surfaceClassName ?? ""} ${className ?? ""}`}
+ className={`${taskbarSurfaceClassName} hidden open:block ${className ?? ""}`}
onBeforeToggle={event => {
@@ -122,7 +126,7 @@ export default function ({ label, trigger, children, surfaceClassName, className
>
- <Surface opacity="small" className={`min-h-0 max-h-[inherit] rounded-[inherit] ${surfaceClassName ?? ""}`}>
+ <Surface opacity="small" className="min-h-0 max-h-[inherit] rounded-[inherit]" style={{ borderColor: foreground.subtle }}>
{children(close)}
@@ -139,7 +143,5 @@ export interface LauncherProps extends Omit<SurfaceProps, "children" | "id" | "o
trigger: ReactNode
- surfaceClassName?: string
-
children: (close: () => void) => ReactNode
}
diff --git a/source/client/view/structure/desktop/taskbar/launcher/start-menu.tsx b/source/client/view/structure/desktop/taskbar/launcher/start-menu.tsx
index 62599a4..f2f0993 100644
--- a/source/client/view/structure/desktop/taskbar/launcher/start-menu.tsx
+++ b/source/client/view/structure/desktop/taskbar/launcher/start-menu.tsx
@@ -18,8 +18,6 @@ export default memo(function StartMenu() {
</>}
- surfaceClassName="border-light-foreground"
-
className="inset-auto inset-be-[calc(anchor(top)+var(--desktop-gutter))] inset-s-[anchor(start)] max-h-[min(32rem,calc(100vh-var(--spacing-taskbar)-var(--desktop-gutter)*3))] w-[min(22rem,calc(100vw-var(--desktop-gutter)*2))] [position-anchor:--desktop-taskbar]"
>