Skip to content

Commit

Permalink
Merge pull request #10626 from DestinyItemManager/prismatic_symbol_color
Browse files Browse the repository at this point in the history
  • Loading branch information
lowPolySkeleton authored Jul 1, 2024
2 parents 142e594 + 71274e4 commit 83be589
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ $solar: #f0631e;
$void: #8e749e;
$stasis: #4d88ff;
$strand: #35e366;
$prismatic: #e3619b;

// Item rarities
$common: #dcdcdc;
Expand Down
4 changes: 4 additions & 0 deletions src/app/dim-ui/destiny-symbols/ColorDestinySymbols.m.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@
.strand {
color: $strand;
}

.prismatic {
color: $prismatic;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/app/dim-ui/destiny-symbols/ColorDestinySymbols.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import { FontGlyphs } from 'data/font/d2-font-glyphs';
import { DimCustomSymbols } from 'data/font/dim-custom-symbols';
import styles from './ColorDestinySymbols.m.scss';

const iconPlaceholder = /([\uE000-\uF8FF])/g;
const iconPlaceholder = /([\uE000-\uF8FF\u{F0000}-\u{F1000}])/gu;

const styleTable = {
[String.fromCodePoint(FontGlyphs.thermal)]: styles.thermal,
[String.fromCodePoint(FontGlyphs.arc)]: styles.arc,
[String.fromCodePoint(FontGlyphs.void)]: styles.void,
[String.fromCodePoint(FontGlyphs.stasis)]: styles.stasis,
[String.fromCodePoint(FontGlyphs.strand_kill)]: styles.strand,
[String.fromCodePoint(DimCustomSymbols.prismatic)]: styles.prismatic,
};

export default function ColorDestinySymbols({
Expand Down

0 comments on commit 83be589

Please sign in to comment.