@@ -33,8 +33,6 @@ import {
3333 type ExportSettings ,
3434 events ,
3535 type FramesRendered ,
36- type GifExportSettings ,
37- type Mp4ExportSettings ,
3836} from "~/utils/tauri" ;
3937import { type RenderState , useEditorContext } from "./context" ;
4038import { RESOLUTION_OPTIONS } from "./Header" ;
@@ -158,8 +156,7 @@ export function ExportDialog() {
158156
159157 const [ outputPath , setOutputPath ] = createSignal < string | null > ( null ) ;
160158
161- const selectedStyle =
162- "ring-1 ring-offset-2 ring-offset-gray-200 bg-gray-5 ring-gray-500" ;
159+ const selectedStyle = "bg-gray-7" ;
163160
164161 const projectPath = editorInstance . path ;
165162
@@ -492,10 +489,8 @@ export function ExportDialog() {
492489 { ( option ) => (
493490 < Button
494491 onClick = { ( ) => setSettings ( "exportTo" , option . value ) }
495- class = { cx (
496- "flex flex-1 gap-2 items-center text-nowrap" ,
497- settings . exportTo === option . value && selectedStyle ,
498- ) }
492+ data-selected = { settings . exportTo === option . value }
493+ class = "flex flex-1 gap-2 items-center text-nowrap"
499494 variant = "secondary"
500495 >
501496 { option . icon }
@@ -550,9 +545,7 @@ export function ExportDialog() {
550545 ) ;
551546 } }
552547 autofocus = { false }
553- class = { cx (
554- settings . format === option . value && selectedStyle ,
555- ) }
548+ data-selected = { settings . format === option . value }
556549 >
557550 { option . label }
558551 </ Button >
@@ -639,10 +632,7 @@ export function ExportDialog() {
639632 ) ;
640633 } }
641634 variant = "secondary"
642- class = { cx (
643- settings . compression === option . value &&
644- selectedStyle ,
645- ) }
635+ data-selected = { settings . compression === option . value }
646636 >
647637 { option . label }
648638 </ Button >
@@ -669,12 +659,10 @@ export function ExportDialog() {
669659 >
670660 { ( option ) => (
671661 < Button
672- class = { cx (
673- "flex-1" ,
662+ data-selected = {
674663 settings . resolution . value === option . value
675- ? selectedStyle
676- : "" ,
677- ) }
664+ }
665+ class = "flex-1"
678666 variant = "secondary"
679667 onClick = { ( ) => setSettings ( "resolution" , option ) }
680668 >
0 commit comments