Skip to content

Commit

Permalink
Make settings button less prominent
Browse files Browse the repository at this point in the history
This is a bit tricky because the button must be legible on dark and
light backgrounds (the video). It needs enough contrast there to be
accessible. But on the same time we wanted to make it less prominent.
I think this commit is a good compromise.
  • Loading branch information
LukasKalbertodt committed Sep 26, 2023
1 parent 3621089 commit 74d0a09
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/steps/video-setup/prefs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

import { useEffect, useRef, useState } from "react";
import { useTranslation, Trans } from "react-i18next";
import {
Floating, FloatingContainer, FloatingHandle, FloatingTrigger, ProtoButton,
WithTooltip, screenWidthAtMost, useColorScheme,
} from "@opencast/appkit";
import { FiSettings, FiX } from "react-icons/fi";

import { Settings, useSettings } from "../../settings";
import { COLORS, getUniqueDevices } from "../../util";
Expand All @@ -12,11 +17,6 @@ import {
stopDisplayCapture,
stopUserCapture,
} from "../../capturer";
import {
Floating, FloatingContainer, FloatingHandle, FloatingTrigger, ProtoButton,
WithTooltip, screenWidthAtMost, useColorScheme,
} from "@opencast/appkit";
import { FiSettings, FiX } from "react-icons/fi";
import { Select } from "../../ui/Select";


Expand Down Expand Up @@ -220,16 +220,16 @@ export const StreamSettings: React.FC<StreamSettingsProps> = ({ isDesktop, strea
css={{
border: "none",
display: "inline-block",
backgroundColor: "rgba(0, 0, 0, 0.7)",
backgroundColor: "rgba(0, 0, 0, 0.3)",
color: "white",
padding: 8,
fontSize: 26,
backdropFilter: "invert(1)",
backdropFilter: "invert(0.3) blur(4px)",
lineHeight: 0,
borderRadius: "10px",
cursor: "pointer",
"&:hover, &:focus-visible": {
backgroundColor: "rgba(0, 0, 0, 0.9)",
backgroundColor: "rgba(0, 0, 0, 0.5)",
},
"> svg": {
transition: "transform 0.2s",
Expand Down

0 comments on commit 74d0a09

Please sign in to comment.