From a665d372e3a9214cbc9f3006315b7f017427667b Mon Sep 17 00:00:00 2001 From: Red J Adaya Date: Tue, 27 Aug 2024 09:03:32 +0800 Subject: [PATCH] telemetry toggle (#278) image --- frontend/app/modals/tos.less | 4 ++++ frontend/app/modals/tos.tsx | 2 ++ pkg/wcore/wcore.go | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/app/modals/tos.less b/frontend/app/modals/tos.less index 9e613fd7..bfa4a256 100644 --- a/frontend/app/modals/tos.less +++ b/frontend/app/modals/tos.less @@ -102,6 +102,10 @@ } } } + + .toggle-label { + color: rgba(255, 255, 255, 0.7); + } } footer { diff --git a/frontend/app/modals/tos.tsx b/frontend/app/modals/tos.tsx index 6bbea4e9..881ca298 100644 --- a/frontend/app/modals/tos.tsx +++ b/frontend/app/modals/tos.tsx @@ -3,6 +3,7 @@ import Logo from "@/app/asset/logo.svg"; import { Button } from "@/app/element/button"; +import { Toggle } from "@/app/element/toggle"; import * as services from "@/store/services"; import { FlexiModal } from "./modal"; @@ -75,6 +76,7 @@ const TosModal = () => { to help us understand how people are using Wave. + {}} label="Telemetry enabled" /> diff --git a/pkg/wcore/wcore.go b/pkg/wcore/wcore.go index d8e346a4..fdfeced7 100644 --- a/pkg/wcore/wcore.go +++ b/pkg/wcore/wcore.go @@ -95,7 +95,7 @@ func CreateWindow(ctx context.Context, winSize *waveobj.WinSize) (*waveobj.Windo if winSize == nil { winSize = &waveobj.WinSize{ Width: 1200, - Height: 800, + Height: 850, } } window := &waveobj.Window{