mirror of
https://github.com/SteamDeckHomebrew/decky-frontend-lib.git
synced 2026-05-21 18:38:47 +02:00
Simplify static classes types
This commit is contained in:
@@ -1,66 +1,67 @@
|
||||
import { findModuleChild } from '../webpack';
|
||||
|
||||
interface StaticClasses {
|
||||
ActiveTab: string;
|
||||
AllTabContents: string;
|
||||
BatteryDetailsLabels: string;
|
||||
BatteryIcon: string;
|
||||
BatteryPercentageLabel: string;
|
||||
BatteryProjectedLabel: string;
|
||||
BatteryProjectedValue: string;
|
||||
BatterySectionContainer: string;
|
||||
Blocked: string;
|
||||
ComingSoon: string;
|
||||
Container: string;
|
||||
ContentTransition: string;
|
||||
Down: string;
|
||||
EmptyNotifications: string;
|
||||
Enter: string;
|
||||
EnterActive: string;
|
||||
Exit: string;
|
||||
ExitActive: string;
|
||||
FooterBoxShadow: string;
|
||||
FriendsListTabPanel: string;
|
||||
FriendsTitle: string;
|
||||
FullHeight: string;
|
||||
HeaderAndFooterVisible: string;
|
||||
HeaderContainer: string;
|
||||
'ItemFocusAnim-darkGrey': string;
|
||||
'ItemFocusAnim-darkerGrey': string;
|
||||
'ItemFocusAnim-darkerGrey-nocolor': string;
|
||||
'ItemFocusAnim-green': string;
|
||||
'ItemFocusAnim-grey': string;
|
||||
'ItemFocusAnimBorder-darkGrey': string;
|
||||
KeyboardButton: string;
|
||||
Label: string;
|
||||
LowBattery: string;
|
||||
LowBatteryGauge: string;
|
||||
Menu: string;
|
||||
Open: string;
|
||||
PanelExitAnchor: string;
|
||||
PanelOuterNav: string;
|
||||
PanelSection: string;
|
||||
PanelSectionRow: string;
|
||||
PanelSectionTitle: string;
|
||||
QuickAccessMenu: string;
|
||||
ReallyLow: string;
|
||||
Remaining: string;
|
||||
Selected: string;
|
||||
Tab: string;
|
||||
TabContentColumn: string;
|
||||
TabGroupPanel: string;
|
||||
TabPanelHidden: string;
|
||||
Tabs: string;
|
||||
Text: string;
|
||||
Title: string;
|
||||
TransitionMenuDelay: string;
|
||||
Up: string;
|
||||
ViewPlaceholder: string;
|
||||
VoiceTab: string;
|
||||
'duration-app-launch': string;
|
||||
focusAnimation: string;
|
||||
hoverAnimation: string;
|
||||
}
|
||||
type StaticClasses = Record<
|
||||
| 'ActiveTab'
|
||||
| 'AllTabContents'
|
||||
| 'BatteryDetailsLabels'
|
||||
| 'BatteryIcon'
|
||||
| 'BatteryPercentageLabel'
|
||||
| 'BatteryProjectedLabel'
|
||||
| 'BatteryProjectedValue'
|
||||
| 'BatterySectionContainer'
|
||||
| 'Blocked'
|
||||
| 'ComingSoon'
|
||||
| 'Container'
|
||||
| 'ContentTransition'
|
||||
| 'Down'
|
||||
| 'EmptyNotifications'
|
||||
| 'Enter'
|
||||
| 'EnterActive'
|
||||
| 'Exit'
|
||||
| 'ExitActive'
|
||||
| 'FooterBoxShadow'
|
||||
| 'FriendsListTabPanel'
|
||||
| 'FriendsTitle'
|
||||
| 'FullHeight'
|
||||
| 'HeaderAndFooterVisible'
|
||||
| 'HeaderContainer'
|
||||
| 'ItemFocusAnim-darkGrey'
|
||||
| 'ItemFocusAnim-darkerGrey'
|
||||
| 'ItemFocusAnim-darkerGrey-nocolor'
|
||||
| 'ItemFocusAnim-green'
|
||||
| 'ItemFocusAnim-grey'
|
||||
| 'ItemFocusAnimBorder-darkGrey'
|
||||
| 'KeyboardButton'
|
||||
| 'Label'
|
||||
| 'LowBattery'
|
||||
| 'LowBatteryGauge'
|
||||
| 'Menu'
|
||||
| 'Open'
|
||||
| 'PanelExitAnchor'
|
||||
| 'PanelOuterNav'
|
||||
| 'PanelSection'
|
||||
| 'PanelSectionRow'
|
||||
| 'PanelSectionTitle'
|
||||
| 'QuickAccessMenu'
|
||||
| 'ReallyLow'
|
||||
| 'Remaining'
|
||||
| 'Selected'
|
||||
| 'Tab'
|
||||
| 'TabContentColumn'
|
||||
| 'TabGroupPanel'
|
||||
| 'TabPanelHidden'
|
||||
| 'Tabs'
|
||||
| 'Text'
|
||||
| 'Title'
|
||||
| 'TransitionMenuDelay'
|
||||
| 'Up'
|
||||
| 'ViewPlaceholder'
|
||||
| 'VoiceTab'
|
||||
| 'duration-app-launch'
|
||||
| 'focusAnimation'
|
||||
| 'hoverAnimation',
|
||||
string
|
||||
>;
|
||||
|
||||
export const staticClasses: StaticClasses = findModuleChild((mod) => {
|
||||
if (typeof mod !== 'object') return false;
|
||||
|
||||
Reference in New Issue
Block a user