mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-21 09:31:20 -08:00
UI updates for vr controllers
This commit is contained in:
1 parent
c3d16403d5
commit
1cc911d994
4 files changed
+5
-4
No files matched your search
@@ -98,7 +98,8 @@ export function Button({
|
||||
'rounded-full p-2 text-center min-h-[35px] min-w-[35px]': rounded,
|
||||
'rounded-md px-5 py-2.5': !rounded,
|
||||
},
|
||||
props.className
|
||||
props.className,
|
||||
'vr-button'
|
||||
);
|
||||
}, [variant, disabled, rounded, props.className]);
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ export function ResetButton({
|
||||
variant="primary"
|
||||
disabled={disabled}
|
||||
>
|
||||
<div className="flex flex-col">
|
||||
<div className="flex flex-col vr-button">
|
||||
<div className="opacity-0 h-0">
|
||||
{children || <Localized id={name} />}
|
||||
</div>
|
||||
|
||||
@@ -160,7 +160,7 @@ export function BodyAssignment({
|
||||
highlightedRoles={highlightedRoles}
|
||||
onSelectRole={onRoleSelected}
|
||||
leftControls={
|
||||
<div className="flex flex-col justify-between h-full text-right">
|
||||
<div className="flex flex-col justify-between h-full text-right vr-button">
|
||||
<div className="flex flex-col gap-2">
|
||||
{hasBodyPart(BodyPart.HEAD) && (
|
||||
<TrackerPartCard
|
||||
|
||||
@@ -173,7 +173,7 @@ export function TrackerCard({
|
||||
<div
|
||||
onClick={onClick}
|
||||
className={classNames(
|
||||
'rounded-lg overflow-hidden transition-[box-shadow] duration-200 ease-linear',
|
||||
'rounded-lg overflow-hidden transition-[box-shadow] duration-200 ease-linear vr-button',
|
||||
interactable && 'hover:bg-background-50 cursor-pointer',
|
||||
outlined && 'outline outline-2 outline-accent-background-40',
|
||||
bg
|
||||
|
||||
Reference in new issue
Block a user