From 45b1d94b3b45895c30238914a974a7604a66c673 Mon Sep 17 00:00:00 2001 From: Tormak <63308171+Tormak9970@users.noreply.github.com> Date: Sun, 7 Apr 2024 14:11:56 -0400 Subject: [PATCH] fix: corrected another missing dfl problem --- src/components/filters/FilterSelect.tsx | 4 +- .../styles/FilterSelectionStyles.tsx | 99 +------------------ 2 files changed, 3 insertions(+), 100 deletions(-) diff --git a/src/components/filters/FilterSelect.tsx b/src/components/filters/FilterSelect.tsx index 7d81902..1412810 100644 --- a/src/components/filters/FilterSelect.tsx +++ b/src/components/filters/FilterSelect.tsx @@ -1,8 +1,8 @@ import { Fragment, VFC, createElement, useEffect, useState } from "react"; -import { Focusable, ModalRoot, SingleDropdownOption } from "decky-frontend-lib"; +import { achievementClasses, Focusable, mainMenuAppRunningClasses, ModalRoot, SingleDropdownOption } from "decky-frontend-lib"; import { FilterDefaultParams, FilterDescriptions, FilterIcons, FilterType } from "./Filters"; import { capitalizeEachWord } from "../../lib/Utils"; -import { FilterSelectStyles, achievementClasses, mainMenuAppRunningClasses } from "../styles/FilterSelectionStyles"; +import { FilterSelectStyles } from "../styles/FilterSelectionStyles"; import { IoFilter } from 'react-icons/io5' import { MicroSDeckInterop, microSDeckLibVersion } from '../../lib/controllers/MicroSDeckInterop'; import { BaseModalProps, CustomDropdown } from '../generic/CustomDropdown'; diff --git a/src/components/styles/FilterSelectionStyles.tsx b/src/components/styles/FilterSelectionStyles.tsx index 1984069..cb47c09 100644 --- a/src/components/styles/FilterSelectionStyles.tsx +++ b/src/components/styles/FilterSelectionStyles.tsx @@ -1,103 +1,6 @@ -import { findModule, gamepadDialogClasses } from "decky-frontend-lib"; +import { gamepadDialogClasses } from "decky-frontend-lib"; import { VFC } from "react"; -type AchievementClasses = Record< - "nAchievementHeight" | - "nGlobalAchievementHeight" | - "nAchievementsListTitleHeight" | - "nAchievementGap" | - "AchievementList" | - "ListTitle" | - "AchievementListItemBase" | - "Container" | - "Content" | - "Right" | - "Footer" | - "AchievementTitle" | - "AchievementDescription" | - "AchievementGlobalPercentage" | - "InBody" | - "VerticalContent" | - "UnlockDate" | - "AlignEnd" | - "ProgressBar" | - "ProgressCount" | - "AchievementContent" | - "HiddenAchievementContent" | - "FriendAchievementFooter" | - "GlobalPercentage" | - "UserUnlockDateTime" | - "GlobalAchievementsListHeader" | - "SearchField" | - "Avatar" | - "HeaderText" | - "GlobalAchievementListItem" | - "UnlockContainer" | - "Info" | - "Title" | - "Description" | - "Percent" | - "ImageContainer" | - "ProgressFill" | - "SpoilerWarning" | - "Hidden" | - "ComparisonAchieverColumn" | - "ComparisonAchieverInfo" | - "ProgressContainer" | - "ProgressLabel" | - "Secondary" | - "AvatarContainer" | - "Unachieved", - string ->; - -type MainMenuAppRunningClasses = Record< -"duration-app-launch" | -"ScrollMask" | -"HideMask" | -"MainMenuAppRunning" | -"MenuOpen" | -"NavigationColumn" | -"ControllerColumnFocused" | -"NavColumnFocused" | -"NavigationBox" | -"NavigationMenuItem" | -"ItemFocusAnim-darkerGrey" | -"Active" | -"Disabled" | -"SwitchAppsTitle" | -"SelectableAppWindow" | -"ActiveDot" | -"NavigationMenuItemSeparator" | -"AppColumn" | -"FocusedColumn" | -"AppColumnContent" | -"ActiveContent" | -"CurrentGameBackground" | -"CurrentGameLogo" | -"OverlayAchievements" | -"Container" | -"OverlayGuides" | -"OverlayNotes" | -"OverlayInplaceBrowser" | -"ItemFocusAnim-darkerGrey-nocolor" | -"ItemFocusAnim-darkGrey" | -"ItemFocusAnim-grey" | -"ItemFocusAnimBorder-darkGrey" | -"ItemFocusAnim-green" | -"focusAnimation" | -"hoverAnimation", -string ->; - -export const achievementClasses: AchievementClasses = findModule( - (mod) => typeof mod === 'object' && mod?.AchievementListItemBase?.includes('achievementslist') -); - -export const mainMenuAppRunningClasses: MainMenuAppRunningClasses = findModule( - (mod) => typeof mod === 'object' && mod?.MainMenuAppRunning?.includes('mainmenuapprunning') -); - /** * All css styling for TabMaster's filter selection. */