Skip to content

Commit 5e9003e

Browse files
authored
[UI] New Icons + new Default Theme + CSS Variables Overhaul (#2384)
* feat: add new icons * feat: updated card and frontend assets * feat: add heroic icon to sidebar * feat: add figma colors * ui: update button colors * feat: add new theme * feat: better anti-cheat box * feat: check for anticheat on macOS * ui: updated colors variables * ui: adjust anticheat box alignment * fix: library item should be active on gamepage * wip: fix some themes * Revert "wip: fix some themes" This reverts commit f9c9b7b. * fix: setting icon * ui: use fallback variables to fix the old themes * ui: more style updates * fix: anticheatbox width and margins * ui: dm and other style fixes * ui: updated settings icon and more fixes * ui: add different icons to anticheat info * ui: summary improvements * ui: color updates * ui: button states changes * ui: update colors and set new default theme * fix: sideload dialog image width * fix: remove button title on not available game * fix: add default theme to context provider * ui: fix action icon colors * ui: game list update * chore: remove unused variables * feat: add community themes to the list * other: move default variables to colors.scss and update theme selector * ui: more color fixes * fix_ action icon colors * fix: fix built-in themes * fix: game submenu hover * fix: marine colors * ui: small fixes on nord light theme
1 parent 4c112ca commit 5e9003e

File tree

52 files changed

+1008
-707
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1008
-707
lines changed

public/icon.icns

220 KB
Binary file not shown.

public/icon.png

249 KB
Loading

public/locales/en/gamepage.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@
9595
"repairing": "Repairing"
9696
},
9797
"generic": {
98-
"error": "Unknown error"
98+
"error": "Unknown error",
99+
"noDescription": "No description available"
99100
},
100101
"help": {
101102
"cloud_save_unsupported": "This game does not support cloud saves. This information is provided by the game developers. Some games do implement their own cloud save system"

public/win_icon.ico

-241 KB
Binary file not shown.

src/backend/anticheat/utils.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { heroicAnticheatDataPath, isLinux } from '../constants'
1+
import { heroicAnticheatDataPath, isWindows } from '../constants'
22
import * as axios from 'axios'
33
import { logInfo, LogPrefix, logWarning } from '../logger/logger'
44
import { readFileSync, writeFileSync } from 'graceful-fs'
55
import { AntiCheatInfo } from 'common/types'
66
import { runOnceWhenOnline } from '../online_monitor'
77

88
async function downloadAntiCheatData() {
9-
if (!isLinux) return
9+
if (isWindows) return
1010

1111
runOnceWhenOnline(async () => {
1212
try {
@@ -25,7 +25,7 @@ async function downloadAntiCheatData() {
2525
}
2626

2727
function gameAnticheatInfo(appNamespace: string): AntiCheatInfo | null {
28-
if (!isLinux) return null
28+
if (isWindows) return null
2929

3030
const data = readFileSync(heroicAnticheatDataPath)
3131
const jsonData = JSON.parse(data.toString())

src/backend/gog/library.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ export class GOGLibrary {
664664
art_square: verticalCover,
665665
cloud_save_enabled: cloudSavesEnabledGames.includes(String(info.id)),
666666
extra: {
667-
about: { description: description, longDescription: '' },
667+
about: { description: description, shortDescription: '' },
668668
reqs: [],
669669
storeUrl: `https://gog.com${info.url}`
670670
},

src/backend/legendary/games.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ class LegendaryGame extends Game {
240240
return {
241241
about: {
242242
description: res.sandbox.configuration[0].configs.shortDescription,
243-
longDescription: ''
243+
shortDescription: ''
244244
},
245245
reqs: requirements,
246246
storeUrl: `https://www.epicgames.com/store/product/${slug}`
@@ -275,7 +275,7 @@ class LegendaryGame extends Game {
275275
return {
276276
about: {
277277
description: '',
278-
longDescription: ''
278+
shortDescription: ''
279279
},
280280
reqs: [],
281281
storeUrl: ''
@@ -301,7 +301,7 @@ class LegendaryGame extends Game {
301301
return {
302302
about: {
303303
description: '',
304-
longDescription: ''
304+
shortDescription: ''
305305
},
306306
reqs: [],
307307
storeUrl: ''

src/backend/legendary/library.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ export class LegendaryLibrary {
469469

470470
const {
471471
description,
472-
longDescription = '',
472+
shortDescription = '',
473473
keyImages = [],
474474
title,
475475
developer,
@@ -552,7 +552,7 @@ export class LegendaryLibrary {
552552
extra: {
553553
about: {
554554
description,
555-
longDescription
555+
shortDescription
556556
},
557557
reqs: [],
558558
storeUrl: formatEpicStoreUrl(title)

src/common/types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export type LaunchParams = {
2323

2424
interface About {
2525
description: string
26-
longDescription: string
26+
shortDescription: string
2727
}
2828

2929
export type Release = {
@@ -397,7 +397,7 @@ type AntiCheat =
397397
| 'Zakynthos'
398398

399399
export interface AntiCheatInfo {
400-
status: ''
400+
status: 'Broken' | 'Denied' | 'Working' | 'Running' | 'Supported'
401401
anticheats: AntiCheat[]
402402
notes: string[]
403403
native: boolean

src/common/types/legendary.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ interface GameMetadataInner {
6767
keyImages: KeyImage[]
6868
lastModifiedDate: string
6969
mainGameItem?: GameMetadataInner
70-
longDescription?: string
70+
shortDescription?: string
7171
namespace: string
7272
releaseInfo: ReleaseInfo[]
7373
requiresSecureAccount?: boolean

src/frontend/assets/denied_icon.svg

+5
Loading

src/frontend/assets/heroic-icon.png

-31.7 KB
Binary file not shown.

src/frontend/assets/heroic-icon.svg

+16-7
Loading

src/frontend/assets/heroic_card.jpg

667 KB
Loading

src/frontend/assets/info_icon.svg

+3
Loading
Loading
Loading

src/frontend/assets/sideload.svg

-168
This file was deleted.

src/frontend/components/UI/Anticheat/index.css

-32
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
.anticheatInfo {
2+
display: flex;
3+
max-width: 560px;
4+
padding: var(--space-md);
5+
gap: 0.4rem;
6+
border-radius: 20px;
7+
background-color: var(--current-background);
8+
margin-bottom: var(--space-lg);
9+
10+
.statusInfo {
11+
flex-direction: column;
12+
display: flex;
13+
padding-left: var(--space-md);
14+
}
15+
}
16+
17+
.anticheatInfo h4 {
18+
margin: 0 0 var(--space-md);
19+
}
20+
21+
.anticheatInfo p {
22+
margin: 0 0 var(--space-md);
23+
}
24+
25+
.anticheatInfo.Denied {
26+
border: 2px solid var(--anticheat-denied);
27+
.statusIcon path {
28+
fill: var(--anticheat-denied);
29+
}
30+
}
31+
.anticheatInfo.Broken {
32+
border: 2px solid var(--anticheat-broken);
33+
.statusIcon path {
34+
fill: var(--anticheat-broken);
35+
}
36+
}
37+
.anticheatInfo.Running {
38+
border: 2px solid var(--anticheat-running);
39+
.statusIcon path {
40+
fill: var(--anticheat-running);
41+
}
42+
}
43+
.anticheatInfo.Supported {
44+
border: 2px solid var(--anticheat-supported);
45+
.statusIcon path {
46+
fill: var(--anticheat-supported);
47+
}
48+
}
49+
.anticheatInfo.Planned {
50+
border: 2px solid var(--anticheat-planned);
51+
.statusIcon path {
52+
fill: var(--anticheat-planned);
53+
}
54+
}

0 commit comments

Comments
 (0)