Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed themes and alphabetized them. #240

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions client/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -941,6 +941,7 @@ function userIgnore(nick) {
/* color scheme switcher */

var schemes = [
'amoled',
'android',
'android-white',
'andromeda',
Expand All @@ -952,39 +953,40 @@ var schemes = [
'banana',
'bright',
'bubblegum',
'carrot',
'catppuccin',
'chalk',
'default',
'eighties',
'fresh-green',
'fried-egg',
'flamingo',
'greenscreen',
'gruvbox-light',
'hacker',
'lax',
'maniac',
'mariana',
'military',
'milkyway',
'mocha',
'monokai',
'nebula',
'nebula-ng',
'nese',
'ocean',
'omega',
'pop',
'railscasts',
'rainbow',
'retro',
'solarized',
'sunlight',
'tomorrow',
'tk-night',
'carrot',
'catppuccin',
'lax',
'Ubuntu',
'gruvbox-light',
'fried-egg',
'rainbow',
'amoled',
'retro',
'Waifu',
'flamingo'
'ubuntu',
'ubuntu-ng',
'waifu'
];

var highlights = [
Expand Down
41 changes: 41 additions & 0 deletions client/imgs/makima.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 5 additions & 11 deletions client/schemes/amoled.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ input,
textarea {
color: #a6a28c;
}
.message {
border-left: #000000;
.refmessage, .message, #sidebar {
border-left: 1px solid #404040;
background: #000000;
}
.refmessage {
border-left: #000000;
#chatform {
border-top: 1px solid #404040;
}
.nick {
color: #778fd8;
Expand Down Expand Up @@ -41,10 +42,3 @@ textarea {
#footer {
background: #000000;
}
#sidebar {
background: #000000;
border-color: #000000;
}
#chatform {
border-color: #000000;
}
49 changes: 49 additions & 0 deletions client/schemes/nebula-ng.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
body{
background-color: #131114;
background-image: radial-gradient(circle at top left, #23a1d377 5%, #dd6d7983, transparent);
background-repeat: no-repeat;
background-attachment: fixed;
color:#ffffff;
}
input, textarea, {
color:#ffffff;
border-color:#ffffff;
}
.message {
border-left: 1px solid #ffffff;
}
.refmessage {
border-left: 1px solid #ffffff;
}
#sidebar {
background-color: #131114;
background-image: radial-gradient(circle at bottom right, #23a1d377 5%, #dd6d7983, transparent);
background-repeat: no-repeat;
background-attachment: fixed;
}
.nick {
color: #83c9cd;
}
.trip {
color: #9ea8b7;
}
.text a {
color: #131114;
}
.admin .nick {
color: #d73737;
}
.mod .nick {
color: #87b087;
}
.me .nick {
color: #83c9cd;
}
.info .nick,
.info .text {
color: #06b449;
}
.warn .nick,
.warn .text {
color: #ff6c6c;
}
2 changes: 1 addition & 1 deletion client/schemes/nebula.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ body{
.warn .nick,
.warn .text {
color: #ff6c6c;
}
}
45 changes: 30 additions & 15 deletions client/schemes/retro.css
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ label[for=pin-sidebar] {
left: 36px;
height: 14px;
padding: 2px 3px;
content: "#programming [+ver 1.0] :: https://hack.chat - The Next Frontier of Unknown Pleasures";
content: "#programming [+ver 1.0] :: https://hack.chat - a minimal, distraction-free chat application";
border: 2px solid gray;
border-bottom: 2px solid gray;
background: linear-gradient(to right, #000080, #1084d0);
Expand All @@ -131,38 +131,54 @@ label[for=pin-sidebar] {
}
#sidebar {
width: 195px;
color: #7F7F7F;
}
#users li {
list-style-type: none!important;
margin-left: -1.3em;
margin-top: 0.5em;
}
#sidebar-content hr {
border:none;
height:12px;
color:#7F7F7F;
background-color:#7F7F7F;
flex:0 0 100%;
}
#sidebar-content {
display: flex;
flex-wrap: wrap;
flex-direction: column-reverse;
justify-content:start;
align-items:start;
}
#sidebar-content hr {
display:none;
#sidebar-content > :nth-child(21) {
display: none;
}
#sidebar-content > :nth-child(1) {
display: none;
}
#sidebar-content select, #sidebar-content button {
border-radius: 0;
margin-bottom: 0.5em;
}
#sidebar-content > :nth-child(19) {
/* border: 1px solid red; */
margin-top: 80vh;
margin-bottom: 2.5em;
}
#sidebar-content > :nth-child(22) {
display: none;
#sidebar-content > :nth-child(19) > button {
border: 2px outset red;
background-color:darkred;
}
#sidebar-content > :nth-child(21) {
display: none;
#sidebar:hover {
#sidebar-content > :nth-child(-n+22) {
display:block;
}
#sidebar-content > :nth-child(1) {
display: none;
}
#sidebar-content > :nth-child(21) {
display: none;
}
}
#sidebar-content > :nth-child(1) {
display: none;
#sidebar-content > :nth-child(-n+22) {
display:none;
}

/* chat form */
Expand Down Expand Up @@ -282,4 +298,3 @@ pre {
margin-left: 320px;
}


55 changes: 55 additions & 0 deletions client/schemes/ubuntu-ng.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
body {
background-color: #2C001E;
color: #E95420;

}
input,
textarea {
color: #ccc;
background-color: #111;

}
.message, .refmessage {
border-left: solid 1px #E9541F;
}
.nick {
color: #E95420;
}
.trip {
color: #AEA79F;
}
.text a {
color: #00AA00;
}
.admin .nick {
color: #ac4142;
}
.mod .nick {
color: #1FAD83;
}
.me .nick {
color: #b854d4;
}
.info .nick,
.info .text {
color: #00AA22;
}
.warn .nick,
.warn .text {
color: #CFB017;
}
#footer {
background: #2C001E;
}
#sidebar {
background: #2C001E;
border-color: #5E2750;
}
#charform {
border-color: #5E2750;
background: #101010;
border-left: solid 1px #E9541F;
}
form.message {
background-color:#101010;
}
File renamed without changes.
21 changes: 11 additions & 10 deletions client/schemes/Waifu.css → client/schemes/waifu.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,20 @@ body {
padding: 10px;
}

/* Add Makima in the top right corner */
/* Add Makima on the bottom left */
body::after {
content: "";
display: block;
position: fixed;
top: 10px;
right: 10px;
width: 50px;
height: 50px;
background: url('https://static.wikia.nocookie.net/chainsaw-man/images/d/d9/Makima_anime_design_2.png/revision/latest?cb=20220919121118') no-repeat;
background-size: cover;
border-radius: 50%;
z-index: 9999;
filter: drop-shadow(2px 2px 4px #000);
bottom: -125px;
left: 10px;
width: 200px;
background: url('/imgs/makima.svg') no-repeat;
background-size: contain;
background-position:bottom left;
z-index: 1;
height: 598px;
filter:opacity(75%);
}

/* Additional styles for a kawaii touch */
Expand All @@ -54,3 +54,4 @@ body::after {
border-radius: 10px;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}