Skip to content

Commit

Permalink
Merge pull request #802 from nextlevelbanana/main
Browse files Browse the repository at this point in the history
badges in profile fix; new color cheme; chat message padding tweaks
  • Loading branch information
nextlevelbanana authored Sep 10, 2023
2 parents 9cc4a4d + 020edf4 commit d6f81c0
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/components/ProfileView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ export default function ProfileView (props: { user: PublicUser, whispers: Whispe
<button className='close-profile' onClick={() => dispatch(HideProfileAction())}>X</button>
</div>
<section className="badges">
{user.unlockedBadges.map(badge => {
<BadgeView emoji={badge.emoji} description={badge.description} isCustom={badge.isCustom} />
{user.unlockedBadges?.map(badge => {
return (<BadgeView key={badge.emoji} emoji={badge.emoji} description={badge.description} isCustom={badge.isCustom} />)
})}
</section>
<section className="profile-details">
Expand Down
10 changes: 10 additions & 0 deletions src/components/SettingsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,16 @@ export default function SettingsView (props: Props) {
/>
<label htmlFor="monochrome-green">Green CRT</label>
</div>
<div className="radio">
<input
type="radio"
id="vaporwave"
value="vaporwave"
checked={selectedTheme === 'vaporwave'}
onChange={handleThemeSelection}
/>
<label htmlFor="vaporwave">Vaporwave</label>
</div>
</div>
<div className="form" id="simpleNamesSelectionForm">
<label htmlFor="simpleNamesSelectionForm" className='form-header'>Username Display Mode:</label>
Expand Down
4 changes: 4 additions & 0 deletions style/chat.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
text-transform: lowercase;
}

.message-wrapper {
padding: 0.25rem;
}

.message-wrapper .time.show-on-hover {
opacity: 0;
}
Expand Down
5 changes: 0 additions & 5 deletions style/nameView.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ span.name {
font-style: normal;
}

.mod {
background-color: var(--mod-line);
color: var(--main-text);
}

.name.Blue {
color: var(--blue)
}
Expand Down
25 changes: 25 additions & 0 deletions style/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,31 @@
--link: #66FF66;
}

/* vaporwave light bg: #e7eef4;, good puprel: #6b3097*/
.vaporwave {
--main-background: #302c7b;
--main-font:#B1ECE5; ;
--gray-text:#3c88cc;
--alternate-background: #1e1c4f;
--alternate-translucent: rgba(10,10,10,0.8);
--green:#20b2aa;
--highlight-line: #f440ac;
--highlighted-line-font: #231b54;
--mod-line: #3c88cc ;
--pink: lightpink;
--blue: #87ceeb;
--cyan: #00ffff;
--magenta: #ff00ff;
--orange: #ffa500;
--red: #ff0000;
--violet: #ee82ee;
--yellow: #ffff00;
--link-decoration: underline;
--link-style: dashed;
--active: #1e1c4f;
--link: #ee82ee;
}

body {
background-color: var(--main-background);
color: var(--main-font);
Expand Down

0 comments on commit d6f81c0

Please sign in to comment.