Skip to content

Commit

Permalink
Merge pull request #180 from Tormak9970/dev
Browse files Browse the repository at this point in the history
fix: corrected another missing dfl problem
  • Loading branch information
Tormak9970 authored Apr 7, 2024
2 parents f2fa36e + 45b1d94 commit b618c37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 100 deletions.
4 changes: 2 additions & 2 deletions src/components/filters/FilterSelect.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
99 changes: 1 addition & 98 deletions src/components/styles/FilterSelectionStyles.tsx
Original file line number Diff line number Diff line change
@@ -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.
*/
Expand Down

0 comments on commit b618c37

Please sign in to comment.