Skip to content

Commit

Permalink
Adjust traffic lights position on Editor
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsEeleeya committed Nov 14, 2024
1 parent f995884 commit 2f9a65a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/desktop/src-tauri/src/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl CapWindowId {
pub fn traffic_lights_position(&self) -> Option<Option<LogicalPosition<f64>>> {
match self {
Self::Camera | Self::WindowCaptureOccluder | Self::PrevRecordings => None,
Self::Editor { .. } => Some(Some(LogicalPosition::new(20.0, 48.0))),
Self::Editor { .. } => Some(Some(LogicalPosition::new(20.0, 40.5))),
Self::InProgressRecording => Some(Some(LogicalPosition::new(-100.0, -100.0))),
_ => Some(None),
}
Expand Down
8 changes: 4 additions & 4 deletions apps/desktop/src/routes/editor/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function Header() {

onMount(async () => {
unlistenTitlebar = await initializeTitlebar();
commands.positionTrafficLights([20.0, 48.0]);
commands.positionTrafficLights([20.0, 40.5]);
});

onCleanup(() => {
Expand Down Expand Up @@ -63,9 +63,9 @@ function ExportButton() {
const [state, setState] = createStore<
| { open: false; type: "idle" }
| ({ open: boolean } & (
| { type: "inProgress"; progress: number; totalFrames: number }
| { type: "finished"; path: string }
))
| { type: "inProgress"; progress: number; totalFrames: number }
| { type: "finished"; path: string }
))
>({ open: false, type: "idle" });

return (
Expand Down

0 comments on commit 2f9a65a

Please sign in to comment.