generated from ricewind012/more-advanced-theme-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plugin: render top bar for other tabs
- Loading branch information
1 parent
3d3c199
commit 81b989a
Showing
12 changed files
with
204 additions
and
75 deletions.
There are no files selected for viewing
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export const GAME_LIST_CHANGE_EVENT_NAME = "game-list-change"; | ||
|
||
export interface GameListChangeEvent { | ||
appid: number; | ||
} | ||
|
||
export function DispatchGameListChange(appid: number) { | ||
const ev = new CustomEvent<GameListChangeEvent>(GAME_LIST_CHANGE_EVENT_NAME, { | ||
detail: { appid }, | ||
}); | ||
window.dispatchEvent(ev); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
export const TAB_CHANGE_EVENT_NAME = "tab-change"; | ||
|
||
export enum ESuperNavTab { | ||
Store, | ||
Library, | ||
Community, | ||
Profile, | ||
Console, | ||
Max, | ||
} | ||
|
||
export interface TabChangeEvent { | ||
tab: ESuperNavTab; | ||
} | ||
|
||
export function DispatchTabChange(tab: ESuperNavTab) { | ||
const ev = new CustomEvent<TabChangeEvent>(TAB_CHANGE_EVENT_NAME, { | ||
detail: { tab }, | ||
}); | ||
window.dispatchEvent(ev); | ||
} | ||
|
||
type ClientTabSetting_t = | ||
| "store" | ||
| "news" | ||
| "library" | ||
| "community" | ||
| "friendactivity" | ||
| "profile" | ||
| "console"; | ||
|
||
export function GetESuperNavTabFromSetting(tab: ClientTabSetting_t) { | ||
switch (tab) { | ||
case "store": | ||
case "news": | ||
return ESuperNavTab.Store; | ||
case "library": | ||
return ESuperNavTab.Library; | ||
case "community": | ||
case "friendactivity": | ||
return ESuperNavTab.Community; | ||
case "profile": | ||
return ESuperNavTab.Profile; | ||
case "console": | ||
return ESuperNavTab.Console; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
} | ||
|
||
#Arrow { | ||
--icon: var(--icon-nav-arrow); | ||
--icon: var(--icon-nav-forward); | ||
|
||
@extend %icon; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
/** @type {import("steam-theming-utils").Config} */ | ||
export default { | ||
ignore: { | ||
client: ["shared"], | ||
}, | ||
ignore: ["client/shared"], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters